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_HOSTandHTTP_PORTMEMORY_READER_NUCLIADB,MEMORY_WRITER_NUCLIADB, andMEMORY_SEARCH_NUCLIADBMEMORY_APIKEY_NUCLIADBVALKEY_URLIDP_REGIONAL_GRPCLOAD_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)
- 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.post165
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| nucliadb_agentic_api-1.0.0.post165.tar.gz | 39.9 kB | With provenance | Details for nucliadb_agentic_api-1.0.0.post165.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| nucliadb_agentic_api-1.0.0.post165-py3-none-any.whl | Python 3 | none | any | Details for nucliadb_agentic_api-1.0.0.post165-py3-none-any.whl |
Total release size: 88.7 kB
Release files / nucliadb_agentic_api-1.0.0.post165.tar.gz
| Download URL | nucliadb_agentic_api-1.0.0.post165.tar.gz |
|---|---|
| Size | 39.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
134798e17229ae96ab0cabb386b734754fccc5ea3fbc4dfad664da5541cea2a4
|
|
BLAKE2b-256 checksum How to use checksums |
1dede11656ac0f8aeb634d786d36f30ab2f17bce9d37c73ef3eff75d7c61aeda
|
| 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 Jul 21, 2026.
Transparency logRelease files / nucliadb_agentic_api-1.0.0.post165-py3-none-any.whl
| Download URL | nucliadb_agentic_api-1.0.0.post165-py3-none-any.whl |
|---|---|
| Size | 48.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
15d201e12bc68e35ac9dc9067aea29a3c60a598472d1f04c1503223424cec8fe
|
|
BLAKE2b-256 checksum How to use checksums |
12e3d9a845d972a6351372cb430b07c8f411d3acd5923726c33c05c001eda3d0
|
| 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 Jul 21, 2026.
Transparency logSecurity for nucliadb-agentic-api 1.0.0.post165
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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for nucliadb_agentic_api-1.0.0.post165.tar.gz
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 Jul 21, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.