langchain-ai / opengpts

MIT License
6.3k stars 827 forks source link

Issue with Ingesting/Upserting CSV File in opengpts-backend #308

Closed thierryteisseire closed 2 months ago

thierryteisseire commented 2 months ago

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.

thierryteisseire commented 2 months ago

I realised we do not cover csv upserting.

zhangsanfenggpt commented 1 month ago

I got the same problem , has any solution?