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.
2 parents 33b8714 + 9ac0cd6 commit 6e7de6fCopy full SHA for 6e7de6f
examples/amazon_s3_embedding/main.py
@@ -101,7 +101,16 @@ def _main() -> None:
101
pool = ConnectionPool(os.getenv("COCOINDEX_DATABASE_URL"))
102
103
amazon_s3_text_embedding_flow.setup()
104
- with cocoindex.FlowLiveUpdater(amazon_s3_text_embedding_flow):
+ with cocoindex.FlowLiveUpdater(amazon_s3_text_embedding_flow) as updater:
105
+ updater.abort()
106
+ updater.wait()
107
+
108
+ while True:
109
+ updates = updater.next_status_updates()
110
+ print(f"Updates: {updates}")
111
+ if not updates.active_sources:
112
+ break
113
114
# Run queries in a loop to demonstrate the query capabilities.
115
while True:
116
query = input("Enter search query (or Enter to quit): ")
0 commit comments