Replies: 2 comments 16 replies
-
|
Manually added chunks can't be highlighted in the original text when cited because they lack the positional metadata (the positions field) that maps them to specific locations in the source document. Only chunks created by the built-in/pipeline parser include this metadata, which is what enables the highlight feature in the chat UI. Without these coordinates, the system can't visually highlight the cited region in the original file—manual chunks can be cited, but not highlighted in context (source). If you modify a pre-defined (pipeline) chunk, the ability to highlight depends on whether the positional metadata is preserved and still matches the new content. The current API for modifying chunks updates the content and tokenization but does not update or guarantee the accuracy of the positions field. If the positions metadata is missing or no longer matches the chunk's content, highlighting will not work or may be inaccurate (source). To enable highlighting for manually added or modified chunks, the backend would need to let users (or the system) supply or update the positions metadata for those chunks, and the frontend would need to consume this metadata as it does for pipeline chunks. There is community interest in supporting user-maintained metadata for custom chunks, but this isn't implemented yet (source). To reply, just mention @dosu. How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other |
Beta Was this translation helpful? Give feedback.
-
|
Yeah dosu is correct,
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
There's a problem with the "show citation" feature in chat: For files parsed and chunked using a pre-defined chunking method (built-in/pipeline) set in the dataset, when displaying citations in chat answers, clicking on a file within the citation highlights the cited portion in yellow. However, manually added chunks can only be cited and not highlighted in the original text. Therefore, the following questions arise:
Beta Was this translation helpful? Give feedback.
All reactions