Skip to main content

NucliaDB Agentic API

The NucliaDB Agentic API package exposes NucliaDB-oriented agentic capabilities for Hyperforge, including ASK/search flows and MCP integrations.

Install

From the workspace root:

uv sync

Run

Start the service:

uv run nucliadb-agentic-api

Useful endpoints:

  • /health/ready
  • /health/alive
  • /metrics

Configuration

Runtime configuration is provided through environment variables consumed by Pydantic settings. Common settings include:

  • HTTP_HOST and HTTP_PORT
  • MEMORY_READER_NUCLIADB, MEMORY_WRITER_NUCLIADB, and MEMORY_SEARCH_NUCLIADB
  • MEMORY_APIKEY_NUCLIADB
  • VALKEY_URL
  • IDP_REGIONAL_GRPC
  • LOAD_MODULES

Development

Run the package tests from the workspace root:

make test

Objective

Enhance the RAG experience by offering RAO features directly in a KB.

How?

The same way we store search configs in the KB, we could store agentic configs, and when calling the /ask endpoint we can refer to a given agentic config.

Scope

The corresponding RAO workflow will be:

  • a Rephrase (optionally)
  • a SmartAgent
  • a Summarize

Possible sources for the SmartAgent:

  • The current KB (possibly several times with different filters)
  • Sync service (using connections defined in the current KB)
  • Google
  • Perplexity
  • MCP

Out of scope

  • Other KBs
  • SQL
  • Snowflake (?)
  • Sitefinity (?)

Config spec

{
  "rephrase": { // optional
    "ask_to": <filter_expression>, //optional
    "prompt": <string>, // optional
    "model": <model>, // optional
  },
  "smart_agent": {
    "mode": <reactive | plan_execute>,
    "extra_prompt": <string>, // optional
    "models": { // optional
      "context_validation": <model>, // optional
      "planner": <model>, // optional
      "executor": <model>, // optional
    },
    "sources": [<source list>]
  },
  "summarize": { // optional
    "user_prompt": <string>, // optional
    "system_prompt": <string>, // optional
    "conversational": <boolean>,
    "model": <model>, // optional
    // and citations must be forced to chunk-level
  }
}

And sources can be:

{
  "type": "nucliadb",
  "description": <string>,
  "filter_expression": <filter_expression>, //optional
}

{
  "type": "sync",
  "description": <string>,
  "connection": <connection_id>
}

{
  "type": "google",
  "description": <string>
}

{
  "type": "perplexity",
  "description": <string>
}

{
  "type": "mcp",
  "description": <string>,
  <...the MCP driver params>
}

Metadata

Release files for nucliadb-agentic-api 1.0.0.post205

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for nucliadb-agentic-api 1.0.0.post205
File Size Uploaded
nucliadb_agentic_api-1.0.0.post205.tar.gz 40.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for nucliadb-agentic-api 1.0.0.post205
File Interpreter ABI Platform
nucliadb_agentic_api-1.0.0.post205-py3-none-any.whl Python 3 none any Details

Total release size: 89.8 kB

Release files / nucliadb_agentic_api-1.0.0.post205.tar.gz

Download URL nucliadb_agentic_api-1.0.0.post205.tar.gz
Size 40.6 kB
Tags Source
SHA-256 checksum
How to use checksums
e00b787038ea521ed03d0f64ea0a78d55a4cf8e7f7609738136bd381cc3b3507
BLAKE2b-256 checksum
How to use checksums
9ee4abd38984d9e79583bf02e6cba2e68f2017ebb3e8ddb2dc4a7623bd6a30c7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.13

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 5, 2026.

Transparency log

Release files / nucliadb_agentic_api-1.0.0.post205-py3-none-any.whl

Download URL nucliadb_agentic_api-1.0.0.post205-py3-none-any.whl
Size 49.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
766701ab1807709fe9622b2f19013bdcddeb4a9bce47d398782909bd1e2eb73d
BLAKE2b-256 checksum
How to use checksums
8befaa0923c4f4a1ebae4eb345534561871b9a2df0b1866687e53d81a4e2be9b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.13

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 5, 2026.

Transparency log
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