serverless-chat-langchainjs
serverless-chat-langchainjs copied to clipboard
Allow updating existing documents
Currently if you upload the same document twice, it will create duplicated chunks of the same documents. Before add a document to the database, we should remove all chunks related to the document using its filename as ID to avoid duplication and allow updates.
Tasks
- [ ] Remove all chunks with the same filename of uploaded document in POST /documents
- [ ] for Azure ComosDB for MongoDB vCore path
- [ ] for FAISS path when running locally
This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this issue will be closed.
This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this issue will be closed.