The Agentic RAG Retriever uses AI to perform multiple search iterations, refining its queries based on previous results until it finds adequate information.
The search results are stored:
Results: {{agentic_rag.results[0].content}}
Count: {{agentic_rag.count}}
Retriever Prompt
handlebars
Required
Instructions for what information to retrieve.
Supports Handlebars syntax:
{{variable_name}}
Knowledge Collections
knowledge_collections
Required
Select one or more knowledge collections to search.
Select one or more knowledge collections to search. Collections are managed in the Knowledge section.
Search Settings
search_settings
Configure search behavior and result filtering.
Configuration options:
Search types:
AI Configuration
agent_settings
Configure the AI model and behavior.
Configuration options:
Temperature guide:
Error Handling
error_handling
Configure how the node handles errors.
Configuration options:
Use retries for transient errors like network issues. Use "continue on error" to implement fallback logic.
This node stores its output in a variable that can be referenced in subsequent nodes using the {{variable}} syntax.
{{variable}}.results
array
Array of search result objects with content, relevance scores, source information, and collection metadata
{{variable}}.results[].content
string
The text content of the search result chunk
{{variable}}.results[].score
number
Relevance score for this result (0.0-1.0)
{{variable}}.results[].source
string
Source document name or URL where this result originated
{{variable}}.results[].collection_id
string
Unique identifier of the collection this result came from
{{variable}}.results[].collection_name
string
Human-readable name of the collection this result came from
{{variable}}.count
number
Total number of results returned after all search iterations
{{variable}}.timestamp
string
ISO 8601 timestamp when the final results were returned
{{variable}}.inadequate
boolean
Optional flag indicating results were returned but marked as inadequate by AI evaluation
{{variable}}.search_exhausted
boolean
Optional flag indicating max search iterations were reached before finding adequate results
output
empty_results