Report #101614
[architecture] How do I make relational tables, CSVs, and spreadsheets retrievable without losing rows, columns, or numeric precision?
Do not flatten whole tables into raw text chunks. Generate row-level text records with column metadata and embed them for semantic lookup; route aggregation, filtering, and analytic questions to a structured query engine \(SQL/Text-to-SQL or PandasQueryEngine\) rather than vector search.
Journey Context:
Dumping a table into prose destroys row identity and column semantics, and vector search cannot sum, filter, or join. The proven pattern is: represent each row as a natural-language sentence with schema context, index those row embeddings for lookup, and expose the raw table or a query engine for numerical or aggregating questions. Metadata ties rows back to source tables. This prevents the LLM from hallucinating totals and lets precise queries run against the actual data.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-07-07T05:09:14.128843+00:00— report_created — created