Query Template in the Retrievers changed its format after creating a new Agentforce Data Library(ADL) or changing the Content Fields in the ADL. This behavior is expect .
The Old format example:
SELECT v.Hybrid_score__c AS Score, c.Chunk__c AS Chunk, c.SourceRecordId__c AS SourceRecordId, c.DataSource__c AS DataSource, c.DataSourceObject__c AS DataSourceObject FROM hybrid_search(TABLE(KA_Agentforce_Default_Library_index__dlm), '{!$_SEARCH_STRING}', 'Language__c=''{!$_LANGUAGE}'' AND KnowledgePublicationStatus__c=''Online'' AND DataSource__c in (''FAQ_Internal_Comments_c__c'',''AssignmentNote__c'')', 30) v INNER JOIN KA_Agentforce_Default_Library_chunk__dlm c on c.RecordId__c=v.RecordId__c INNER JOIN ssot__KnowledgeArticleVersion__dlm kav on c.SourceRecordId__c=kav.ssot__Id__c ORDER BY Score DESC LIMIT 10
The New format example:
SELECT "v"."hybrid_score__c" AS "Score", "c"."Chunk__c" AS "Chunk", "c"."SourceRecordId__c" AS "SourceRecordId", "c"."DataSource__c" AS "DataSource", "c"."DataSourceObject__c" AS "DataSourceObject" FROM hybrid_search( TABLE("KA_Agentforce_Default_Library_index__dlm"), :"_SEARCH_STRING", :"_PREFILTER_EXPRESSION", :"_NUM_OF_RESULTS" ) AS "v" INNER JOIN "KA_Agentforce_Default_Library_index__dlm" AS "c" ON "c"."RecordId__c" = "v"."RecordId__c" INNER JOIN "ssot__KnowledgeArticleVersion__dlm" AS "kav" ON "c"."SourceRecordId__c" = "kav"."ssot__Id__c" ORDER BY "Score" DESC LIMIT {!$_NUM_OF_RESULTS}
The behavior is expected. The placeholderValue (_PREFILTER_EXPRESSION) in the new format can be identified by doing an Inspect->Network and checking the request name with EDC.getRetrieverConfiguration=1 (there will be another with EDC.getRetrieverConfigurations=1 NOT THIS ONE) as the following steps.
005299195

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.