mirror of
https://github.com/Mintplex-Labs/anything-llm.git
synced 2024-11-20 13:20:10 +01:00
better loggin on addDocumentToWorkspace and add Qdrant setup doc
This commit is contained in:
parent
b01e49bb3c
commit
4f8abeb7fc
@ -212,6 +212,7 @@ const Chroma = {
|
||||
await DocumentVectors.bulkInsert(documentVectors);
|
||||
return true;
|
||||
} catch (e) {
|
||||
console.error(e);
|
||||
console.error("addDocumentToNamespace", e.message);
|
||||
return false;
|
||||
}
|
||||
|
@ -212,6 +212,7 @@ const LanceDb = {
|
||||
await DocumentVectors.bulkInsert(documentVectors);
|
||||
return true;
|
||||
} catch (e) {
|
||||
console.error(e);
|
||||
console.error("addDocumentToNamespace", e.message);
|
||||
return false;
|
||||
}
|
||||
|
@ -172,6 +172,7 @@ const Pinecone = {
|
||||
await DocumentVectors.bulkInsert(documentVectors);
|
||||
return true;
|
||||
} catch (e) {
|
||||
console.error(e);
|
||||
console.error("addDocumentToNamespace", e.message);
|
||||
return false;
|
||||
}
|
||||
|
17
server/utils/vectorDbProviders/qdrant/QDRANT_SETUP.md
Normal file
17
server/utils/vectorDbProviders/qdrant/QDRANT_SETUP.md
Normal file
@ -0,0 +1,17 @@
|
||||
# How to setup a local (or cloud) QDrant Vector Database
|
||||
|
||||
[Get a QDrant Cloud instance](https://cloud.qdrant.io/).
|
||||
[Set up QDrant locally on Docker](https://github.com/qdrant/qdrant/blob/master/QUICK_START.md).
|
||||
|
||||
Fill out the variables in the "Vector Database" tab of settings. Select Qdrant as your provider and fill out the appropriate fields
|
||||
with the information from either of the above steps.
|
||||
|
||||
### How to get started _Development mode only_
|
||||
|
||||
After setting up either the Qdrant cloud or local dockerized instance you just need to set these variable in `.env.development` or defined them at runtime via the UI.
|
||||
|
||||
```
|
||||
# VECTOR_DB="qdrant"
|
||||
# QDRANT_ENDPOINT="https://<YOUR_CLOUD_INSTANCE_URL>.qdrant.io:6333"
|
||||
# QDRANT_API_KEY="abc...123xyz"
|
||||
```
|
@ -236,6 +236,7 @@ const QDrant = {
|
||||
await DocumentVectors.bulkInsert(documentVectors);
|
||||
return true;
|
||||
} catch (e) {
|
||||
console.error(e);
|
||||
console.error("addDocumentToNamespace", e.message);
|
||||
return false;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user