import chatbees as cb
# Configure API key
cb.init(api_key="my_api_key", account_id="my_account_id")
col = cb.collection('llm_research')
# check the ingestion status
max_waits = 100
waits = 0
while waits < max_waits:
status = col.get_ingestion(ingestion_id)
if status != cb.IngestionStatus.RUNNING:
break
time.sleep(5)