Skip to main content

Swarmauri Persistent Qdrant Vector Store

Project description

Swarmauri 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.1.tar.gz (8.8 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.9.1-py3-none-any.whl (12.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: swarmauri_vectorstore_qdrant-0.9.1.tar.gz
  • Upload date:
  • Size: 8.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.3 {"installer":{"name":"uv","version":"0.10.3","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for swarmauri_vectorstore_qdrant-0.9.1.tar.gz
Algorithm Hash digest
SHA256 c9220c4781df8620c32e8d53457fb823c7ade4372bf8fd9e2f85248d5fe31dcb
MD5 aae797249a15749a1e80fb5c75c33d89
BLAKE2b-256 65e66749ab729fc8309cf2806ed0f6bdf584981d37a17ea54b8e187b54dec72c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: swarmauri_vectorstore_qdrant-0.9.1-py3-none-any.whl
  • Upload date:
  • Size: 12.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.3 {"installer":{"name":"uv","version":"0.10.3","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for swarmauri_vectorstore_qdrant-0.9.1-py3-none-any.whl
Algorithm Hash digest
SHA256 069e608f83a56725d0c05be3638257958a1a4d073f39af581594a646a9ae4cb8
MD5 a75647ae090a69a9be75ef368cbdf0eb
BLAKE2b-256 47e74357c860f0df51a295246e149b139a37407a7670b040b02886e855b07b14

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