Find answers from the community

Updated last year

While reading the CSV data using

While reading the CSV data using PagedCSVReader download_loader, there is no metadata but while reading pdf files there is meta like
"metadata": {
"page_label": "2",
"filename": "120.pdf" },This is the doc[0] of csv reader. Document(id='7575e0eb-2492-40c6-944e-93011f36fdcb', embedding=None, metadata={}, excluded_embed_metadata_keys=[], excluded_llm_metadata_keys=[], relationships={}, hash='5199644cc725f8441d76c340ca8e6d7d81525287682ed0f906add61ea316b8fd', text='Address: Tv\n928 E Vermijo Colorado Springs: No\n: ', start_char_idx=None, end_char_idx=None, text_template='{metadata_str}\n\n{content}', metadata_template='{key}: {value}', metadata_seperator='\n')

My question is is there any chance to reading csv files to put metadata like file_name.
A
L
2 comments
The data loaders are community supported for the most part. The source code for the csv reader is here, you could make a PR

https://github.com/emptycrown/llama-hub/blob/main/llama_hub/file/paged_csv/base.py
Add a reply
Sign up and join the conversation on Discord