Skip to content

Commit

Permalink
Fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
Amnah199 committed Oct 28, 2024
1 parent c42c1f4 commit 54570e3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
5 changes: 3 additions & 2 deletions integrations/azure_ai_search/example/embedding_retrieval.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@
from haystack_integrations.document_stores.azure_ai_search import AzureAISearchDocumentStore

"""
This example demonstrates how to use the AzureAISearchEmbeddingRetriever to retrieve documents using embeddings based on a query.
To run this example, you'll need an Azure Search service endpoint and API key, which can either be
This example demonstrates how to use the AzureAISearchEmbeddingRetriever to retrieve documents
using embeddings based on a query. To run this example, you'll need an Azure Search service endpoint
and API key, which can either be
set as environment variables (AZURE_SEARCH_SERVICE_ENDPOINT and AZURE_SEARCH_API_KEY) or
provided directly to AzureAISearchDocumentStore(as params "api_key", "azure_endpoint").
Otherwise you can use DefaultAzureCredential to authenticate with Azure services.
Expand Down
1 change: 0 additions & 1 deletion integrations/azure_ai_search/tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ def document_store(request):
an instance of this document store so the base class can use it.
"""
index_name = f"haystack_test_{uuid.uuid4().hex}"
print (index_name)
metadata_fields = getattr(request, "param", {}).get("metadata_fields", None)

azure_endpoint = os.environ["AZURE_SEARCH_SERVICE_ENDPOINT"]
Expand Down

0 comments on commit 54570e3

Please sign in to comment.