From d2cd1fa6e6d29fc51b4fc75b4e4889e2997ca018 Mon Sep 17 00:00:00 2001 From: thucpn Date: Thu, 17 Apr 2025 10:43:24 +0700 Subject: [PATCH 1/7] chore: bump llmaindex --- templates/types/llamaindexserver/nextjs/package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/types/llamaindexserver/nextjs/package.json b/templates/types/llamaindexserver/nextjs/package.json index d3b18dbe3..c3492ec44 100644 --- a/templates/types/llamaindexserver/nextjs/package.json +++ b/templates/types/llamaindexserver/nextjs/package.json @@ -9,10 +9,10 @@ "dependencies": { "@llamaindex/openai": "0.2.0", "@llamaindex/readers": "^2.0.0", - "@llamaindex/server": "0.1.3", + "@llamaindex/server": "0.1.4", "@llamaindex/tools": "0.0.4", "dotenv": "^16.4.7", - "llamaindex": "0.9.17", + "llamaindex": "0.10.1", "zod": "^3.23.8" }, "devDependencies": { From ab1ce10cf6ccda58d50d97cf25bfd71697eb115e Mon Sep 17 00:00:00 2001 From: thucpn Date: Thu, 17 Apr 2025 12:01:03 +0700 Subject: [PATCH 2/7] skip testing deep research frontend --- e2e/shared/llamaindexserver_template.spec.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/e2e/shared/llamaindexserver_template.spec.ts b/e2e/shared/llamaindexserver_template.spec.ts index 119600724..f28fea7a8 100644 --- a/e2e/shared/llamaindexserver_template.spec.ts +++ b/e2e/shared/llamaindexserver_template.spec.ts @@ -62,7 +62,9 @@ for (const useCase of templateUseCases) { test("Frontend should have a title", async ({ page }) => { test.skip( templatePostInstallAction !== "runApp" || - templateFramework === "express", + templateFramework === "express" || + // nextjs deep research use case requires more time to compile frontend and custom components that can cause timeout for testing + (templateFramework === "nextjs" && useCase === "deep_research"), ); await page.goto(`http://localhost:${port}`); await expect(page.getByText("Built by LlamaIndex")).toBeVisible(); From 260a765a9e640860810746bcca3469bbd219838d Mon Sep 17 00:00:00 2001 From: thucpn Date: Thu, 17 Apr 2025 12:18:25 +0700 Subject: [PATCH 3/7] increase timeout for nextjs --- e2e/shared/llamaindexserver_template.spec.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/e2e/shared/llamaindexserver_template.spec.ts b/e2e/shared/llamaindexserver_template.spec.ts index f28fea7a8..b8aaee8c3 100644 --- a/e2e/shared/llamaindexserver_template.spec.ts +++ b/e2e/shared/llamaindexserver_template.spec.ts @@ -60,11 +60,10 @@ for (const useCase of templateUseCases) { }); test("Frontend should have a title", async ({ page }) => { + test.setTimeout(20 * 60 * 1000); test.skip( templatePostInstallAction !== "runApp" || - templateFramework === "express" || - // nextjs deep research use case requires more time to compile frontend and custom components that can cause timeout for testing - (templateFramework === "nextjs" && useCase === "deep_research"), + templateFramework === "express", ); await page.goto(`http://localhost:${port}`); await expect(page.getByText("Built by LlamaIndex")).toBeVisible(); From bbda091db8a4311f200057271e4c31beceaeed25 Mon Sep 17 00:00:00 2001 From: thucpn Date: Thu, 17 Apr 2025 12:32:58 +0700 Subject: [PATCH 4/7] Skip frontend test for financial report and deep research --- e2e/shared/llamaindexserver_template.spec.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/e2e/shared/llamaindexserver_template.spec.ts b/e2e/shared/llamaindexserver_template.spec.ts index b8aaee8c3..c584c1cdf 100644 --- a/e2e/shared/llamaindexserver_template.spec.ts +++ b/e2e/shared/llamaindexserver_template.spec.ts @@ -60,10 +60,12 @@ for (const useCase of templateUseCases) { }); test("Frontend should have a title", async ({ page }) => { - test.setTimeout(20 * 60 * 1000); test.skip( templatePostInstallAction !== "runApp" || - templateFramework === "express", + templateFramework === "express" || + useCase === "financial_report" || + useCase === "deep_research", + "Skip frontend test for financial report and deep research.", ); await page.goto(`http://localhost:${port}`); await expect(page.getByText("Built by LlamaIndex")).toBeVisible(); From 436976fdb7f5a49bcd3aeef61780907d51f631d9 Mon Sep 17 00:00:00 2001 From: thucpn Date: Thu, 17 Apr 2025 12:46:13 +0700 Subject: [PATCH 5/7] increase visible timeout --- e2e/shared/llamaindexserver_template.spec.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/e2e/shared/llamaindexserver_template.spec.ts b/e2e/shared/llamaindexserver_template.spec.ts index c584c1cdf..cfe5fe251 100644 --- a/e2e/shared/llamaindexserver_template.spec.ts +++ b/e2e/shared/llamaindexserver_template.spec.ts @@ -68,7 +68,9 @@ for (const useCase of templateUseCases) { "Skip frontend test for financial report and deep research.", ); await page.goto(`http://localhost:${port}`); - await expect(page.getByText("Built by LlamaIndex")).toBeVisible(); + await expect(page.getByText("Built by LlamaIndex")).toBeVisible({ + timeout: 5 * 60 * 1000, + }); }); test("Frontend should be able to submit a message and receive the start of a streamed response", async ({ From caaeabde5cda955f9bb63d74d2e8e5d5fb49a3dc Mon Sep 17 00:00:00 2001 From: thucpn Date: Thu, 17 Apr 2025 13:10:52 +0700 Subject: [PATCH 6/7] no skip --- e2e/shared/llamaindexserver_template.spec.ts | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/e2e/shared/llamaindexserver_template.spec.ts b/e2e/shared/llamaindexserver_template.spec.ts index cfe5fe251..35e1e4ec3 100644 --- a/e2e/shared/llamaindexserver_template.spec.ts +++ b/e2e/shared/llamaindexserver_template.spec.ts @@ -62,10 +62,7 @@ for (const useCase of templateUseCases) { test("Frontend should have a title", async ({ page }) => { test.skip( templatePostInstallAction !== "runApp" || - templateFramework === "express" || - useCase === "financial_report" || - useCase === "deep_research", - "Skip frontend test for financial report and deep research.", + templateFramework === "express", ); await page.goto(`http://localhost:${port}`); await expect(page.getByText("Built by LlamaIndex")).toBeVisible({ From 96f0dc561fd84aea8ccd1f7da9f3ac5e1120d3d3 Mon Sep 17 00:00:00 2001 From: Thuc Pham <51660321+thucpn@users.noreply.github.com> Date: Thu, 17 Apr 2025 13:25:49 +0700 Subject: [PATCH 7/7] Create odd-dogs-buy.md --- .changeset/odd-dogs-buy.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/odd-dogs-buy.md diff --git a/.changeset/odd-dogs-buy.md b/.changeset/odd-dogs-buy.md new file mode 100644 index 000000000..54d7fee33 --- /dev/null +++ b/.changeset/odd-dogs-buy.md @@ -0,0 +1,5 @@ +--- +"create-llama": patch +--- + +chore: bump llmaindex