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

File metadata

File hashes

Hashes for cognee_community_vector_adapter_qdrant-0.2.0.tar.gz
Algorithm Hash digest
SHA256 d2db3e53aa8b6510745f6c2fee985c03d11c8f43d7303703e354da9bddf41395
MD5 ce2b1e425147a366a306817931b66917
BLAKE2b-256 60f7b2161b20aa4b1ad0c3d70b7590166e0e80dc03271b876bbb8c927f0847be

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cognee_community_vector_adapter_qdrant-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7ddabc4aa0836d18aea464e435e1fbe85971fbcd804217e246a706ae07afa3e8
MD5 082aa6903a0c22a0c54b8595f501155a
BLAKE2b-256 92562679e1190256d66d92c5253a765d2b089b4ae4aaec2ec03babadc42625e6

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