We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c8af42b commit b3441a0Copy full SHA for b3441a0
example-apps/chatbot-rag-app/data/index_data.py
@@ -139,6 +139,7 @@ def main():
139
if isinstance(e, ApiError) and e.status_code != 408:
140
raise
141
warn(f"Error occurred, will retry after ML jobs complete: {e}")
142
+ time.sleep(2) # Checking too fast could return no tasks and fail again
143
await_ml_tasks()
144
es.indices.delete(index=INDEX, ignore_unavailable=True)
145
store.add_documents(list(docs))
0 commit comments