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.6.0.tar.gz (8.4 kB view details)

Uploaded Source

Built Distribution

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

swarmauri_vectorstore_qdrant-0.6.0-py3-none-any.whl (11.8 kB view details)

Uploaded Python 3

File details

Details for the file swarmauri_vectorstore_qdrant-0.6.0.tar.gz.

File metadata

  • Download URL: swarmauri_vectorstore_qdrant-0.6.0.tar.gz
  • Upload date:
  • Size: 8.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.1 CPython/3.12.9 Linux/6.8.0-1021-azure

File hashes

Hashes for swarmauri_vectorstore_qdrant-0.6.0.tar.gz
Algorithm Hash digest
SHA256 c4c2999ad5eb9d8edcc290ccf06e78795a184efd79d84709f6ce6e96e848ba98
MD5 0f4a69737b1b7346c913aebecc8dcba0
BLAKE2b-256 5e01e0cdaa45c194981ffce2241fbc3fb63d137f52a54ff7a6340af64bbe696c

See more details on using hashes here.

File details

Details for the file swarmauri_vectorstore_qdrant-0.6.0-py3-none-any.whl.

File metadata

File hashes

Hashes for swarmauri_vectorstore_qdrant-0.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d513cefde9093d0a2e7b59d915dcf7446d741f5d9e3de8cead59eeeb868196a3
MD5 89b19651e2c596241255a108a94de9b3
BLAKE2b-256 e393425a5e7a335d38d5b5be5749c56614d8e248af49c038b12260004eef3add

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