Skip to main content

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_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>
}

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nucliadb_agentic_api-1.0.0.post161.tar.gz (39.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

nucliadb_agentic_api-1.0.0.post161-py3-none-any.whl (48.7 kB view details)

Uploaded Python 3

File details

Details for the file nucliadb_agentic_api-1.0.0.post161.tar.gz.

File metadata

File hashes

Hashes for nucliadb_agentic_api-1.0.0.post161.tar.gz
Algorithm Hash digest
SHA256 f17d21e308f7e19a9bd475ada0cd1ad428bc3a2cdd06db9c47696ad00f6932a3
MD5 f005973358deb4e80a1a83a925e38c12
BLAKE2b-256 2fa47bce4fccc512beece7c7152d326ee81b44fec75ee962ff32542b43446915

See more details on using hashes here.

Provenance

The following attestation bundles were made for nucliadb_agentic_api-1.0.0.post161.tar.gz:

Publisher: nucliadb_agentic_api_workflow.yaml on nuclia/nucliadb_agentic_api

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file nucliadb_agentic_api-1.0.0.post161-py3-none-any.whl.

File metadata

File hashes

Hashes for nucliadb_agentic_api-1.0.0.post161-py3-none-any.whl
Algorithm Hash digest
SHA256 aa567269dac3a6a70b9991739796309cc1b0d1dea450e8cf9fc75fcfb80f7343
MD5 67da287956554d82172ba7001f8eb053
BLAKE2b-256 2e71e8d491eaaab05fe344b0a0ce8def6ad13c0987fd6da2200aea0bf59fe885

See more details on using hashes here.

Provenance

The following attestation bundles were made for nucliadb_agentic_api-1.0.0.post161-py3-none-any.whl:

Publisher: nucliadb_agentic_api_workflow.yaml on nuclia/nucliadb_agentic_api

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page