query_field string required default: "text" Cross-encoder rerank of candidates against a query.
Reorders a search results list to put the most relevant items first.
Takes results from a Knowledge Base search and uses a specialized model to score how well each one answers the user's question.
Improves AI response quality. Ensures the assistant reads the right document first and doesn't get distracted by irrelevant results.
| name | type |
|---|---|
text | string |
hits | array |
| name | type |
|---|---|
results | array |
count | number |
model | string |
out — Output query_field string required default: "text" candidates_field string required default: "hits" top_k integer required default: 5 score_threshold number optional memory_key string optional fallback_on_error boolean required default: true {
"query_field": "text",
"candidates_field": "hits",
"top_k": 5,
"fallback_on_error": true
} This node does not publish events on the pubsub channel.