Skip to main content

Swarmauri Persistent Qdrant Vector Store

Project description

Swarmauri Logo

PyPI - Downloads PyPI - Python Version PyPI - License PyPI - Version


Swarmauri Qdrant Vector Store

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

File metadata

File hashes

Hashes for swarmauri_vectorstore_qdrant-0.7.0.dev2.tar.gz
Algorithm Hash digest
SHA256 756e05b976b8c2d416e83dd354a45588607a68a21716f938af87a5ef12d59636
MD5 82c4a8bbb06d93a3d0139ca1463cf67e
BLAKE2b-256 d0d648eab91e24b59a36edd61c56652cf8c0817f935d9209600c4c1e232b59c4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for swarmauri_vectorstore_qdrant-0.7.0.dev2-py3-none-any.whl
Algorithm Hash digest
SHA256 68eeda2d0b03cf4dd1da9c5be78aa9ae75d21efcd5f287e39a393c0cd42723a4
MD5 a51212bbd481712af029e417191d52e7
BLAKE2b-256 f10ce8f2380105f4a1f8d0e9b5a7cd7ca2c9e83e7a279a244651e5b8dc2a7e6f

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