Skip to main content

Swarmauri Persistent Qdrant Vector Store

Project description

Swamauri Logo

PyPI - Downloads Hits PyPI - Python Version PyPI - License PyPI - swarmauri_vectorstore_qdrant


Swarmauri Vectorstore Qdrant

A vector store implementation using Qdrant as the backend, supporting both persistent local storage and cloud-based operations for document storage and retrieval.

Installation

pip install swarmauri_vectorstore_qdrant

Usage

from swarmauri.documents.Document import Document
from swarmauri.vectorstores.PersistentQdrantVectorStore import PersistentQdrantVectorStore
from swarmauri.vector_stores.CloudQdrantVectorStore import CloudQdrantVectorStore

# Local Persistent Storage
local_store = PersistentQdrantVectorStore(
    collection_name="my_collection",
    vector_size=100,
    path="http://localhost:6333"
)
local_store.connect()

# Cloud Storage
cloud_store = CloudQdrantVectorStore(
    api_key="your_api_key",
    collection_name="my_collection",
    vector_size=100,
    url="your_qdrant_cloud_url"
)
cloud_store.connect()

# Add documents
documents = [
    Document(content="sample text 1"),
    Document(content="sample text 2")
]
local_store.add_documents(documents)

# Retrieve similar documents
results = local_store.retrieve("sample query", top_k=5)

Want to help?

If you want to contribute to swarmauri-sdk, read up on our guidelines for contributing that will help you get started.

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

swarmauri_vectorstore_qdrant-0.9.0.dev2.tar.gz (8.6 kB view details)

Uploaded Source

Built Distribution

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

File details

Details for the file swarmauri_vectorstore_qdrant-0.9.0.dev2.tar.gz.

File metadata

File hashes

Hashes for swarmauri_vectorstore_qdrant-0.9.0.dev2.tar.gz
Algorithm Hash digest
SHA256 04da8528067ce6e7fdaba014f3031b980de253b49296dc583a78ce29e034fd7b
MD5 dc1ff113b8b8d8d81cf1376d46e757b1
BLAKE2b-256 ec7742001560bbe43b418b650c59133f72a8d7686336e191e11e3e21fdd8d77b

See more details on using hashes here.

File details

Details for the file swarmauri_vectorstore_qdrant-0.9.0.dev2-py3-none-any.whl.

File metadata

File hashes

Hashes for swarmauri_vectorstore_qdrant-0.9.0.dev2-py3-none-any.whl
Algorithm Hash digest
SHA256 6216fdf828199802ba50a3445c400ccafd11b6d82d1ad51929710270262f5352
MD5 25edef0f6f38ad4a6909b5ff78d6df4e
BLAKE2b-256 658afc043904b40c2a203673a6d10a87d04a1d26b452516849ef12bab4190257

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