JJJasper
08/13/2025, 11:39 PMJJJasper
08/13/2025, 11:51 PMListing.baml. in this file, I have a handful of functions defined.
- ExtractListing uses web_search to go pull some details from an html web page, and outputs it to a Listing class
- GenerateWhereClause takes the Listing class as an input, and attempts to generate a SQL where clause
- ReviewParcelQueryResult takes a look at a SQL query response, and based on the output determines whether to accept or retry generating a new where clause
- outside of baml_src, I have a workflow that calls these in succession:
- extract the listing attributes
- generate the where clause
- (outside of BAML context) Execute a SQL query with the generated where clause
- review the results, and determine whether to go back and run generate againJJJasper
08/14/2025, 12:01 AMaaronv (BAML)
08/14/2025, 4:55 PMaaronv (BAML)
08/14/2025, 4:56 PMJJJasper
08/14/2025, 4:56 PMJJJasper
08/14/2025, 4:56 PMaaronv (BAML)
08/14/2025, 4:57 PMJJJasper
08/14/2025, 5:00 PMaaronv (BAML)
08/14/2025, 5:01 PM