A scenario for a forward deployed engineer · Mid level and up
The price tables come out scrambled
Socket · The customer's engineer
Monday, 15:40
A customer's contracts are scanned PDFs in a Unity Catalog volume on Databricks. The step that pulls text out of them for the search index loses the tables, and the assistant misquotes prices that sit in tables.
What do you do?
Tap the one you would do. The answer opens below.
Show the best callThe best call
Parse the files with ai_parse_document and index what it returns: the text, the tables and the layout.
Tables arrive as tables. The assistant quotes the price from the right row.
Why
ai_parse_document is an AI Function that reads unstructured documents such as PDFs and images and returns their structured content: text, tables, descriptions of figures, and the layout. Retrieval can only find what parsing kept, so a pipeline over scanned files or files full of tables starts there. ai_prep_search (Beta) prepares its output for search.
Read it in the Databricks docs (opens in a new tab)The other two
- Works, at a price. Have an analyst key the price tables into a Delta table, and give the agent a lookup tool on it.
- Prices are right for the contracts someone typed in. Next month's contracts wait for the same person.
- A poor call. Make the chunks larger, so a whole page fits in one.
- The page is in one piece, and the table inside it is still scrambled.
The words in this scenario
- Unity Catalog.
- The part of Databricks that governs data: who may see and change which tables and files, where data came from, and who did what. In the docs (opens in a new tab)
- Volume.
- A Unity Catalog object for files that are not tables. Access to the files is granted on the volume. In the docs (opens in a new tab)
Go deeper on brickster.ai
- AI Functions: what changed recentlyNews, releases, videos and questions on it, gathered daily.
- RAG: what changed recentlyNews, releases, videos and questions on it, gathered daily.
- Follow AI agentsNews, releases, videos and questions on it, gathered daily.
More scenarios
- The right passage comes eighth · forward deployed engineer
- The agent needs two outside systems · forward deployed engineer
- The CFO does not trust the answer · forward deployed engineer
- All 77 scenarios
Had one like this at work? Send it to us: the best tickets come from real incidents.
Added on . Checked against the Databricks documentation on . brickster.ai is independent and is not affiliated with Databricks.