Skip to main content

Swarmauri MLM Vector Store

Project description

Swarmauri Logo

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


MLM Vector Store

A vector store implementation using MLM (Masked Language Model) embeddings for document storage and retrieval.

Installation

pip install swarmauri_vectorstore_mlm

Usage

Here's a basic example of how to use the MLM Vector Store:

from swarmauri.documents.Document import Document
from swarmauri.vector_stores.MlmVectorStore import MlmVectorStore

# Initialize the vector store
vs = MlmVectorStore()

# Create some documents
documents = [
    Document(content="first document"),
    Document(content="second document"),
    Document(content="third document")
]

# Add documents to the store
vs.add_documents(documents)

# Retrieve similar documents
results = vs.retrieve(query="document", top_k=2)

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_mlm-0.6.1.dev14.tar.gz (6.7 kB view details)

Uploaded Source

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_mlm-0.6.1.dev14.tar.gz.

File metadata

File hashes

Hashes for swarmauri_vectorstore_mlm-0.6.1.dev14.tar.gz
Algorithm Hash digest
SHA256 f344da90b11d9eaea8a5453d02d370edc3e44e3eacdf6a38ae63cc69099d25e7
MD5 96832f1005c9c3d71efc2bf798364f79
BLAKE2b-256 92d195bed28c3c1f01a111fc1c4b5f98109f3596f942ed84d177928d65714c30

See more details on using hashes here.

File details

Details for the file swarmauri_vectorstore_mlm-0.6.1.dev14-py3-none-any.whl.

File metadata

File hashes

Hashes for swarmauri_vectorstore_mlm-0.6.1.dev14-py3-none-any.whl
Algorithm Hash digest
SHA256 4a6754fe14265a60fbce861470768d81ce7a5972923191933fb21ffac2025fe5
MD5 84afb2b90b85b1175d75edbb6b8bafd8
BLAKE2b-256 2c3bbb4b17f5f0e5acc749933ff72ebe88b0b10dc65a2fecbd379a08433a2efc

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