axm-echo
Neural similarity & echo detection over code corpora (MiniLM + scikit-learn).
Overview
Neural similarity & echo detection over code corpora (MiniLM + scikit-learn).
Features
- Neural by default — the
st(MiniLM) backend ships in the base install (torch+sentence-transformers) and runs in-process; no extra to enable. tfidfopt-out — the pure-CPUnumpy+scikit-learnbackend stays available (--backend tfidf) for callers that want to avoid loading torch.- Built on
axm-astfor code-corpus extraction — the corpus feeding bothecho_code(cross-package dedup) andecho_check(reuse retrieval).
Installation
# echo is neural by default — the install ships torch + sentence-transformers.
uv add axm-echo
Or as a workspace dependency in pyproject.toml:
[project]
dependencies = ["axm-echo"]
[tool.uv.sources]
axm-echo = { workspace = true }
Quick Start
from axm_echo import embed, extract_monorepo, neighbors
symbols = extract_monorepo() # public symbols across the configured scope
matrix = embed([s["embed_text"] for s in symbols], backend="tfidf")
for idx, score in neighbors(matrix[0], matrix, k=5):
print(f"{score:.3f} {symbols[idx]['qualname']}")
See the documentation site
for the echo_code / echo_check tools and the scope how-to.
Development
This package is part of the axm-forge-workspace uv workspace.
# Run tests for this package
uv run --package axm-echo pytest
# From workspace root
make test-axm-echo
License
MIT — © 2026 Gabriel Jarry
Metadata
Release files for axm-echo 0.2.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 | |
|---|---|---|---|
| axm_echo-0.2.0.tar.gz | 55.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| axm_echo-0.2.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 86.3 kB
Release files / axm_echo-0.2.0.tar.gz
| Download URL | axm_echo-0.2.0.tar.gz |
|---|---|
| Size | 55.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
727835d5a804c7e2437d24160936d6c52fcc08ae3a9fb9bcf670fe68c0e36018
|
|
BLAKE2b-256 checksum How to use checksums |
b82f02d139bd5ef6f9d2e54a388fbaa3122bb805ecaad00be11a95b08234a4b7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 8, 2026.
Transparency logRelease files / axm_echo-0.2.0-py3-none-any.whl
| Download URL | axm_echo-0.2.0-py3-none-any.whl |
|---|---|
| Size | 30.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f4023360a578b42fa05fae867f452f603bbd5af2c40336bfad1a2b0ee58fa1fa
|
|
BLAKE2b-256 checksum How to use checksums |
a2e23a3db2c8116e192349345726ba4b0eaa072eb1122db465329d5509d5505e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 8, 2026.
Transparency log