Swarmauri Vectorstore Mlm
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.
Metadata
Release files for swarmauri_vectorstore_mlm 0.10.0
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_mlm-0.10.0.tar.gz | 7.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| swarmauri_vectorstore_mlm-0.10.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 15.0 kB
Release files / swarmauri_vectorstore_mlm-0.10.0.tar.gz
| Download URL | swarmauri_vectorstore_mlm-0.10.0.tar.gz |
|---|---|
| Size | 7.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9b9880a8b4c61a2f92cf190b67a810b27bc5465eee28544b6214f2c7b499dfff
|
|
BLAKE2b-256 checksum How to use checksums |
99ad68c98c9e63f58e41fb9da0a6d689e1274167eb4406b6150baedc79c1c44c
|
| 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_mlm-0.10.0-py3-none-any.whl
| Download URL | swarmauri_vectorstore_mlm-0.10.0-py3-none-any.whl |
|---|---|
| Size | 8.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0401e1f4b066fa8d3b0b90ab59946f5212976744a7a8216eff71edd07a611167
|
|
BLAKE2b-256 checksum How to use checksums |
fce99fc741daeb78b4d27bc07a9c10ed472e4a1a3d3dc45e79c142ac5842cd2f
|
| 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}
|