Skip to main content

Swarmauri filesystem-aware BM25F vector store

Project description

Swarmauri Logo

PyPI - Downloads Hits PyPI - Python Version PyPI - License PyPI - swarmauri_vectorstore_fs Discord

Swarmauri Vectorstore FS

A Swarmauri community vector store that indexes filesystem trees for BM25F retrieval over file paths, file names, extensions, chunk identity, and file content.

Features

  • Filesystem-aware retrieval with weighted BM25F fields
  • Chunk, file, and chunk-plus-file indexing modes
  • Stable chunk identity metadata for global, path-level, and file-level chunk numbering
  • CLI for ad hoc lexical search over source trees and document corpora
  • No embedding vocabulary dependency for query handling

Installation

pip install swarmauri_vectorstore_fs

Usage

from swarmauri_vectorstore_fs import FsVectorStore

store = FsVectorStore(root_path=".", mode="chunk")
store.build_index()
results = store.retrieve("vector store registration", top_k=3)

for document in results:
    print(document.id, document.metadata["relative_path"])

CLI

fsvs --root . query --query "vector store registration" --top-k 5

To inspect a specific retrieved document:

fsvs --root . show --document-id <document-id>

Want to help?

If you want to contribute to swarmauri-sdk, read up on our guidelines for contributing.

Project details


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_fs-0.11.0.dev1.tar.gz (9.9 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_fs-0.11.0.dev1-py3-none-any.whl (10.4 kB view details)

Uploaded Python 3

File details

Details for the file swarmauri_vectorstore_fs-0.11.0.dev1.tar.gz.

File metadata

  • Download URL: swarmauri_vectorstore_fs-0.11.0.dev1.tar.gz
  • Upload date:
  • Size: 9.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.26 {"installer":{"name":"uv","version":"0.11.26","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}

File hashes

Hashes for swarmauri_vectorstore_fs-0.11.0.dev1.tar.gz
Algorithm Hash digest
SHA256 bfe630f6b83b9458eca2795f5ac68b3628bf3fc60885d0b229f1541ece8c417f
MD5 18c4c46de468d405a2871177ccc5c9a4
BLAKE2b-256 94815e1738e21b1cc6580a670482be251b684be14a7cc4d5b17fa4a5d663a943

See more details on using hashes here.

File details

Details for the file swarmauri_vectorstore_fs-0.11.0.dev1-py3-none-any.whl.

File metadata

  • Download URL: swarmauri_vectorstore_fs-0.11.0.dev1-py3-none-any.whl
  • Upload date:
  • Size: 10.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.26 {"installer":{"name":"uv","version":"0.11.26","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}

File hashes

Hashes for swarmauri_vectorstore_fs-0.11.0.dev1-py3-none-any.whl
Algorithm Hash digest
SHA256 47671ae1c2e7cb38687724e5441ebf129128edf9cac2383227d5fcc23f6ea135
MD5 fb8e721b4a1b39e1d729f849197860db
BLAKE2b-256 d561453c519ddcf370c21ae725533704b224a36a9a7a8e784b3207eb5f9e7757

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