This issue has been created
 
 
LLM AI Integration / cid:jira-generated-image-avatar-3081a409-dbff-4601-a9c2-8741a4dd8046 LLMAI-226 Open

query_documents should say when a result matched in an attachment and name the file

 
View issue   ยท   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-b739d4e4-a0ad-4549-a19e-bb7cc1c32600 Paul Pantiru created this issue on 04/Nov/26 11:35
 
Summary: query_documents should say when a result matched in an attachment and name the file
Issue Type: cid:jira-generated-image-avatar-3081a409-dbff-4601-a9c2-8741a4dd8046 Improvement
Affects Versions: 1.0.0
Assignee: Unassigned
Created: 04/Nov/26 11:35
Priority: cid:jira-generated-image-static-major-0db408c9-7d18-47b7-8b14-3357e3ef5201 Major
Reporter: Paul Pantiru
Description:

Highlighting in query_documents only runs on the rendered content fields. When a hit comes from attachment text or an object property the result shows no snippet, so the agent cannot tell why the page matched and has to open the page, read the Attachments header line and guess which file to fetch with get_attachment.

Extend highlighting to attcontent, filename and objcontent, and render the snippet with its origin, for example "Matched in attachment report.pdf: ...". When the match is in attachment text, include the attachment reference the agent can pass straight to get_attachment.

Acceptance:

  • A result matched only through attachment text shows a snippet from that text and the file name.
  • A result matched only through an object property shows a snippet from that property.
  • Content matches keep today's snippet format.
  • Attachment references in the output follow the same escaping rules as the Attachments line of get_document.

Depends on the query fields being extended first (see the linked issue).