Skip to main content

Swarmauri Logo

PyPI - Python Version PyPI - License PyPI - swarmauri_vectorstore_git


Swarmauri Vectorstore Git

A Swarmauri community vector store that indexes Git repositories for semantic retrieval over commits and git log style records.

Features

  • Index scopes:
    • head: commits reachable from HEAD
    • ref: commits reachable from a specific branch, tag, or revision
    • all_refs: commits reachable from every ref in the repository
  • Document kinds:
    • commit: normalized commit metadata and changed-path text
    • log: rendered git log --stat style text
  • Pure git CLI backend, so there is no hard dependency on pygit2
  • Convenience CLI with colored logs for ad hoc retrieval
  • Default CLI behavior targets the current repo (.) and indexes all refs via --ref all

Installation

pip install swarmauri_vectorstore_git

Usage

from swarmauri_standard.documents.Document import Document
from swarmauri_vectorstore_git import GitVectorStore

store = GitVectorStore(
    repo_path=".",
    scope="all_refs",
    document_kinds=("commit", "log"),
)

store.build_index()
results = store.retrieve("oauth token bug", top_k=3)

for document in results:
    print(document.metadata["oid"], document.metadata["kind"])
    print(document.content[:200])

CLI

gitvs query --query "memory leak fix" --top-k 5

To inspect a specific retrieved document:

gitvs show --ref feature/my-branch --document-id <document-id>

Want to help?

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

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_git-0.10.0.tar.gz (6.8 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_git-0.10.0-py3-none-any.whl (7.9 kB view details)

Uploaded Python 3

File details

Details for the file swarmauri_vectorstore_git-0.10.0.tar.gz.

File metadata

  • Download URL: swarmauri_vectorstore_git-0.10.0.tar.gz
  • Upload date:
  • Size: 6.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.8 {"installer":{"name":"uv","version":"0.11.8","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_git-0.10.0.tar.gz
Algorithm Hash digest
SHA256 f68b4420f1b5b6d39e8f138a7866fc42ced1c6c5a283527510955777a826fba4
MD5 d44253d60351170be61081c59ec57259
BLAKE2b-256 0ae465808b83d1d6883298d8a53e77b8bc6bfaf5c9abbf247bc3f61cf458770c

See more details on using hashes here.

File details

Details for the file swarmauri_vectorstore_git-0.10.0-py3-none-any.whl.

File metadata

  • Download URL: swarmauri_vectorstore_git-0.10.0-py3-none-any.whl
  • Upload date:
  • Size: 7.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.8 {"installer":{"name":"uv","version":"0.11.8","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_git-0.10.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f6fa0a6c0c92e9ca9c02ea31bc2cb108c235f3eff595b44456bed6fd5fa09386
MD5 650c78914017284151a41c67c36e0baf
BLAKE2b-256 cecf7505c6d99267394db572bb0a24ca8d842893fe4097e9a7639161b48b18f2

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.10.0 This release

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page