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.
Metadata
Release files for swarmauri_vectorstore_qdrant 0.9.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| swarmauri_vectorstore_qdrant-0.9.2.tar.gz | 8.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| swarmauri_vectorstore_qdrant-0.9.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 20.9 kB
Release files / swarmauri_vectorstore_qdrant-0.9.2.tar.gz
| Download URL | swarmauri_vectorstore_qdrant-0.9.2.tar.gz |
|---|---|
| Size | 8.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
64a12334be83ad360238cc9df3e889157e498de229afca707349d25c88350576
|
|
BLAKE2b-256 checksum How to use checksums |
3240074023ad9ce715d6d58b3683fbe5cfcf05cfc278cbcc07815b1f6b25bf9a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.11.0 {"installer":{"name":"uv","version":"0.11.0","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}
|
Release files / swarmauri_vectorstore_qdrant-0.9.2-py3-none-any.whl
| Download URL | swarmauri_vectorstore_qdrant-0.9.2-py3-none-any.whl |
|---|---|
| Size | 12.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7feab01489514030beafaa27799e03695b2196cf98b08787c130777adf4efdac
|
|
BLAKE2b-256 checksum How to use checksums |
05b4e720f510b1499c4b9e9f63e3debe7e971b09428c709127f7d7ccb40c0f03
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.11.0 {"installer":{"name":"uv","version":"0.11.0","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}
|