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
@@ -304,5 +304,5 @@ func getEnrichedPassageForChat(ctx context.Context, result *types.SearchResult)
// enrichContentWithImageInfo delegates to the shared searchutil implementation.
func enrichContentWithImageInfo(_ context.Context, content string, imageInfoJSON string) string {
return searchutil.EnrichContentWithImageInfo(content, imageInfoJSON)
return searchutil.EnrichContentWithImageInfoForChat(content, imageInfoJSON)
}