← All nodes
Actions a_kb_search

Knowledge Search

Embeds the query and retrieves top-K chunks from a knowledge base.

What does it do?

Searches for the answer to a customer's question in the Knowledge Base (documents, catalogs or URLs you uploaded to Daguito).

How does it work?

Converts the question into mathematical vectors and searches for the most relevant text fragments in the database. Then extracts the matches for the AI Agent to read.

Why use it?

Prevents hallucinations. Without this node, the bot could invent product prices or features. With it, the bot only answers based on your official information.

Inputs

nametype
text string
kb_id string
kb_tier string
kb_dim number

Outputs

nametype
hits array
count number
branch string

Branches

Fixed branches

  • hits — Hits
  • empty — Empty

Configuration

embed_provider string optional
query_field string required default: "text"
kb_id_field string required default: "kb_id"
kb_id string optional
tier_field string required default: "kb_tier"
kb_tier "shared" | "dedicated" optional
dim_field string required default: "kb_dim"
kb_dim integer optional
source_ids_field string required default: "source_ids"
limit integer required default: 8
score_threshold number optional
memory_key string optional
branch_when_hits string required default: "hits"
branch_when_empty string required default: "empty"

Default configuration

{
  "query_field": "text",
  "kb_id_field": "kb_id",
  "tier_field": "kb_tier",
  "dim_field": "kb_dim",
  "source_ids_field": "source_ids",
  "limit": 8,
  "branch_when_hits": "hits",
  "branch_when_empty": "empty"
}

Emitted events

This node does not publish events on the pubsub channel.