phidatahq / phidata

Build AI Assistants with memory, knowledge and tools.
https://docs.phidata.com
Mozilla Public License 2.0
11.24k stars 1.67k forks source link

Can we use CSV based knowledge #1034

Closed cfbreathing closed 2 months ago

cfbreathing commented 3 months ago

I tried your agent and it's just too powerful. But I have a question, that is in the future can there be CSV assistant to read my local csv file and answer questions, just like pdf assistant.

vishwajeetdabholkar commented 3 months ago

Hi @cfbreathing , here is an example to use SQL assistant on json files : cookbook/examples/sql/assistant.py https://github.com/phidatahq/phidata/blob/main/cookbook/examples/sql/assistant.py

It is an example for JSON but you should be easily build logic for csv too using this

ysolanky commented 3 months ago

Hey @cfbreathing I have a PR out for using CSV files as a knowledge base. Please feel free to test it out: https://github.com/phidatahq/phidata/pull/1031

ysolanky commented 3 months ago

@cfbreathing please upgrade to v2.4.24. It now includes CSV Knowledge base

cfbreathing commented 2 months ago

Thank you so much for implementing this feature! I can now build my phidata using csv!🙂