Swarmauri Git Vector Store
Project description
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 fromHEADref: commits reachable from a specific branch, tag, or revisionall_refs: commits reachable from every ref in the repository
- Document kinds:
commit: normalized commit metadata and changed-path textlog: renderedgit log --statstyle text
- Pure
gitCLI backend, so there is no hard dependency onpygit2 - 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 both document kinds together and return machine-readable output:
gitvs --ref HEAD --document-kind commit --document-kind log query --query "mojibake plugin readme" --top-k 2 --json
Actual output captured against the swarmauri-sdk repository:
[
{
"id": "5fb843d09edc2be4e681d4cff73b11a677439588:commit",
"metadata": {
"oid": "5fb843d09edc2be4e681d4cff73b11a677439588",
"kind": "commit",
"scope": "head",
"ref": null,
"parents": [
"0d29234100fd8bff6ace454cb5ede16d43550f20"
],
"changed_paths": [
"pkgs/plugins/EmbedXMP/README.md",
"pkgs/plugins/example_plugin/README.md"
],
"subject": "Fix mojibake in plugin README feature bullets",
"author": {
"name": "cobycloud",
"email": "25079070+cobycloud@users.noreply.github.com",
"time": "2026-05-03T01:51:22-05:00"
},
"committer": {
"name": "cobycloud",
"email": "25079070+cobycloud@users.noreply.github.com",
"time": "2026-05-03T01:52:36-05:00"
}
},
"content": "commit 5fb843d09edc2be4e681d4cff73b11a677439588\nscope head\nref HEAD\nsubject Fix mojibake in plugin README feature bullets\nauthor cobycloud <25079070+cobycloud@users.noreply.github.com>\ncommitter cobycloud <25079070+cobycloud@users.noreply.github.com>\nauthored_at 2026-05-03T01:51:22-05:00\ncommitted_at 2026-05-03T01:52:36-05:00\nparents 0d29234100fd8bff6ace454cb5ede16d43550f20\n\nmessage\nFix mojibake in plugin README feature bullets\n\nchanged_paths\npkgs/plugins/EmbedXMP/README.md\npkgs/plugins/example_plugin/README.md\n\ndiff_stats\npkgs/plugins/EmbedXMP/README.md | 10 +++++-----\n pkgs/plugins/example_plugin/README.md | 8 ++++----\n 2 files changed, 9 insertions(+), 9 deletions(-)"
},
{
"id": "5fb843d09edc2be4e681d4cff73b11a677439588:log",
"metadata": {
"oid": "5fb843d09edc2be4e681d4cff73b11a677439588",
"kind": "log",
"scope": "head",
"ref": null,
"subject": "Fix mojibake in plugin README feature bullets"
},
"content": "commit 5fb843d09edc2be4e681d4cff73b11a677439588\nAuthor: cobycloud <25079070+cobycloud@users.noreply.github.com>\nAuthorDate: 2026-05-03T01:51:22-05:00\nCommit: cobycloud <25079070+cobycloud@users.noreply.github.com>\nCommitDate: 2026-05-03T01:52:36-05:00\n\n Fix mojibake in plugin README feature bullets\n\n pkgs/plugins/EmbedXMP/README.md | 10 +++++-----\n pkgs/plugins/example_plugin/README.md | 8 ++++----\n 2 files changed, 9 insertions(+), 9 deletions(-)"
}
]
To inspect a specific retrieved document:
gitvs --ref HEAD show --document-id 5fb843d09edc2be4e681d4cff73b11a677439588:commit
Actual output:
commit 5fb843d09edc2be4e681d4cff73b11a677439588
scope head
ref HEAD
subject Fix mojibake in plugin README feature bullets
author cobycloud <25079070+cobycloud@users.noreply.github.com>
committer cobycloud <25079070+cobycloud@users.noreply.github.com>
authored_at 2026-05-03T01:51:22-05:00
committed_at 2026-05-03T01:52:36-05:00
parents 0d29234100fd8bff6ace454cb5ede16d43550f20
message
Fix mojibake in plugin README feature bullets
changed_paths
pkgs/plugins/EmbedXMP/README.md
pkgs/plugins/example_plugin/README.md
diff_stats
pkgs/plugins/EmbedXMP/README.md | 10 +++++-----
pkgs/plugins/example_plugin/README.md | 8 ++++----
2 files changed, 9 insertions(+), 9 deletions(-)
Want to help?
If you want to contribute to swarmauri-sdk, read up on our guidelines for contributing.
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file swarmauri_vectorstore_git-0.10.1.dev1.tar.gz.
File metadata
- Download URL: swarmauri_vectorstore_git-0.10.1.dev1.tar.gz
- Upload date:
- Size: 7.6 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
26c69cca63875e7895d612b07e79c5fda20d4be16038a0f79c1e79846167c61f
|
|
| MD5 |
da440236be74184e67d6fd9fdd688cd9
|
|
| BLAKE2b-256 |
c608fbaf2bcf88433656d2e535c26cb06c801819c8364cdc61a3774c4ce43c52
|
File details
Details for the file swarmauri_vectorstore_git-0.10.1.dev1-py3-none-any.whl.
File metadata
- Download URL: swarmauri_vectorstore_git-0.10.1.dev1-py3-none-any.whl
- Upload date:
- Size: 8.8 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d92a8d1106118694e26a1879efabaed0c0f74c1ced7cdcc6b0c8e807c78e486e
|
|
| MD5 |
f2259b9b153afdff4f587172b1279b43
|
|
| BLAKE2b-256 |
421bba68930b580caf6eaace99d8b3b5376dfe03b97d4aed06a20910bd1e1915
|