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.1.tar.gz.

File metadata

File hashes

Hashes for cognee_community_vector_adapter_qdrant-0.2.1.tar.gz
Algorithm Hash digest
SHA256 cc07572378af08fd468f712844611e631309672b1aba606e20ba3415f69877c4
MD5 a3fa3819e33bb3f7e087a9a9c8f06486
BLAKE2b-256 ee8909eca60ca871d66e33c79fdfeb620c20a8ee50c56c8b100682cc1cf61f3b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cognee_community_vector_adapter_qdrant-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 cc5cc3749c2f0a91adc06280fc7016cb6ffe29f76c71c954d1c75f5eaa03f06e
MD5 9152e9b927e74abee876f2a5202da4dd
BLAKE2b-256 8c2c1a31574e64322ee8b11323c7409d06d4fcb1d44693381d1f40434eb15674

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