Find answers from the community

Updated 3 months ago

Hello I have a CSV files that contain

Hello, I have a CSV files that contain for each row a name and it's intro. I want to get on this intro all the superpowers mentioned by users. I noticed that when using gpt-index with GPTSimpleVectorIndex and asks : what are the superpowers of all these people ? . It just returns me ones from 3 people over 21 . How can i do to have infos for all users.

Below my current code:
from pathlib import Path from llama_index import download_loader download_loader("antler-sheet1.csv") SimpleCSVReader=download_loader("SimpleCSVReader") documents=loader.load_data(file=Path("sheet1.csv")) index=GPTSimpleVectorIndex.from_documents(documents) index.save_to_disk("index.json") index.query("what are the superpowers of all these people ?")
L
1 comment
If you want to read all the data, try using GPTListIndex instead πŸ€” Orrrrrr last suggestion is check out this composable index util, that can help do QA AND summarization with the same data https://github.com/jerryjliu/llama_index/blob/main/examples/composable_indices/QASummaryGraph.ipynb
Add a reply
Sign up and join the conversation on Discord