Skip to main content

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

ragent_core-0.4.0.tar.gz (375.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ragent_core-0.4.0-py3-none-any.whl (48.2 kB view details)

Uploaded Python 3

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

Hashes for ragent_core-0.4.0.tar.gz
Algorithm Hash digest
SHA256 d76e2729ec94ca6c3aa3e05d07b2053ea6c3b771795d5c236b7d5b458ca7e8e7
MD5 86dbe06772e2c93e1892ecebe501973f
BLAKE2b-256 695a3686591edd64c349228ef3e77bf3b4a05a2b7329ce49885630885b5eb9e0

See more details on using hashes here.

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

Hashes for ragent_core-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c1cf261efc92cf23d1eaafb158a3756a9839f1ecc4c149f9584cfdf486cd13dc
MD5 2bd773f23f26cde1921b58514d480f24
BLAKE2b-256 edf347ced4bc31b392239e27b004eb48817127a31d79002554a3496eef4bce6e

See more details on using hashes here.

Release history Release notifications | RSS feed

0.4.2

2 files

0.4.1

2 files

This release

0.4.0 This release

2 files

0.3.0

2 files

0.2.1

2 files

0.2.0

2 files

0.1.1

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page