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:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user