feat(backend): improve parent-child chunk merge and imageinfo matching

Scope image info to matched text children during parent resolution and
add range/URL filtering utilities with unit tests.
This commit is contained in:
wizardchen
2026-06-16 00:49:16 +08:00
committed by lyingbug
parent 8dbc20b9b3
commit 2906c6656e
7 changed files with 457 additions and 128 deletions
+3
View File
@@ -102,6 +102,9 @@ func buildStreamResponse(evt interfaces.StreamEvent, requestID string) *types.St
// Special handling for references event
if evt.Type == types.ResponseTypeReferences {
refsData := evt.Data["references"]
if refsData == nil {
return response
}
if refs, ok := refsData.(types.References); ok {
response.KnowledgeReferences = refs
} else if refs, ok := refsData.([]*types.SearchResult); ok {