Skip to content

Commit

Permalink
Fixed query inside highlights
Browse files Browse the repository at this point in the history
  • Loading branch information
Akhilathina committed Jan 31, 2025
1 parent 756b562 commit 3547223
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion athina/steps/search.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,10 @@ def execute(self, input_data: Any) -> Union[Dict[str, Any], None]:
"excludeText": self.excludeText,
"includeText": self.includeText,
"contents": {
"highlights": self.highlights,
"highlights": {
"query": self.query,
**(self.highlights or {}) # Merging self.highlights if it exists, otherwise an empty dict
},
"summary": {"query": self.query},
},
"startPublishedDate": self.startPublishedDate,
Expand Down

0 comments on commit 3547223

Please sign in to comment.