Skip to content

Commit 8ef0c10

Browse files
try: waiting 1s after creating index
1 parent c040de6 commit 8ef0c10

File tree

1 file changed

+2
-0
lines changed
  • templates/components/vectordbs/typescript/llamacloud

1 file changed

+2
-0
lines changed

templates/components/vectordbs/typescript/llamacloud/generate.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ async function loadAndIndex() {
2727
const index = await getDataSource();
2828
// ensure the index is available or create a new one
2929
await index.ensureIndex();
30+
// Wait 1 second before proceeding - (check if this is necessary)
31+
await new Promise((resolve) => setTimeout(resolve, 1000));
3032
const projectId = await index.getProjectId();
3133
const pipelineId = await index.getPipelineId();
3234

0 commit comments

Comments
 (0)