Skip to main content

Swarmauri Neo4j Vector Store

Project description

Swamauri Logo

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


Swarmauri Vectorstore Neo4j

A Neo4j-based vector store implementation for Swarmauri SDK, providing document storage and retrieval functionality using Neo4j graph database.

Installation

pip install swarmauri_vectorstore_neo4j

Usage

from swarmauri.documents.Document import Document
from swarmauri.vector_stores.Neo4jVectorStore import Neo4jVectorStore

# Initialize the vector store
store = Neo4jVectorStore(
    uri="neo4j://localhost:7687",
    user="neo4j",
    password="your_password"
)

# Add a document
doc = Document(
    id="doc1",
    content="Sample content",
    metadata={"author": "John Doe"}
)
store.add_document(doc)

# Retrieve similar documents
similar_docs = store.retrieve(query="sample", top_k=5)

# Close connection when done
store.close()

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_neo4j-0.7.3.tar.gz (7.7 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_neo4j-0.7.3-py3-none-any.whl (8.7 kB view details)

Uploaded Python 3

File details

Details for the file swarmauri_vectorstore_neo4j-0.7.3.tar.gz.

File metadata

File hashes

Hashes for swarmauri_vectorstore_neo4j-0.7.3.tar.gz
Algorithm Hash digest
SHA256 8dfa876413922a6f7d83a4bb70313b950b6058b0f25bcdb282bffdcaa98fa05b
MD5 1d57824884edc4baec4c20bedfa0857e
BLAKE2b-256 4c84d86975d31a1f7c86c3e0a14ebfe32abb2d56711641a052b0cee8b3d34323

See more details on using hashes here.

File details

Details for the file swarmauri_vectorstore_neo4j-0.7.3-py3-none-any.whl.

File metadata

File hashes

Hashes for swarmauri_vectorstore_neo4j-0.7.3-py3-none-any.whl
Algorithm Hash digest
SHA256 41fc3f4b2f7f61e4f308a92d25dd5ceba35a3ca9c3675cca40fd2a3e78a7fe9d
MD5 8a8dcd9889570a02bafa58ea1c7b67de
BLAKE2b-256 2d2a3f564bbc15aab6f582bddfbbb68212e5ce7c5dc0fd3c8875a7ae87b9f984

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