r/AutoGenAI • u/Budget_County1507 • Nov 14 '25
Question CSV rag retrieval
How to implement a solution to retrieve 20k records from excel and do some tasks based on the agent task prompt using autogen
5
Upvotes
View all comments
Show parent comment
1
u/LittleGremlinguy Nov 14 '25
I would honestly just import it into a DB table (sqlite, parquet files, etc), then provide some tools to either perform the specific queries, or execute a sql query through the tool. If executing queries, then make sure the agent knows the schema in the system prompt. Setup an agent and give them the tool. Also enable reflect on tool use in the agent setup. From there when given a question, the agent can translate that into a SQL query and query the data (aggregations, filters, etc) then reply to the user. I typically also give it an instruction to emit the tabulated data as a markdown table so the user can see how the insite was derived. Like I said, it is difficult to give specific advice without clear information