embed_provider string optional 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
| name | type |
|---|---|
text | string |
kb_id | string |
kb_tier | string |
kb_dim | number |
Outputs
| name | type |
|---|---|
hits | array |
count | number |
branch | string |
Branches
-
hits— Hits -
empty— Empty
Configuration
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.