Wipe v0.11 artefacts ahead of v2.0 rebuild upload
Browse files- README.md +0 -121
- python-stdlib-bundled.rlat +0 -3
- python-stdlib.rlat +0 -3
README.md
DELETED
|
@@ -1,121 +0,0 @@
|
|
| 1 |
-
---
|
| 2 |
-
license: other
|
| 3 |
-
language:
|
| 4 |
-
- en
|
| 5 |
-
pretty_name: "Python Standard Library Docs — rlat knowledge model"
|
| 6 |
-
tags:
|
| 7 |
-
- retrieval
|
| 8 |
-
- knowledge-model
|
| 9 |
-
- resonance-lattice
|
| 10 |
-
- rlat
|
| 11 |
-
- embeddings
|
| 12 |
-
- python
|
| 13 |
-
- standard-library
|
| 14 |
-
- cpython
|
| 15 |
-
- programming
|
| 16 |
-
size_categories:
|
| 17 |
-
- 1M<n<10M
|
| 18 |
-
---
|
| 19 |
-
|
| 20 |
-
# Python Standard Library Docs — rlat knowledge model
|
| 21 |
-
|
| 22 |
-
Prebuilt [Resonance Lattice](https://github.com/tenfingerseddy/resonance-lattice-cli)
|
| 23 |
-
knowledge model over **[python/cpython](https://github.com/python/cpython)** (scoped to `Doc/`), built for
|
| 24 |
-
retrieval-augmented coding assistants and LLM context injection.
|
| 25 |
-
|
| 26 |
-
**Audience:** Python developers working with the standard library — dataclasses, typing, asyncio, pathlib, and more.
|
| 27 |
-
|
| 28 |
-
## Two variants — which do you want?
|
| 29 |
-
|
| 30 |
-
| File | Size | When to pick |
|
| 31 |
-
|------|------|------|
|
| 32 |
-
| [`python-stdlib.rlat`](./python-stdlib.rlat) | 215 MB | **Remote** — knowledge model pins to a GitHub commit SHA. Source text is fetched from `https://github.com/python/cpython` on first query and cached locally. Freshest; smaller download. Needs network on first query. |
|
| 33 |
-
| [`python-stdlib-bundled.rlat`](./python-stdlib-bundled.rlat) | 433 MB | **Bundled** — fully self-contained. Source text is packed inside the `.rlat` as zstd frames. Works offline forever. Larger download; no drift tracking. |
|
| 34 |
-
|
| 35 |
-
**Pick bundled** if you care about reliability, offline use, or air-gapped environments.
|
| 36 |
-
**Pick remote** if you want automatic freshness via `rlat freshness` / `rlat sync`, or if you plan to query from CI where cold-cache fetches are fine.
|
| 37 |
-
|
| 38 |
-
Both variants serve **identical retrieval quality** — same field, same registry, same encoder (BGE-large-en-v1.5 with random projection heads, 5 bands × 2048 dim, 8-bit quantized registry, zstd compressed).
|
| 39 |
-
|
| 40 |
-
## Usage
|
| 41 |
-
|
| 42 |
-
```bash
|
| 43 |
-
# Install the CLI (one-time)
|
| 44 |
-
pip install resonance-lattice
|
| 45 |
-
|
| 46 |
-
# Download one of the variants (pick bundled for zero-network queries):
|
| 47 |
-
huggingface-cli download tenfingers/python-stdlib-rlat python-stdlib-bundled.rlat --local-dir .
|
| 48 |
-
|
| 49 |
-
# Query:
|
| 50 |
-
rlat search python-stdlib-bundled.rlat "how do I use dataclasses with default factory"
|
| 51 |
-
rlat ask python-stdlib-bundled.rlat "how do I use dataclasses with default factory"
|
| 52 |
-
|
| 53 |
-
# Use as Claude / Cursor / ChatGPT context:
|
| 54 |
-
rlat resonate python-stdlib-bundled.rlat "how do I use dataclasses with default factory" --format context | pbcopy
|
| 55 |
-
```
|
| 56 |
-
|
| 57 |
-
## Sample queries
|
| 58 |
-
|
| 59 |
-
- `how do I use dataclasses with default factory`
|
| 60 |
-
- `difference between asyncio tasks and coroutines`
|
| 61 |
-
- `best way to read a large file line by line`
|
| 62 |
-
- `pathlib vs os.path for file operations`
|
| 63 |
-
|
| 64 |
-
## Corpus provenance
|
| 65 |
-
|
| 66 |
-
- **Upstream repo:** https://github.com/python/cpython
|
| 67 |
-
- **Scope:** `Doc/` subdirectory only
|
| 68 |
-
- **Pinned commit SHA:** `76b3923d688c0efc580658476c5f525ec8735104`
|
| 69 |
-
- **Files indexed:** 619
|
| 70 |
-
- **Chunks (semantic passages):** 12,737
|
| 71 |
-
- **Encoder:** `BAAI/bge-large-en-v1.5` with 5 random projection heads (2048 dim × 5 bands)
|
| 72 |
-
- **Registry compression:** 8-bit quantized (≈75% size reduction, ≥0.99 per-band cosine similarity vs fp32)
|
| 73 |
-
- **Build flags:** `--quantize-registry 8 --compression zstd --path Doc`
|
| 74 |
-
- **Build date:** 2026-04-22
|
| 75 |
-
|
| 76 |
-
## Licensing
|
| 77 |
-
|
| 78 |
-
### Source content
|
| 79 |
-
|
| 80 |
-
This knowledge model indexes (and in the **bundled** variant, redistributes) content from **[python/cpython](https://github.com/python/cpython)**.
|
| 81 |
-
|
| 82 |
-
- **Copyright:** © Python Software Foundation. All rights reserved.
|
| 83 |
-
- **License:** [Python Software Foundation License Agreement](https://docs.python.org/3/license.html)
|
| 84 |
-
- **Modifications:** Source files are chunked into retrieval-sized passages and indexed into a semantic field + registry. In the **bundled** variant, the source files themselves are packed unchanged as zstd frames inside the `.rlat` (lossless; re-chunking at query time produces the same bytes as the upstream file at the pinned SHA). In the **remote** variant, no source content is redistributed — queries fetch directly from the upstream repo on first access.
|
| 85 |
-
|
| 86 |
-
All retrieved passages retain their upstream license. Commercial use is permitted under the upstream license; attribution to the upstream repo is required when redistributing passages.
|
| 87 |
-
|
| 88 |
-
### Artifact structure
|
| 89 |
-
|
| 90 |
-
The knowledge-model *structure* — semantic field tensor, source registry, manifest, encoder configuration — is licensed under the [Business Source License 1.1](https://mariadb.com/bsl11/), the same license as the [Resonance Lattice project](https://github.com/tenfingerseddy/resonance-lattice-cli). Each release converts to MPL 2.0 four years after it's first published.
|
| 91 |
-
|
| 92 |
-
BSL 1.1 applies to the *structure* of the knowledge model (how it indexes and retrieves), not to the embedded content. You can use this rlat commercially for retrieval and grounded AI workflows over the indexed docs; what BSL restricts is building a competing Resonance Lattice implementation from the lattice structure itself. See the [BSL 1.1 plain-language summary](https://github.com/tenfingerseddy/resonance-lattice-cli/blob/main/docs/LICENSE_FAQ.md).
|
| 93 |
-
|
| 94 |
-
### Trademark notice
|
| 95 |
-
|
| 96 |
-
Python and the Python logo are trademarks of the Python Software Foundation. This project is not affiliated with, endorsed by, or sponsored by the Python Software Foundation.
|
| 97 |
-
|
| 98 |
-
## Keeping it fresh (remote variant only)
|
| 99 |
-
|
| 100 |
-
```bash
|
| 101 |
-
# Read-only drift check — one GitHub API call
|
| 102 |
-
rlat freshness python-stdlib.rlat
|
| 103 |
-
|
| 104 |
-
# Pull upstream diff into the local knowledge model
|
| 105 |
-
rlat sync python-stdlib.rlat
|
| 106 |
-
```
|
| 107 |
-
|
| 108 |
-
`rlat sync` fetches only the files that changed between the pinned SHA and upstream HEAD, rechunks them, and reconciles against the existing registry. Cost is proportional to the diff, not the full corpus.
|
| 109 |
-
|
| 110 |
-
## Citation
|
| 111 |
-
|
| 112 |
-
If you use this rlat in research, please cite:
|
| 113 |
-
|
| 114 |
-
```
|
| 115 |
-
@misc{resonance-lattice-rlats-2026,
|
| 116 |
-
title = {Resonance Lattice launch rlats},
|
| 117 |
-
author = {Snyder, Kane},
|
| 118 |
-
year = {2026},
|
| 119 |
-
howpublished = {HuggingFace Hub, \url{https://huggingface.co/datasets/tenfingers/python-stdlib-rlat}}
|
| 120 |
-
}
|
| 121 |
-
```
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
python-stdlib-bundled.rlat
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:98fb6cb1fd9c4fc2275b5b3b312002b448537e0c37e2a39223e6830daa549859
|
| 3 |
-
size 453698255
|
|
|
|
|
|
|
|
|
|
|
|
python-stdlib.rlat
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:50e9fba328175e037b316c5c5cc91eef561995701b176eaea9d700b186183d7d
|
| 3 |
-
size 225808624
|
|
|
|
|
|
|
|
|
|
|
|