Skip to main content

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

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file cognee_community_vector_adapter_qdrant-0.2.2.tar.gz.

File metadata

File hashes

Hashes for cognee_community_vector_adapter_qdrant-0.2.2.tar.gz
Algorithm Hash digest
SHA256 9604a926d1a10c1cb1c147982e60cfb9ee82d213af9553c0dfd704f1426049ae
MD5 5d238f5e627c5c6bea5d12913f5a1e03
BLAKE2b-256 045b739fb5709ae07b8b605139616876c881a244d624c67a11fe065c7e4acae7

See more details on using hashes here.

File details

Details for the file cognee_community_vector_adapter_qdrant-0.2.2-py3-none-any.whl.

File metadata

File hashes

Hashes for cognee_community_vector_adapter_qdrant-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 c44d17fb0b9508435292bb795deb5fd14ed5f7455ca134b8f575a863d87ae81e
MD5 a53a56a7997bc1b2f4e771d426105bf8
BLAKE2b-256 219291ae01c164b6b154d5e89fe61904270f4895db04a9632bb5d0e9603b5e58

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page