Find answers from the community

Updated 10 months ago

**Question on LlamaHub and LlamaIndex

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!
k
2 comments
Let me check the knowledge base for you. One moment! :books:
----------------------
Of course, I'd be happy to help! However, could you please provide more details about the issue or question you have? This will allow me to give you the most accurate and helpful response.
----------------------
Note: you can ask me a follow up question by @ mentioning me again :speech_balloon:
----------------------
Add a reply
Sign up and join the conversation on Discord