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

File metadata

File hashes

Hashes for cognee_community_vector_adapter_qdrant-0.2.3.tar.gz
Algorithm Hash digest
SHA256 ba773725aa39686926a51229bd53653f09862234b474bb6b4cae3d8d9a876a31
MD5 8c923d335706615a6418095f2af3efe9
BLAKE2b-256 70888bf7c523997f0940dd0d99115f6804ed5e66b488e5dd81f39c7438ec9c2d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cognee_community_vector_adapter_qdrant-0.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 c4b1a9f20cd7c2488581a74863d7fb7d15980eb3cd9526ad7e0cbb724f3bac3d
MD5 54c0249743c783da01ce87251ffcebfa
BLAKE2b-256 2a0d9c045e308d8ec036c7a051fda3f1efbf6d1e6ae67306d4a90133a5669fe0

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