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.2.tar.gz (378.9 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.2-py3-none-any.whl (49.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ragent_core-0.4.2.tar.gz
  • Upload date:
  • Size: 378.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.12.7 {"installer":{"name":"uv","version":"0.12.7","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.2.tar.gz
Algorithm Hash digest
SHA256 64b8eb2ce3ff267c31ca8f20a55221421e192a416fbece97862cc0789ffe2e7b
MD5 6fb6f2d5520c08d164e8453950958e4a
BLAKE2b-256 3c7c91f67ddeb544434a83b67ca2f82eadbcd026c412c15a61f272b2b5a1fa65

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ragent_core-0.4.2-py3-none-any.whl
  • Upload date:
  • Size: 49.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.12.7 {"installer":{"name":"uv","version":"0.12.7","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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 732a6382e1b09e98ac25f7284a5a784df72c9ca669918bc0430c60c461199ecd
MD5 fdbc020b96f4f799908d92c6e46661ef
BLAKE2b-256 5049c18ef20cd52ec391a2caf1f4ce7cce89f4ffa6443c23fcc82b46fdd4d86d

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.4.2 This release

2 files

0.4.1

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