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.post156.tar.gz (39.8 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.post156-py3-none-any.whl (48.6 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for nucliadb_agentic_api-1.0.0.post156.tar.gz
Algorithm Hash digest
SHA256 433490c8ae3cd957a9434ecfe55bd1d05dda22074fc8ed96bc92e5e8f5e91ccb
MD5 32efd52a7dcb3e0103906a764437441e
BLAKE2b-256 3ba15a2c12113c108aac75809357d2b0d7accfac468acebe8d97406d9e0235db

See more details on using hashes here.

Provenance

The following attestation bundles were made for nucliadb_agentic_api-1.0.0.post156.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.post156-py3-none-any.whl.

File metadata

File hashes

Hashes for nucliadb_agentic_api-1.0.0.post156-py3-none-any.whl
Algorithm Hash digest
SHA256 fb6c9b9887fa570d5da6d26699b19283409709c4833eb5014c04ab394a8c1970
MD5 323eb18a877604717246d3ae2b518fcd
BLAKE2b-256 672383d483bb372b7d93ce3b5ed760b069fbd61508945b25bbe9fcd15487ffa7

See more details on using hashes here.

Provenance

The following attestation bundles were made for nucliadb_agentic_api-1.0.0.post156-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