RAGent Core
Shared data-source loaders, Turbopuffer retrieval, agent search tools, judges, types, utilities, and operational scripts.
Setup
Install locked runtime dependencies and configure the required API key:
uv sync --locked
cp .env-template .env
TURBOPUFFER_API_KEY is the only required retrieval setting. The defaults are
region gcp-us-central1, physical namespace prefix ragent, and logical
namespace default. Region and prefix can be overridden before building with
TURBOPUFFER_REGION and TURBOPUFFER_NAMESPACE_PREFIX.
Each corpus has a chunk namespace, a document namespace, and a catalog entry. The catalog records physical resolution, schema version, exact counts, vector availability and dimensions, embedding model, and readiness. Runtime reads reject missing or incomplete entries. Builders never overwrite a corpus; use a new logical namespace for a rebuild.
Build corpora
Run scripts from the repository root. Build all Hugging Face sources:
uv run --project ragent_core python ragent_core/scripts/build_turbopuffer_indexes.py \
--device cuda --batch-size 512
Build one source or a lexical-only corpus:
uv run --project ragent_core python ragent_core/scripts/build_turbopuffer_indexes.py \
--data-source nampdn_ai_devdocs_io --device cuda --batch-size 512
uv run --project ragent_core python ragent_core/scripts/build_turbopuffer_indexes.py \
--data-source nampdn_ai_devdocs_io --no-embedding --namespace lexical-v1
Build PersonaHub, optionally with --limit 100 for a smoke test:
uv run --project ragent_core \
python ragent_core/scripts/build_personahub_turbopuffer_index.py \
--device cuda --batch-size 512
Embeddings and writes are streamed in batches. Corpus document and chunk IDs are stored directly as Turbopuffer unsigned integers.
Delete namespaces
Pass explicit physical namespace names. The command only previews its targets
unless --yes is supplied:
uv run --project ragent_core \
python ragent_core/scripts/delete_turbopuffer_namespaces.py \
ragent.test.example.chunks \
ragent.test.example.documents \
ragent.test.catalog
uv run --project ragent_core \
python ragent_core/scripts/delete_turbopuffer_namespaces.py --yes \
ragent.test.example.chunks \
ragent.test.example.documents \
ragent.test.catalog
Data-source publication
Validate or upload normalized Hugging Face source data with:
uv run --project ragent_core python ragent_core/scripts/upload_data_source.py \
posthog_com --dry-run
uv run --project ragent_core python ragent_core/scripts/upload_data_source.py posthog_com
Generated-data publication belongs to the
data_pipelines project.
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 ragent_core-0.4.0.tar.gz.
File metadata
- Download URL: ragent_core-0.4.0.tar.gz
- Upload date:
- Size: 375.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
uv/0.11.5 {"installer":{"name":"uv","version":"0.11.5","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d76e2729ec94ca6c3aa3e05d07b2053ea6c3b771795d5c236b7d5b458ca7e8e7
|
|
| MD5 |
86dbe06772e2c93e1892ecebe501973f
|
|
| BLAKE2b-256 |
695a3686591edd64c349228ef3e77bf3b4a05a2b7329ce49885630885b5eb9e0
|
File details
Details for the file ragent_core-0.4.0-py3-none-any.whl.
File metadata
- Download URL: ragent_core-0.4.0-py3-none-any.whl
- Upload date:
- Size: 48.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
uv/0.11.5 {"installer":{"name":"uv","version":"0.11.5","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c1cf261efc92cf23d1eaafb158a3756a9839f1ecc4c149f9584cfdf486cd13dc
|
|
| MD5 |
2bd773f23f26cde1921b58514d480f24
|
|
| BLAKE2b-256 |
edf347ced4bc31b392239e27b004eb48817127a31d79002554a3496eef4bce6e
|