langchain-ai / opengpts

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Issue with Ingesting/Upserting CSV File in opengpts-backend

thierryteisseire opened this issue · comments

Running last version clean from git pull on Ubuntu 20.

Screenshot 2024-04-16 184003

Description:
I am currently running the latest version of opengpts-backend after a clean git pull on Ubuntu 20. However, I am encountering an issue where I am unable to ingest/upsert a CSV file. The error message I am receiving is as follows:

File "/backend/app/ingest.py", line 45, in ingest_blob
for document in parser.lazy_parse(blob):
File "/usr/local/lib/python3.11/site-packages/langchain_community/document_loaders/parsers/generic.py", line 70, in lazy_parse
raise ValueError(f"Unsupported mime type: {mimetype}")
ValueError: Unsupported mime type: text/csv
I have attached a screenshot for reference: Screenshot

I am seeking assistance in understanding why CSV files are not allowed for ingestion in opengpts-backend. Any insights or guidance on resolving this issue would be greatly appreciated.

I realised we do not cover csv upserting.