Skip to content

Commit 73cf730

Browse files
committed
add timeout and retry for vectorstore
1 parent 12cc7f4 commit 73cf730

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

supporting-blog-content/agentic-rag/agent_rag_news_assistant.ipynb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -281,6 +281,7 @@
281281
" docs,\n",
282282
" es_url=ES_ENDPOINT,\n",
283283
" es_api_key=ES_API_KEY,\n",
284+
" es_params={\"request_timeout\": 60, \"max_retries\": 3, \"retry_on_timeout\": True},\n",
284285
" index_name=index_name,\n",
285286
" strategy=SparseVectorStrategy(model_id=\".elser_model_2\"),\n",
286287
")\n",

0 commit comments

Comments
 (0)