better loggin on addDocumentToWorkspace and add Qdrant setup doc

This commit is contained in:
timothycarambat 2023-08-22 10:30:01 -07:00
parent b01e49bb3c
commit 4f8abeb7fc
5 changed files with 21 additions and 0 deletions

View File

@ -212,6 +212,7 @@ const Chroma = {
await DocumentVectors.bulkInsert(documentVectors);
return true;
} catch (e) {
console.error(e);
console.error("addDocumentToNamespace", e.message);
return false;
}

View File

@ -212,6 +212,7 @@ const LanceDb = {
await DocumentVectors.bulkInsert(documentVectors);
return true;
} catch (e) {
console.error(e);
console.error("addDocumentToNamespace", e.message);
return false;
}

View File

@ -172,6 +172,7 @@ const Pinecone = {
await DocumentVectors.bulkInsert(documentVectors);
return true;
} catch (e) {
console.error(e);
console.error("addDocumentToNamespace", e.message);
return false;
}

View 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"
```

View File

@ -236,6 +236,7 @@ const QDrant = {
await DocumentVectors.bulkInsert(documentVectors);
return true;
} catch (e) {
console.error(e);
console.error("addDocumentToNamespace", e.message);
return false;
}