Skip to main content

Swarmauri Weaviate Vector Store

Project description

Swamauri Logo

PyPI - Downloads GitHub Hits PyPI - Python Version PyPI - License PyPI - swarmauri_vectorstore_cloudweaviate


Swarmauri Vectorstore CloudWeaviate

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.7.2.dev2.tar.gz.

File metadata

File hashes

Hashes for swarmauri_vectorstore_cloudweaviate-0.7.2.dev2.tar.gz
Algorithm Hash digest
SHA256 b482fd2b957b724d9d71581ce1b252139cfc83e33e4e8e35daea53ca7374e3bd
MD5 bed609e9dee92c55aaf0b49a9f44daa6
BLAKE2b-256 ad0bceced3e857c1a5e31861c5ef34171e79708157f0dcebca2a97cea7058241

See more details on using hashes here.

File details

Details for the file swarmauri_vectorstore_cloudweaviate-0.7.2.dev2-py3-none-any.whl.

File metadata

File hashes

Hashes for swarmauri_vectorstore_cloudweaviate-0.7.2.dev2-py3-none-any.whl
Algorithm Hash digest
SHA256 75033f3d1ca049cbd6c7d3b5b5b81967a0b2022c0bb703246b01419626fbc869
MD5 73810b3212a22f8636574011b8f48eb9
BLAKE2b-256 7e0a05438accfd4c7713047c7f052dd988084e3355944eb6ea88ca248376af05

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