Skip to content

Commit

Permalink
fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
ttmenezes committed Nov 11, 2024
1 parent 914d27f commit ee41bf0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ def run(
query: str,
query_embedding: List[float],
filters: Optional[Dict[str, Any]] = None,
top_k: Optional[int] = None
top_k: Optional[int] = None,
):
"""Retrieve documents from the AzureAISearchDocumentStore.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -490,8 +490,10 @@ def _hybrid_retrieval(
result = self.client.search(
search_text=query,
vector_queries=[vector_query],
select=fields, filter=filters,
top=top_k, query_type="simple"
select=fields,
filter=filters,
top=top_k,
query_type="simple",
)
azure_docs = list(result)
return self._convert_search_result_to_documents(azure_docs)

0 comments on commit ee41bf0

Please sign in to comment.