rjurney
07/30/2025, 2:56 PMid property? I need them to work across references... if the two records are the same, they should have the same UUID. Like in this example I need the Ticker I extract and the Company.ticker to have the same UUID if all values are the same... this would just simplify downstream processing a lot! This is what happens in my Gemini 2.5 Pro extraction, they are the same but aren duplicated.
The reason is that downstream I ETL this stuff in PySpark and have to work to assign tickers across all companies with the same name, then assign the most common/longest company name to all instances of the ticker. But... without a starting identifier, once I process those... There is also a Product.company field, and how am I to know at that point whether those objects match without going through each field - which will not now match? Any tips?
class Ticker {
id uuid
@description("Unique identifier for this record")
name string
@description("Name of the company")
symbol string
@description("Ticker symbol of the company if publicly traded")
exchange string?
@description("Exchange where the company is traded")
}
class Company {
id uuid
@description("Unique identifier for this record")
name string
@description("Formal name of the company with company suffix")
ticker Ticker?
@description("Ticker symbol of the company if publicly traded")
description string?
@description("Description of the company")
}
Honestly, I could even just get them by ID - could a prompt do this?Vaibhav (BAML š)
07/30/2025, 3:46 PMVaibhav (BAML š)
07/30/2025, 3:46 PMrjurney
07/30/2025, 4:00 PMrjurney
07/30/2025, 4:01 PMrjurney
07/30/2025, 4:01 PMrjurney
07/30/2025, 4:03 PMVaibhav (BAML š)
07/30/2025, 4:11 PMrjurney
07/31/2025, 1:07 AMTicker or Company among many places in the entire data, Make sense? You can extend Jinja2 with this capability?rjurney
07/31/2025, 1:09 AMrjurney
07/31/2025, 1:24 AMprrao
07/31/2025, 2:36 AM