Loading

Custom Retriever Returning Inconsistent Results in Agentforce / Prompt Builder

Дата публикации: Apr 16, 2026
Описание

Customers may experience inconsistent or missing results from a Custom Retriever in Agentforce's Prompt Builder when using certain query phrasing. The retriever may return no documents for a valid question while returning correct results for a more specific or descriptive phrasing of the same question. This behavior can occur even when the Knowledge Article and retriever configuration appear identical across orgs.

This issue arises because archived or draft articles are included in the search results. Since these are filtered out during post-processing, the final response may be empty.

Решение

1. Add the filter criterion 'Knowledge Publication Status Id Equal To Online' to the retriever to ensure it retrieves only published articles.

2. Test the retriever after applying the filter and confirm that it consistently returns the expected results.

Номер статьи базы знаний

005318637

 
Загрузка
Salesforce Help | Article