Loading

Query Template format changed in the Retrievers

Udgivelsesdato: Jan 22, 2026
Beskrivelse

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}

Løsning

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.

  1. Open to the Retriever detail page.
  2. Open the browser's Developer Tools.
  3. Click Network tab in the diagnostic window and Click Clear Network Log.
  4. Reload the Retriever detail page.
  5. Check the request name with EDC.getRetrieverConfiguration=1 .
  6. Click the Response of the request.
  7. Check the placeholderValue.
Vidensartikelnummer

005299195

 
Indlæser
Salesforce Help | Article