NucliaDB Agentic API for Hyperforge
Project description
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>
}
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file nucliadb_agentic_api-1.0.0.post165.tar.gz.
File metadata
- Download URL: nucliadb_agentic_api-1.0.0.post165.tar.gz
- Upload date:
- Size: 39.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
134798e17229ae96ab0cabb386b734754fccc5ea3fbc4dfad664da5541cea2a4
|
|
| MD5 |
850da438478bd3f6336b828fbf3b6f60
|
|
| BLAKE2b-256 |
1dede11656ac0f8aeb634d786d36f30ab2f17bce9d37c73ef3eff75d7c61aeda
|
Provenance
The following attestation bundles were made for nucliadb_agentic_api-1.0.0.post165.tar.gz:
Publisher:
nucliadb_agentic_api_workflow.yaml on nuclia/nucliadb_agentic_api
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
nucliadb_agentic_api-1.0.0.post165.tar.gz -
Subject digest:
134798e17229ae96ab0cabb386b734754fccc5ea3fbc4dfad664da5541cea2a4 - Sigstore transparency entry: 2212405381
- Sigstore integration time:
-
Permalink:
nuclia/nucliadb_agentic_api@3bf42fcacad8c62fdf3a9afe48b96df7d779ba98 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/nuclia
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
nucliadb_agentic_api_workflow.yaml@3bf42fcacad8c62fdf3a9afe48b96df7d779ba98 -
Trigger Event:
push
-
Statement type:
File details
Details for the file nucliadb_agentic_api-1.0.0.post165-py3-none-any.whl.
File metadata
- Download URL: nucliadb_agentic_api-1.0.0.post165-py3-none-any.whl
- Upload date:
- Size: 48.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
15d201e12bc68e35ac9dc9067aea29a3c60a598472d1f04c1503223424cec8fe
|
|
| MD5 |
ee3a612207a9a7d89030b0e5076a80af
|
|
| BLAKE2b-256 |
12e3d9a845d972a6351372cb430b07c8f411d3acd5923726c33c05c001eda3d0
|
Provenance
The following attestation bundles were made for nucliadb_agentic_api-1.0.0.post165-py3-none-any.whl:
Publisher:
nucliadb_agentic_api_workflow.yaml on nuclia/nucliadb_agentic_api
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
nucliadb_agentic_api-1.0.0.post165-py3-none-any.whl -
Subject digest:
15d201e12bc68e35ac9dc9067aea29a3c60a598472d1f04c1503223424cec8fe - Sigstore transparency entry: 2212405401
- Sigstore integration time:
-
Permalink:
nuclia/nucliadb_agentic_api@3bf42fcacad8c62fdf3a9afe48b96df7d779ba98 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/nuclia
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
nucliadb_agentic_api_workflow.yaml@3bf42fcacad8c62fdf3a9afe48b96df7d779ba98 -
Trigger Event:
push
-
Statement type: