Skip to content

Commit 74115e8

Browse files
committed
update breaking changes
1 parent ba8a17d commit 74115e8

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Python/CosmosDB-NoSQL_SemanticSearchDemo/src/app/cosmos-app.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -300,9 +300,9 @@ def rerank_results_with_cosmos_sdk(container, query, results_df, use_reranker=Fa
300300
# Call the Cosmos SDK semantic_rerank method
301301
try:
302302
reranked_data = container.semantic_rerank(
303-
reranking_context=query,
303+
context=query,
304304
documents=documents,
305-
semantic_reranking_options={
305+
options={
306306
"return_documents": True,
307307
"top_k": len(documents), # Return all documents reranked
308308
"batch_size": 32,

Python/CosmosDB-NoSQL_SemanticSearchDemo/src/app/requirements.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
# Use local wheel file for azure-cosmos with semantic reranker support
2-
./azure_cosmos-4.14.0a20251001002-py3-none-any.whl
1+
# Requirements for the application
2+
azure-cosmos==4.14.0
33
azure-identity~=1.19.0
44
streamlit~=1.39.0
55
sshtunnel

0 commit comments

Comments
 (0)