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.1.tar.gz (375.2 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.1-py3-none-any.whl (48.3 kB view details)

Uploaded Python 3

File details

Details for the file ragent_core-0.4.1.tar.gz.

File metadata

  • Download URL: ragent_core-0.4.1.tar.gz
  • Upload date:
  • Size: 375.2 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.1.tar.gz
Algorithm Hash digest
SHA256 cf0d95c2307d722b6d4447637706a108abbe4849969a45f69246787049b09a0c
MD5 3d3ca4c4cb031897e6470dead41031e1
BLAKE2b-256 a473edc0a35cbdf121467448cd6ce82728fa56d294ff302c31989218a50a8562

See more details on using hashes here.

File details

Details for the file ragent_core-0.4.1-py3-none-any.whl.

File metadata

  • Download URL: ragent_core-0.4.1-py3-none-any.whl
  • Upload date:
  • Size: 48.3 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 34f15ca8466e3c7781dabc624ef558ec782afd78e08325b91b672b6214654d3c
MD5 1aa724f694cf33e1e54e5f59797a0256
BLAKE2b-256 0f537e938920d92ccc64635dc05cbe7534bc3f110c5c280a0dbae0fb4abd2222

See more details on using hashes here.

Release history Release notifications | RSS feed

0.4.2

2 files

This release

0.4.1 This release

2 files

0.4.0

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