From 2be68d1c7fa5114aef6f8bf3ee17bdf1a9b23bd1 Mon Sep 17 00:00:00 2001 From: Huu Le <39040748+leehuwuj@users.noreply.github.com> Date: Tue, 15 Oct 2024 13:40:47 +0700 Subject: [PATCH] ci: activate llamacloud for TS (#372) Co-authored-by: Marcus Schiesser --- .github/workflows/e2e.yml | 2 +- .../components/vectordbs/typescript/llamacloud/generate.ts | 2 +- templates/types/streaming/express/package.json | 2 +- templates/types/streaming/nextjs/package.json | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/e2e.yml b/.github/workflows/e2e.yml index 975e4623b..e74d5a173 100644 --- a/.github/workflows/e2e.yml +++ b/.github/workflows/e2e.yml @@ -86,7 +86,7 @@ jobs: python-version: ["3.11"] os: [macos-latest, windows-latest, ubuntu-22.04] frameworks: ["nextjs", "express"] - datasources: ["--no-files", "--example-file"] + datasources: ["--no-files", "--example-file", "--llamacloud"] defaults: run: shell: bash diff --git a/templates/components/vectordbs/typescript/llamacloud/generate.ts b/templates/components/vectordbs/typescript/llamacloud/generate.ts index 9668f7b1b..c51a9e818 100644 --- a/templates/components/vectordbs/typescript/llamacloud/generate.ts +++ b/templates/components/vectordbs/typescript/llamacloud/generate.ts @@ -26,7 +26,7 @@ async function* walk(dir: string): AsyncGenerator { async function loadAndIndex() { const index = await getDataSource(); // ensure the index is available or create a new one - await index.ensureIndex(); + await index.ensureIndex({ verbose: true }); const projectId = await index.getProjectId(); const pipelineId = await index.getPipelineId(); diff --git a/templates/types/streaming/express/package.json b/templates/types/streaming/express/package.json index be18e8e68..ef5ae0bde 100644 --- a/templates/types/streaming/express/package.json +++ b/templates/types/streaming/express/package.json @@ -21,7 +21,7 @@ "dotenv": "^16.3.1", "duck-duck-scrape": "^2.2.5", "express": "^4.18.2", - "llamaindex": "0.6.21", + "llamaindex": "0.6.22", "pdf2json": "3.0.5", "ajv": "^8.12.0", "@e2b/code-interpreter": "0.0.9-beta.3", diff --git a/templates/types/streaming/nextjs/package.json b/templates/types/streaming/nextjs/package.json index e820d3942..4153d7416 100644 --- a/templates/types/streaming/nextjs/package.json +++ b/templates/types/streaming/nextjs/package.json @@ -27,7 +27,7 @@ "duck-duck-scrape": "^2.2.5", "formdata-node": "^6.0.3", "got": "^14.4.1", - "llamaindex": "0.6.21", + "llamaindex": "0.6.22", "lucide-react": "^0.294.0", "next": "^14.2.4", "react": "^18.2.0",