Skip to main content

Swarmauri Weaviate Vector Store

Project description

Swarmauri Logo

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


Swarmauri Cloud Weaviate Vector Store

A Weaviate-based vector store implementation for Swarmauri, providing cloud-based document storage and retrieval with vector similarity search capabilities.

Installation

pip install swarmauri_vectorstore_cloudweaviate

Usage

Here's a basic example of how to use the CloudWeaviateVectorStore:

from swarmauri.vector_stores.CloudWeaviateVectorStore import CloudWeaviateVectorStore
from swarmauri.documents.Document import Document

# Initialize the vector store
vector_store = CloudWeaviateVectorStore(
    url="your-weaviate-url",
    api_key="your-api-key",
    collection_name="example",
    vector_size=100
)

# Connect to Weaviate
vector_store.connect()

# Add documents
document = Document(
    id="doc-001",
    content="This is a sample document content.",
    metadata={"author": "Alice", "date": "2024-01-01"}
)
vector_store.add_document(document)

# Retrieve similar documents
results = vector_store.retrieve(query="sample content", top_k=5)

# Clean up
vector_store.disconnect()

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

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_cloudweaviate-0.6.1.dev16.tar.gz.

File metadata

File hashes

Hashes for swarmauri_vectorstore_cloudweaviate-0.6.1.dev16.tar.gz
Algorithm Hash digest
SHA256 4b248509b6d56bada4446b767684be7c09206a2a0fa93629f8d3c00494889788
MD5 0414b1fca41c8b9bbcf65af469460fb8
BLAKE2b-256 814832d16ce82c4e7bf1c721eea4a180b2363f75b4af4f8a59fdf9735ac4595f

See more details on using hashes here.

File details

Details for the file swarmauri_vectorstore_cloudweaviate-0.6.1.dev16-py3-none-any.whl.

File metadata

File hashes

Hashes for swarmauri_vectorstore_cloudweaviate-0.6.1.dev16-py3-none-any.whl
Algorithm Hash digest
SHA256 6c8211a856c365a8ff8a00e8a29d6881edbfb525a9e2e049004704e78972b949
MD5 5039f13a82369f6de5d5ee1a2ad16737
BLAKE2b-256 e123576b08b32a97099764dbeef14db0962267bdecc123b84c68ddc5e1765925

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