Find answers from the community

Home
Members
andaldana
a
andaldana
Offline, last seen 3 months ago
Joined September 25, 2024
Question on LlamaHub and LlamaIndex Docs (rows as documents from CSV/database)

Hi everyone! I want to convert each entry on an SQL database into documents (as few columns are structured, but the main ones are just free text). I could convert this into a flat CSV file as well.

I was looking in LlamaHub and the docs about this and found mentions of DatabaseReader (https://docs.llamaindex.ai/en/stable/understanding/loading/loading.html#using-readers-from-llamahub), but it seems there is no documentation https://llamahub.ai/l/readers/llama-index-readers-database

Similarly, for CSVreader, it points here https://llamahub.ai/l/readers/llama-index-readers-file?from=readers

I wonder if there are new readers or better ways within LlamaIndex to do what I want to do.

I'm interested in making a document for each row, where the structured column values become metadata and the content of the documents is the free-text fields. Then, just do metadata filtering on the vector database to complement the similarity search.

Thank you in advance!
2 comments
k