Log in
Log into community
Find answers from the community
View all posts
Related posts
Did this answer your question?
π
π
π
Powered by
Hall
Inactive
Updated 3 months ago
0
Follow
Is it possible to import a csv file and
Is it possible to import a csv file and
Inactive
0
Follow
o
osiworx
10 months ago
Β·
Is it possible to import a csv file and use every single line as a single document? So that after reading that file I would have a object with as many documents as there was lines in the CSV file?
a
o
W
4 comments
Share
Open in Discord
a
alextraza
10 months ago
https://github.com/pengxiaoo/llama-index-fastapi
has an example. check index_storage.py
o
osiworx
10 months ago
oh cool, thank you so much
W
WhiteFang_Jr
10 months ago
You can use PagedCsv reader from llamaindex:
https://github.com/run-llama/llama_index/blob/main/llama-index-integrations/readers/llama-index-readers-file/llama_index/readers/file/paged_csv/base.py
Just need to install the reader package and import it.
pip install llama-index-readers-file
W
WhiteFang_Jr
10 months ago
Import it like
from llama_index.readers.files.paged_csv import PagedCSVReader
Add a reply
Sign up and join the conversation on Discord
Join on Discord