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

This version

0.7.1

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.1.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.

swarmauri_vectorstore_qdrant-0.7.1-py3-none-any.whl (12.0 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for swarmauri_vectorstore_qdrant-0.7.1.tar.gz
Algorithm Hash digest
SHA256 dfa9450da15304cb48ce3b0a5efc72c1a43658af54d67007b17edfae24567008
MD5 36604533e130f447cc430c366fad4d3b
BLAKE2b-256 5dc0c301db88e7fcf323f422846328f4359594c15b2d939e5c74072d3610f61d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for swarmauri_vectorstore_qdrant-0.7.1-py3-none-any.whl
Algorithm Hash digest
SHA256 142267ac881de5857135b07e74c3fe9e302224f616bfe0daea2971b0d34a1ac5
MD5 c88d9db9b4ad0dcf10d05cb404ec97eb
BLAKE2b-256 1bfb28c373bcee8cf06569ad1456364ab16d28f6ca2d7f999951c77624e16a48

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