Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

馃殌 feat: Add Qdrant Vector Database #29

Open
wants to merge 18 commits into
base: main
Choose a base branch
from

Conversation

walbercardoso
Copy link

Add qdrant vector store to improve vectors database

@walbercardoso
Copy link
Author

For some functions it is not necessary to use run_in_executor, since there are async functions in langchain for qdrant.

@walbercardoso
Copy link
Author

@danny-avila I would appreciate it if you could take a look at the implementation and let me know if everything is ok.

@walbercardoso
Copy link
Author

walbercardoso commented May 3, 2024

New variables need to be add at the .env

QDRANT_API_KEY=

QDRANT_HOST=

VECTOR_DB= #qdrant or pgvector (default if not `provided)` 

COLLECTION_NAME=

EMBEDDINGS_DIMENSION=

@walbercardoso
Copy link
Author

Can you please check this if it need some change? If it's ok I'm planning to add other vector stores

@danny-avila
Copy link
Owner

there are some conflicts due to the mongodb atlas merge

@walbercardoso
Copy link
Author

No problem. I can fix that.

@walbercardoso
Copy link
Author

@danny-avila Conflicts removed. Can you check it again?

@danny-avila
Copy link
Owner

@danny-avila Conflicts removed. Can you check it again?

hi @walbercardoso there are some new conflicts. I've added enums to help manage the addition of vector stores. Also, I would like to see all routes working with screenshots and configuration settings for your setup, because the last addition of a vector store does not seem fully functional.

Thanks

@walbercardoso
Copy link
Author

hi @danny-avila . Conflicts have been fixed.

Some screenshots:

Embed:

image

Route
image

Qdrant dash:
image

Delete attach file before starting query:
image

Route:
image

Query doc:

image

Route:
image

Delete file:
image

Route:
image

@walbercardoso
Copy link
Author

walbercardoso commented Jun 3, 2024

Configuration params at .env

QDRANT_API_KEY=

QDRANT_HOST=""

VECTOR_DB_TYPE="qdrant"

QDRANT_VECTOR_COLLECTION="test"

QDRANT_EMBEDDINGS_DIMENSION=768

@walbercardoso
Copy link
Author

Please let me know if this is enough

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants