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.post165.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.post165-py3-none-any.whl (48.8 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for nucliadb_agentic_api-1.0.0.post165.tar.gz
Algorithm Hash digest
SHA256 134798e17229ae96ab0cabb386b734754fccc5ea3fbc4dfad664da5541cea2a4
MD5 850da438478bd3f6336b828fbf3b6f60
BLAKE2b-256 1dede11656ac0f8aeb634d786d36f30ab2f17bce9d37c73ef3eff75d7c61aeda

See more details on using hashes here.

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

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.post165-py3-none-any.whl.

File metadata

File hashes

Hashes for nucliadb_agentic_api-1.0.0.post165-py3-none-any.whl
Algorithm Hash digest
SHA256 15d201e12bc68e35ac9dc9067aea29a3c60a598472d1f04c1503223424cec8fe
MD5 ee3a612207a9a7d89030b0e5076a80af
BLAKE2b-256 12e3d9a845d972a6351372cb430b07c8f411d3acd5923726c33c05c001eda3d0

See more details on using hashes here.

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

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