🚀 Base90-RAG: 告别向量计算,用短码硬路由重塑文本检索
Base90-RAG 是一个无算力消耗、极速、绝对零幻觉的纯文本检索结构。它抛弃了高昂的 Embedding 模型和向量数据库,采用纯古典信息论 + Base90 无损短码压缩,实现了单机极致的 RAG 性能。
💥 核心数据 Benchmark
在 1 万条真实长文本语料的工程基准测试下:
| 性能指标 | TF-IDF (传统标杆) | ChromaDB+BGE (向量库) | Base90-RAG |
|---|---|---|---|
| 平均延迟 | 0.99 ms | 10.79 ms | 0.19 ms |
| 召回率 | 0% | 75% | 100% |
在 50 万条极限压测中,Base90-RAG 的查询耗时仅为 2.25 ms,速度领先工业级 Faiss(1536维)136 倍!
⚡ 特性
- 零算力依赖:无需 GPU,无需运行 BGE 模型,纯 CPU 即可毫秒级响应。
- 绝对零幻觉:采用倒排索引与短码硬路由,物理保真,找回的必定是原文。
- 内存极度压缩:将中英文转译为 Base90 字符集(90个无歧义字符),海量数据内存占用极低。
- 前缀路由抗噪:能够完美处理包含大量废话、高频重复词的极端长文本。
📦 快速开始
安装
pip install base90-rag
Metadata
Release files for base90-rag 0.1.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 | Provenance | Actions |
|---|---|---|---|---|
| base90_rag-0.1.0.tar.gz | 5.0 kB | Without provenance | Details for base90_rag-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| base90_rag-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for base90_rag-0.1.0-py3-none-any.whl |
Total release size: 10.4 kB
Release files / base90_rag-0.1.0.tar.gz
| Download URL | base90_rag-0.1.0.tar.gz |
|---|---|
| Size | 5.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
cb6cd8927f11616474bd4f16b8da9624788731d45ff20a3ac06f9b05c52417f6
|
|
BLAKE2b-256 checksum How to use checksums |
37a9039744c0b650857cc6099cd2b07d497c2c5c718ea3d145f495f9afa18467
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.15
|
Release files / base90_rag-0.1.0-py3-none-any.whl
| Download URL | base90_rag-0.1.0-py3-none-any.whl |
|---|---|
| Size | 5.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5997e578cb4fde618e96e46d5588e33a7f6a298634cb18c8b3062bba17311ab9
|
|
BLAKE2b-256 checksum How to use checksums |
ede064bd66636f3f5f2a21f9a09ade24fa926aec90dc83b38ab2251c2188c111
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.15
|
Security for base90-rag 0.1.0
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.