Skip to main content

Swarmauri Persistent Qdrant Vector Store

Project description

Swamauri Logo

PyPI - Downloads GitHub 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.7.3.dev2.tar.gz (8.7 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.7.3.dev2.tar.gz.

File metadata

File hashes

Hashes for swarmauri_vectorstore_qdrant-0.7.3.dev2.tar.gz
Algorithm Hash digest
SHA256 a5cb890c12184f442338caf84f2ae4cb8a1f6fef91c90eff1e0f571b29f6bc40
MD5 5bc69bfbda0e5b6ac8cd27e46d1366b3
BLAKE2b-256 9a9d18078770a26908f02adc930764f495a1aa5ca773b4b005582049dd251a47

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for swarmauri_vectorstore_qdrant-0.7.3.dev2-py3-none-any.whl
Algorithm Hash digest
SHA256 0ef2786b96a4ec516061e9759eb8075ed3d0926126122b5331d0b790ed74e69b
MD5 b13618041598599763f553285184ba3c
BLAKE2b-256 d3f38755e2707251e549ae14d9718eb270792e0f23056dbf7ea10a4ec6588a66

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