Qdrant vector database adapter for cognee
Project description
Cognee Qdrant Adapter
Installation
If published, the package can be simply installed via pip:
pip install cognee-community-vector-adapter-qdrant
In case it is not published yet, you can use poetry to locally build the adapter package:
pip install poetry
poetry install # run this command in the directory containing the pyproject.toml file
Connection Setup
For a quick local setup, you can run a docker container that qdrant provides (https://qdrant.tech/documentation/quickstart/). After this, you will be able to connect to the Qdrant DB through the appropriate ports. The command for running the docker container looks something like the following:
docker run -p 6333:6333 -p 6334:6334 \
-v "$(pwd)/qdrant_storage:/qdrant/storage:z" \
qdrant/qdrant
Usage
Import and register the adapter in your code:
from cognee_community_vector_adapter_qdrant import register
Also, specify the dataset handler in the .env file:
VECTOR_DATASET_DATABASE_HANDLER="qdrant"
Example
See example in example.py file.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file cognee_community_vector_adapter_qdrant-0.2.4.tar.gz.
File metadata
- Download URL: cognee_community_vector_adapter_qdrant-0.2.4.tar.gz
- Upload date:
- Size: 4.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.2.1 CPython/3.11.13 Darwin/24.1.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d84741975941d0dbdf1485dacb590c4be86f41ceda4bb85c1b94ebe4f57c8a2a
|
|
| MD5 |
d14eda8e91e49d79f451e6decb2099cc
|
|
| BLAKE2b-256 |
bbf8428add24a73f86d20d682baacb16c8700aba7e5dc82ec3a204a5b001571b
|
File details
Details for the file cognee_community_vector_adapter_qdrant-0.2.4-py3-none-any.whl.
File metadata
- Download URL: cognee_community_vector_adapter_qdrant-0.2.4-py3-none-any.whl
- Upload date:
- Size: 6.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.2.1 CPython/3.11.13 Darwin/24.1.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c465b33ace08578f554f84f40be97a0d32c20e81efb4a64a2d605158f49ab5aa
|
|
| MD5 |
f5e2f58aadf77fb92542409a7855c530
|
|
| BLAKE2b-256 |
f067431bea420d442f3fc28396af8c6154e679e9a59f7366c94f644fa521c5ff
|