ai-cfia / azure-db

Operations related to semantic search on our Azure document index.
MIT License
0 stars 1 forks source link

Handle Dynamic Highlight Fields Transformation in azure-db #9

Open k-allagbe opened 9 months ago

k-allagbe commented 9 months ago

The current implementation of transform_result in our Azure Cognitive Search integration is hardcoded to search for "content" in @search.highlights. This approach is not flexible and fails to handle cases where highlight_fields is set to other fields or is None. We need to refactor this function to dynamically handle different highlight_fields and gracefully handle situations where highlight_fields is None (i.e., highlighting is not used).

Tasks

Acceptance Criteria