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

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.