Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add filter for query in ts templates #172

Merged
merged 17 commits into from
Jul 22, 2024

Conversation

thucpn
Copy link
Collaborator

@thucpn thucpn commented Jul 18, 2024

SimpleVectorStore:

  • generate -> private = false (public docs) -> store in data/
  • /chat/upload -> private = true (private docs) -> store in output/uploaded/

LlamaCloudIndex:

  • upload directly in LlamaCloud -> pipeline_id != null & private = undefined (public docs) -> store in data/llamacloud/
  • generate -> private = false (public docs) -> store in data/
  • /chat/upload -> private = true (private docs) -> store in output/uploaded/

Summary by CodeRabbit

  • New Features

    • Introduced a filtering mechanism for queries in TypeScript templates, enhancing data handling and usability.
    • Added a unique doc_id property to document metadata for better tracking.
    • Implemented a dynamic filter generation process in the chat engine for tailored queries.
    • Structured the Next.js configuration to utilize enhanced integration with LlamaIndex.
    • Enhanced filtering logic in the FastAPI chat router to accommodate multiple values.
  • Bug Fixes

    • Updated document ID retrieval mechanism to accommodate new data structure expectations.
  • Chores

    • Enhanced configuration file management for Next.js applications.
    • Removed the file_metadata_func, indicating a shift in file metadata handling.

Copy link

changeset-bot bot commented Jul 18, 2024

🦋 Changeset detected

Latest commit: 60c7479

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
create-llama Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link

coderabbitai bot commented Jul 18, 2024

Walkthrough

The recent updates significantly enhance TypeScript templates and FastAPI functionalities by introducing a robust filtering mechanism for queries, improving the chat engine with the new generateFilters function. This function refines query processing based on documentIds, boosting data handling efficiency. Additionally, structural improvements to metadata and configuration files streamline management and integration with the updated llamaindex library, ultimately enhancing overall application performance and flexibility.

Changes

Files Summary
.../chat.ts, .../pipeline.ts, .../annotations.ts, .../events.ts
.../service.ts
.../next.config.mjs, .../next.config.json
.../fastapi/app/api/routers/chat.py
.../fastapi/app/api/services/file.py

Sequence Diagram(s)

sequenceDiagram
    participant User
    participant Chat Engine
    participant Query Engine
    participant GenerateFilters
    participant Metadata

    User->>Chat Engine: Initiate Query
    Chat Engine->>Query Engine: Process Query with documentIds
    Query Engine->>GenerateFilters: Call generateFilters(documentIds)
    GenerateFilters->>Metadata: Construct MetadataFilters
    Metadata-->>Query Engine: Return Filters
    Query Engine-->>Chat Engine: Return Filtered Results
    Chat Engine-->>User: Display Results
Loading

🐇 In the code, I hop and play,
Filters dance in a merry way.
With metadata shining bright,
Queries now take flight!
Upgraded versions, oh what a treat,
Let’s hop along with joyful feet!


Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?

Share
Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai generate interesting stats about this repository and render them as a table.
    • @coderabbitai show all the console.log statements in this repository.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (invoked as PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Additionally, you can add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Base automatically changed from feat/able-to-display-file-url-from-llamacloud to main July 18, 2024 15:46
@thucpn thucpn force-pushed the feat/add-filter-for-query-in-ts-template branch from 769717e to 1f9fd98 Compare July 19, 2024 02:34
@thucpn thucpn marked this pull request as ready for review July 19, 2024 05:39
Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 0

Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

Commits

Files that changed from the base of the PR and between 455ab68 and 059bc1a.

Files selected for processing (8)
  • .changeset/curvy-penguins-work.md (1 hunks)
  • templates/components/engines/typescript/agent/chat.ts (3 hunks)
  • templates/components/llamaindex/typescript/documents/pipeline.ts (1 hunks)
  • templates/components/llamaindex/typescript/streaming/annotations.ts (1 hunks)
  • templates/components/llamaindex/typescript/streaming/events.ts (3 hunks)
  • templates/types/streaming/express/package.json (1 hunks)
  • templates/types/streaming/nextjs/next.config.mjs (1 hunks)
  • templates/types/streaming/nextjs/package.json (1 hunks)
Additional comments not posted (12)
.changeset/curvy-penguins-work.md (1)

1-5: Changeset description looks good.

The changeset description is concise and clearly indicates the nature of the changes.

templates/types/streaming/nextjs/next.config.mjs (2)

9-9: Address previous comment about webpack.config.mjs.

Ensure that the webpack.config.mjs file works correctly with the new integration.

Verification successful

The webpack.config.mjs file is present and properly configured.

The file includes necessary configurations to handle issues with onnxruntime-node and sharp modules, ensuring compatibility with the new integration.

  • File: templates/types/streaming/nextjs/webpack.config.mjs
Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Description: Verify the `webpack.config.mjs` file works correctly.

# Test: Search for the `webpack.config.mjs` file. Expect: Proper configuration.
rg --type js -A 5 $'webpack.config.mjs'

Length of output: 38


Script:

#!/bin/bash
# Description: Verify the presence and configuration of `webpack.config.mjs`.

# Step 1: Check if the `webpack.config.mjs` file exists.
fd 'webpack.config.mjs'

# Step 2: If the file exists, display its contents.
if fd 'webpack.config.mjs'; then
  cat $(fd 'webpack.config.mjs')
fi

Length of output: 782


3-9: Ensure withLlamaIndex is correctly integrated.

The integration with withLlamaIndex appears correct, but ensure that any additional configuration required by withLlamaIndex is properly handled.

templates/types/streaming/express/package.json (1)

23-23: Ensure compatibility with llamaindex version 0.5.6.

The version update appears appropriate, but ensure that all functionalities depending on llamaindex are compatible with version 0.5.6.

templates/types/streaming/nextjs/package.json (1)

27-27: Ensure compatibility with llamaindex version 0.5.6.

The version update appears appropriate, but ensure that all functionalities depending on llamaindex are compatible with version 0.5.6.

templates/components/engines/typescript/agent/chat.ts (2)

22-22: Verify the integration of generateFilters.

The integration of the generateFilters function looks good. Ensure that all function calls to generateFilters are correct and that the function behaves as expected.

Verification successful

Verify the integration of generateFilters.

The integration of the generateFilters function is correct. The function is used with the expected signature, and its definition matches the usage.

  • templates/components/engines/typescript/agent/chat.ts
Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Description: Verify all function calls to `generateFilters` match the new signature.

# Test: Search for the function usage. Expect: Only occurances of the new signature.
rg --type typescript -A 5 $'generateFilters'

Length of output: 78


Script:

#!/bin/bash
# Description: Verify all function calls to `generateFilters` match the new signature.

# Test: Search for the function usage. Expect: Only occurrences of the new signature.
rg 'generateFilters' -A 5

Length of output: 1066


50-77: LGTM! Ensure correctness of the filter generation logic.

The function generateFilters correctly generates filters based on the presence of documentIds. The logic is sound and follows best practices.

However, ensure that the generated filters are correctly applied and tested in the codebase.

templates/components/llamaindex/typescript/documents/pipeline.ts (1)

21-21: Verify the addition of doc_id to metadata.

The addition of the doc_id property to the metadata object is correct. Ensure that this change does not negatively impact the metadata structure and is correctly utilized in the codebase.

Verification successful

The addition of doc_id to metadata is correctly utilized.

The doc_id property is used in various parts of the codebase, indicating that its addition to the metadata structure is appropriate and correctly integrated.

  • templates/components/llamaindex/typescript/documents/pipeline.ts
  • templates/types/streaming/fastapi/app/api/services/file.py
  • templates/types/streaming/fastapi/app/api/routers/chat.py
  • templates/components/engines/typescript/agent/chat.ts
Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Description: Verify the addition of `doc_id` to metadata.

# Test: Search for the usage of the `doc_id` property. Expect: Correct utilization in the codebase.
rg --type typescript -A 5 $'doc_id'

Length of output: 69


Script:

#!/bin/bash
# Description: Verify the addition of `doc_id` to metadata.

# Test: Search for the usage of the `doc_id` property. Expect: Correct utilization in the codebase.
rg -A 5 $'doc_id'

Length of output: 3089

templates/components/llamaindex/typescript/streaming/annotations.ts (1)

38-40: Verify the alteration in accessing content property.

The change to check if file.content.value is an array instead of directly checking file.content is correct. Ensure that this alteration does not negatively impact the data structure and is correctly utilized in the codebase.

Verification successful

The alteration in accessing the content property is correctly utilized.

The change to check if file.content.value is an array instead of directly checking file.content is correctly implemented and consistent across the codebase.

  • templates/components/llamaindex/typescript/streaming/annotations.ts
  • templates/types/streaming/nextjs/app/components/ui/document-preview.tsx
  • templates/types/streaming/fastapi/app/api/routers/models.py
Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Description: Verify the alteration in accessing the `content` property.

# Test: Search for the usage of the `content` property. Expect: Correct utilization in the codebase.
rg --type typescript -A 5 $'content.value'

Length of output: 76


Script:

#!/bin/bash
# Description: Verify the alteration in accessing the `content` property.

# Test: Search for the usage of the `content.value` property. Expect: Correct utilization in the codebase.
rg -A 5 'content.value'

Length of output: 3927

templates/components/llamaindex/typescript/streaming/events.ts (3)

90-90: Ensure correct usage of event.detail.toolCall.

The change to directly access event.detail.toolCall is correct. Ensure that this change does not negatively impact the data structure and is correctly utilized in the codebase.

Verification successful

The usage of event.detail.toolCall is correctly implemented.

The change to directly access event.detail.toolCall is consistent with its usage throughout the codebase and does not negatively impact the data structure.

  • templates/components/llamaindex/typescript/streaming/events.ts
Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Description: Verify the usage of `event.detail.toolCall`.

# Test: Search for the usage of `toolCall` property. Expect: Correct utilization in the codebase.
rg --type typescript -A 5 $'toolCall'

Length of output: 71


Script:

#!/bin/bash
# Description: Verify the usage of `event.detail.toolCall`.

# Test: Search for the usage of `toolCall` property. Expect: Correct utilization in the codebase.
rg --glob '*.ts' -A 5 'toolCall'

Length of output: 2961


80-80: Verify the simplification of property access.

The simplification of property access to directly use data.detail and event.detail is correct. Ensure that this change does not negatively impact the data structure and is correctly utilized in the codebase.

Verification successful

Verification successful: The simplification of property access is correct and does not negatively impact the data structure.

The changes to directly access data.detail and event.detail are correctly utilized in the codebase.

  • templates/components/llamaindex/typescript/streaming/events.ts: Lines 80, 85, 90
Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Description: Verify the simplification of property access.

# Test: Search for the usage of the `detail` property. Expect: Correct utilization in the codebase.
rg --type typescript -A 5 $'detail'

Length of output: 69


Script:

#!/bin/bash
# Description: Verify the simplification of property access.

# Test: Search for the usage of the `detail` property. Expect: Correct utilization in the codebase.
rg --type ts -A 5 $'detail'

Length of output: 5499


101-101: Ensure correct usage of event.detail.toolResult.

The change to directly access event.detail.toolResult is correct. Ensure that this change does not negatively impact the data structure and is correctly utilized in the codebase.

Verification successful

Ensure correct usage of event.detail.toolResult.

The change to directly access event.detail.toolResult is correct. The toolResult property is passed to the appendToolData function, which correctly utilizes it. There is no negative impact on the data structure.

  • templates/components/llamaindex/typescript/streaming/events.ts
Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Description: Verify the usage of `event.detail.toolResult`.

# Test: Search for the usage of `toolResult` property. Expect: Correct utilization in the codebase.
rg --type typescript -A 5 $'toolResult'

Length of output: 73


Script:

#!/bin/bash
# Description: Verify the usage of `event.detail.toolResult`.

# Test: Search for the usage of `toolResult` property. Expect: Correct utilization in the codebase.
rg --type ts -A 5 $'toolResult'

Length of output: 608


Script:

#!/bin/bash
# Description: Find the implementation of the `appendToolData` function.

# Test: Search for the `appendToolData` function definition.
rg --type ts $'function appendToolData'

Length of output: 135


Script:

#!/bin/bash
# Description: Retrieve the implementation of the `appendToolData` function.

# Test: Extract the `appendToolData` function implementation from the `events.ts` file.
rg --type ts -A 20 $'export function appendToolData' templates/components/llamaindex/typescript/streaming/events.ts

Length of output: 513

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 0

Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

Commits

Files that changed from the base of the PR and between 059bc1a and 4e24075.

Files selected for processing (2)
  • helpers/typescript.ts (2 hunks)
  • templates/types/streaming/nextjs/next.config.simple.mjs (1 hunks)
Additional comments not posted (11)
templates/types/streaming/nextjs/next.config.simple.mjs (8)

1-1: LGTM!

The JSDoc comment specifying the type of the Next.js configuration is correct.


2-2: LGTM!

The import statement for the fs module is correct.


3-3: LGTM!

The import statement for the webpack configuration is correct.


4-4: LGTM!

The empty line improves readability.


5-5: LGTM!

Reading and parsing the next.config.json file is necessary for modifying the configuration.


6-6: LGTM!

Assigning the imported webpack configuration to the webpack property is correct.


7-7: LGTM!

The empty line improves readability.


8-8: LGTM!

Exporting the modified Next.js configuration as the default export is correct.

helpers/typescript.ts (3)

58-58: LGTM!

The empty line improves readability.


59-63: LGTM!

The code correctly copies next.config.simple.mjs to next.config.mjs if a backend is present.


73-73: LGTM!

Removing the next.config.simple.mjs file after copying it ensures proper cleanup.

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 2

Outside diff range, codebase verification and nitpick comments (1)
templates/components/llamaindex/typescript/streaming/service.ts (1)

Line range hint 50-80:
Replace this with the class name in static context.

Using this in a static context can be confusing. Replace it with the class name LLamaCloudFileService for clarity.

-      const downloadedName = this.toDownloadedName(pipelineId, fileName);
+      const downloadedName = LLamaCloudFileService.toDownloadedName(pipelineId, fileName);
-      const downloadedPath = path.join(LLAMA_CLOUD_OUTPUT_DIR, downloadedName);
+      const downloadedPath = path.join(LLAMA_CLOUD_OUTPUT_DIR, downloadedName);
-      if (fs.existsSync(downloadedPath)) return;
+      if (fs.existsSync(downloadedPath)) return;
-      const urlToDownload = await this.getFileUrlByName(pipelineId, fileName);
+      const urlToDownload = await LLamaCloudFileService.getFileUrlByName(pipelineId, fileName);
-      if (!urlToDownload) throw new Error("File not found in LlamaCloud");
+      if (!urlToDownload) throw new Error("File not found in LlamaCloud");
-      const file = fs.createWriteStream(downloadedPath);
+      const file = fs.createWriteStream(downloadedPath);
-      https
+      https
-        .get(urlToDownload, (response) => {
+        .get(urlToDownload, (response) => {
-          response.pipe(file);
+          response.pipe(file);
-          file.on("finish", () => {
+          file.on("finish", () => {
-            file.close(() => {
+            file.close(() => {
-              console.log("File downloaded successfully");
+              console.log("File downloaded successfully");
-            });
+            });
-          });
+          });
-        })
+        })
-        .on("error", (err) => {
+        .on("error", (err) => {
-          fs.unlink(downloadedPath, () => {
+          fs.unlink(downloadedPath, () => {
-            console.error("Error downloading file:", err);
+            console.error("Error downloading file:", err);
-            throw err;
+            throw err;
-          });
+          });
-        });
+        });
-    } catch (error) {
+    } catch (error) {
-      throw new Error(`Error downloading file from LlamaCloud: ${error}`);
+      throw new Error(`Error downloading file from LlamaCloud: ${error}`);
Tools
Biome

[error] 19-19: Using this in a static context can be confusing.

this refers to the class.
Unsafe fix: Use the class name instead.

(lint/complexity/noThisInStatic)


[error] 21-21: Using this in a static context can be confusing.

this refers to the class.
Unsafe fix: Use the class name instead.

(lint/complexity/noThisInStatic)


[error] 52-52: Using this in a static context can be confusing.

this refers to the class.
Unsafe fix: Use the class name instead.

(lint/complexity/noThisInStatic)


[error] 58-58: Using this in a static context can be confusing.

this refers to the class.
Unsafe fix: Use the class name instead.

(lint/complexity/noThisInStatic)

Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

Commits

Files that changed from the base of the PR and between 4e24075 and ae3be5d.

Files selected for processing (2)
  • templates/components/llamaindex/typescript/streaming/events.ts (3 hunks)
  • templates/components/llamaindex/typescript/streaming/service.ts (2 hunks)
Files skipped from review as they are similar to previous changes (1)
  • templates/components/llamaindex/typescript/streaming/events.ts
Additional context used
Biome
templates/components/llamaindex/typescript/streaming/service.ts

[error] 19-19: Using this in a static context can be confusing.

this refers to the class.
Unsafe fix: Use the class name instead.

(lint/complexity/noThisInStatic)


[error] 21-21: Using this in a static context can be confusing.

this refers to the class.
Unsafe fix: Use the class name instead.

(lint/complexity/noThisInStatic)


[error] 52-52: Using this in a static context can be confusing.

this refers to the class.
Unsafe fix: Use the class name instead.

(lint/complexity/noThisInStatic)


[error] 58-58: Using this in a static context can be confusing.

this refers to the class.
Unsafe fix: Use the class name instead.

(lint/complexity/noThisInStatic)


[error] 86-86: Using this in a static context can be confusing.

this refers to the class.
Unsafe fix: Use the class name instead.

(lint/complexity/noThisInStatic)


[error] 89-89: Using this in a static context can be confusing.

this refers to the class.
Unsafe fix: Use the class name instead.

(lint/complexity/noThisInStatic)

Additional comments not posted (3)
templates/components/llamaindex/typescript/streaming/service.ts (3)

92-104: Replace this with the class name in static context.

Using this in a static context can be confusing. Replace it with the class name LLamaCloudFileService for clarity.

-    const url = `${LLAMA_CLOUD_BASE_URL}/files/${fileId}/content?project_id=${projectId}`;
+    const url = `${LLAMA_CLOUD_BASE_URL}/files/${fileId}/content?project_id=${projectId}`;
-    const headers = {
+    const headers = {
-      Accept: "application/json",
+      Accept: "application/json",
-      Authorization: `Bearer ${process.env.LLAMA_CLOUD_API_KEY}`,
+      Authorization: `Bearer ${process.env.LLAMA_CLOUD_API_KEY}`,
-    };
+    };
-    const response = await fetch(url, { method: "GET", headers });
+    const response = await fetch(url, { method: "GET", headers });
-    const data = (await response.json()) as { url: string };
+    const data = (await response.json()) as { url: string };
-    return data.url;
+    return data.url;

Likely invalid or redundant comment.


29-47: Replace this with the class name in static context.

Using this in a static context can be confusing. Replace it with the class name LLamaCloudFileService for clarity.

-    const downloadFiles: Array<{
+    const downloadFiles: Array<{
-      pipelineId: string;
+      pipelineId: string;
-      fileName: string;
+      fileName: string;
-    }> = [];
+    }> = [];
-    for (const node of nodes) {
+    for (const node of nodes) {
-      const isLocalFile = node.node.metadata["is_local_file"] === "true";
+      const isLocalFile = node.node.metadata["is_local_file"] === "true";
-      if (isLocalFile) continue;
+      if (isLocalFile) continue;
-      const pipelineId = node.node.metadata["pipeline_id"];
+      const pipelineId = node.node.metadata["pipeline_id"];
-      const fileName = node.node.metadata["file_name"];
+      const fileName = node.node.metadata["file_name"];
-      if (!pipelineId || !fileName) continue;
+      if (!pipelineId || !fileName) continue;
-      const isDuplicate = downloadFiles.some(
+      const isDuplicate = downloadFiles.some(
-        (f) => f.pipelineId === pipelineId && f.fileName === fileName,
+        (f) => f.pipelineId === pipelineId && f.fileName === fileName,
-      );
+      );
-      if (!isDuplicate) {
+      if (!isDuplicate) {
-        downloadFiles.push({ pipelineId, fileName });
+        downloadFiles.push({ pipelineId, fileName });
-      }
+      }
-    }
+    }
-    return downloadFiles;
+    return downloadFiles;

Likely invalid or redundant comment.


106-117: Replace this with the class name in static context.

Using this in a static context can be confusing. Replace it with the class name LLamaCloudFileService for clarity.

-    const url = `${LLAMA_CLOUD_BASE_URL}/pipelines/${pipelineId}/files`;
+    const url = `${LLAMA_CLOUD_BASE_URL}/pipelines/${pipelineId}/files`;
-    const headers = {
+    const headers = {
-      Accept: "application/json",
+      Accept: "application/json",
-      Authorization: `Bearer ${process.env.LLAMA_CLOUD_API_KEY}`,
+      Authorization: `Bearer ${process.env.LLAMA_CLOUD_API_KEY}`,
-    };
+    };
-    const response = await fetch(url, { method: "GET", headers });
+    const response = await fetch(url, { method: "GET", headers });
-    const data = await response.json();
+    const data = await response.json();
-    return data;
+    return data;

Likely invalid or redundant comment.

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 0

Outside diff range, codebase verification and nitpick comments (1)
templates/components/vectordbs/python/none/generate.py (1)

24-26: Update Required: Handle private Metadata Field in generate_datasource

The generate_datasource function in templates/types/streaming/fastapi/app/engine/generate.py does not set the private metadata field for documents. To maintain consistency and ensure proper functionality, please update this function to include the setting of the private metadata field as done in the other instances.

  • templates/types/streaming/fastapi/app/engine/generate.py
Analysis chain

LGTM! But verify the function usage in the codebase.

The code changes are approved.

However, ensure that all function calls to generate_datasource are updated to handle the new metadata field appropriately.

Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Description: Verify all function calls to `generate_datasource` handle the new metadata field appropriately.

# Test: Search for the function usage. Expect: Only occurrences of the new usage.
rg --type python -A 5 $'generate_datasource'

Length of output: 74


Script:

#!/bin/bash
# Description: Verify all function calls to `generate_datasource` handle the new metadata field appropriately.

# Test: Search for the function usage. Expect: Only occurrences of the new usage.
rg -A 5 'generate_datasource'

Length of output: 2893


Script:

#!/bin/bash
# Description: Extract the full implementations of the `generate_datasource` function from the identified files to verify the handling of the new metadata field.

# Extract `generate_datasource` function from `templates/components/vectordbs/python/none/generate.py`
ast-grep --lang python --pattern $'def generate_datasource():\n    $$$' templates/components/vectordbs/python/none/generate.py

# Extract `generate_datasource` function from `templates/components/vectordbs/python/llamacloud/generate.py`
ast-grep --lang python --pattern $'def generate_datasource():\n    $$$' templates/components/vectordbs/python/llamacloud/generate.py

# Extract `generate_datasource` function from `templates/types/streaming/fastapi/app/engine/generate.py`
ast-grep --lang python --pattern $'def generate_datasource():\n    $$$' templates/types/streaming/fastapi/app/engine/generate.py

Length of output: 6459

Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

Commits

Files that changed from the base of the PR and between ae3be5d and 6bdffd2.

Files selected for processing (5)
  • templates/components/engines/typescript/agent/chat.ts (3 hunks)
  • templates/components/vectordbs/python/llamacloud/generate.py (1 hunks)
  • templates/components/vectordbs/python/none/generate.py (1 hunks)
  • templates/components/vectordbs/typescript/llamacloud/generate.ts (1 hunks)
  • templates/components/vectordbs/typescript/none/generate.ts (1 hunks)
Files skipped from review as they are similar to previous changes (1)
  • templates/components/engines/typescript/agent/chat.ts
Additional comments not posted (4)
templates/components/vectordbs/typescript/llamacloud/generate.ts (1)

13-18: LGTM! But verify the function usage in the codebase.

The code changes are approved.

However, ensure that all function calls to loadAndIndex are updated to handle the new metadata field appropriately.

templates/components/vectordbs/typescript/none/generate.ts (1)

28-31: LGTM! But verify the function usage in the codebase.

The code changes are approved.

However, ensure that all function calls to generateDatasource are updated to handle the new metadata field appropriately.

Verification successful

Function usage verified.

The generateDatasource function is only called within the same file where it is defined, and there are no other calls to this function in the codebase. No further updates are necessary.

Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Description: Verify all function calls to `generateDatasource` handle the new metadata field appropriately.

# Test: Search for the function usage. Expect: Only occurrences of the new usage.
rg --type ts -A 5 $'generateDatasource'

Length of output: 962

templates/components/vectordbs/python/llamacloud/generate.py (2)

34-34: LGTM! The comment enhances code readability.

The comment clearly explains the purpose of the new metadata field private, which is crucial for filtering.


37-37: LGTM! The code change is correct.

Setting the private metadata field to "false" for each document is essential for the new filtering feature.

However, ensure that this metadata field is utilized correctly in the codebase.

Verification successful

The private metadata field is used correctly in the codebase.

The search results show that the private metadata field is utilized in various places, particularly in filtering logic and metadata handling, confirming its proper usage.

  • templates/components/llamaindex/typescript/streaming/events.ts
  • templates/components/vectordbs/typescript/none/generate.ts
  • templates/components/vectordbs/typescript/llamacloud/generate.ts
  • templates/components/vectordbs/python/none/generate.py
  • templates/components/vectordbs/python/llamacloud/generate.py
  • templates/types/streaming/fastapi/app/api/services/file.py
  • templates/types/streaming/fastapi/app/api/routers/models.py
Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Description: Verify the usage of the `private` metadata field in the codebase.

# Test: Search for the usage of the `private` metadata field. Expect: Proper usage in filtering logic.
rg --type python -A 5 $'doc.metadata["private"]'

Length of output: 80


Script:

#!/bin/bash
# Description: Verify the usage of the `private` metadata field in the codebase.

# Test: Search for the usage of the `private` metadata field. Expect: Proper usage in filtering logic.
rg -A 5 $'doc.metadata["private"]'

Length of output: 35


Script:

#!/bin/bash
# Description: Verify the usage of the `private` metadata field in the codebase.

# Test: Search for the term "private" in the codebase to identify any variations in its usage.
rg -i 'private'

Length of output: 6225

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 2

Outside diff range, codebase verification and nitpick comments (1)
templates/components/llamaindex/typescript/streaming/service.ts (1)

Line range hint 51-81:
Replace this with the class name in static context.

Using this in a static context can be confusing. Replace it with the class name LLamaCloudFileService for clarity.

-      const downloadedName = this.toDownloadedName(pipelineId, fileName);
+      const downloadedName = LLamaCloudFileService.toDownloadedName(pipelineId, fileName);
-      const urlToDownload = await this.getFileUrlByName(pipelineId, fileName);
+      const urlToDownload = await LLamaCloudFileService.getFileUrlByName(pipelineId, fileName);
Tools
Biome

[error] 18-18: Using this in a static context can be confusing.

this refers to the class.
Unsafe fix: Use the class name instead.

(lint/complexity/noThisInStatic)


[error] 22-22: Using this in a static context can be confusing.

this refers to the class.
Unsafe fix: Use the class name instead.

(lint/complexity/noThisInStatic)


[error] 53-53: Using this in a static context can be confusing.

this refers to the class.
Unsafe fix: Use the class name instead.

(lint/complexity/noThisInStatic)


[error] 59-59: Using this in a static context can be confusing.

this refers to the class.
Unsafe fix: Use the class name instead.

(lint/complexity/noThisInStatic)

Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

Commits

Files that changed from the base of the PR and between 6bdffd2 and e736814.

Files selected for processing (1)
  • templates/components/llamaindex/typescript/streaming/service.ts (2 hunks)
Additional context used
Biome
templates/components/llamaindex/typescript/streaming/service.ts

[error] 18-18: Using this in a static context can be confusing.

this refers to the class.
Unsafe fix: Use the class name instead.

(lint/complexity/noThisInStatic)


[error] 22-22: Using this in a static context can be confusing.

this refers to the class.
Unsafe fix: Use the class name instead.

(lint/complexity/noThisInStatic)


[error] 53-53: Using this in a static context can be confusing.

this refers to the class.
Unsafe fix: Use the class name instead.

(lint/complexity/noThisInStatic)


[error] 59-59: Using this in a static context can be confusing.

this refers to the class.
Unsafe fix: Use the class name instead.

(lint/complexity/noThisInStatic)


[error] 87-87: Using this in a static context can be confusing.

this refers to the class.
Unsafe fix: Use the class name instead.

(lint/complexity/noThisInStatic)


[error] 90-90: Using this in a static context can be confusing.

this refers to the class.
Unsafe fix: Use the class name instead.

(lint/complexity/noThisInStatic)

Additional comments not posted (4)
templates/components/llamaindex/typescript/streaming/service.ts (4)

26-27: LGTM!

The function correctly generates a downloaded file name based on pipeline ID and file name.


93-105: LGTM!

The function correctly retrieves the file URL based on project ID and file ID.


107-118: LGTM!

The function correctly retrieves all files associated with a given pipeline ID.


30-48: Replace this with the class name in static context.

Using this in a static context can be confusing. Replace it with the class name LLamaCloudFileService for clarity.

-    const downloadFiles: Array<{
-      pipelineId: string;
-      fileName: string;
-    }> = [];
-    for (const node of nodes) {
-      const isLocalFile = node.node.metadata["is_local_file"] === "true";
-      if (isLocalFile) continue;
-      const pipelineId = node.node.metadata["pipeline_id"];
-      const fileName = node.node.metadata["file_name"];
-      if (!pipelineId || !fileName) continue;
-      const isDuplicate = downloadFiles.some(
-        (f) => f.pipelineId === pipelineId && f.fileName === fileName,
-      );
-      if (!isDuplicate) {
-        downloadFiles.push({ pipelineId, fileName });
-      }
-    }
-    return downloadFiles;
+    const downloadFiles: Array<{
+      pipelineId: string;
+      fileName: string;
+    }> = [];
+    for (const node of nodes) {
+      const isLocalFile = node.node.metadata["is_local_file"] === "true";
+      if (isLocalFile) continue;
+      const pipelineId = node.node.metadata["pipeline_id"];
+      const fileName = node.node.metadata["file_name"];
+      if (!pipelineId || !fileName) continue;
+      const isDuplicate = downloadFiles.some(
+        (f) => f.pipelineId === pipelineId && f.fileName === fileName,
+      );
+      if (!isDuplicate) {
+        downloadFiles.push({ pipelineId, fileName });
+      }
+    }
+    return downloadFiles;

Likely invalid or redundant comment.

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 2

Outside diff range, codebase verification and nitpick comments (1)
templates/components/llamaindex/typescript/streaming/service.ts (1)

Line range hint 60-82:
Replace this with the class name in static context.

Using this in a static context can be confusing. Replace it with the class name LLamaCloudFileService for clarity.

-      const downloadedName = this.toDownloadedName(pipelineId, fileName);
+      const downloadedName = LLamaCloudFileService.toDownloadedName(pipelineId, fileName);
-      const urlToDownload = await this.getFileUrlByName(pipelineId, fileName);
+      const urlToDownload = await LLamaCloudFileService.getFileUrlByName(pipelineId, fileName);
Tools
Biome

[error] 18-18: Using this in a static context can be confusing.

this refers to the class.
Unsafe fix: Use the class name instead.

(lint/complexity/noThisInStatic)


[error] 22-22: Using this in a static context can be confusing.

this refers to the class.
Unsafe fix: Use the class name instead.

(lint/complexity/noThisInStatic)


[error] 62-62: Using this in a static context can be confusing.

this refers to the class.
Unsafe fix: Use the class name instead.

(lint/complexity/noThisInStatic)


[error] 68-68: Using this in a static context can be confusing.

this refers to the class.
Unsafe fix: Use the class name instead.

(lint/complexity/noThisInStatic)

Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

Commits

Files that changed from the base of the PR and between e736814 and dfecff9.

Files selected for processing (4)
  • templates/components/engines/typescript/agent/chat.ts (3 hunks)
  • templates/components/llamaindex/typescript/streaming/events.ts (4 hunks)
  • templates/components/llamaindex/typescript/streaming/service.ts (2 hunks)
  • templates/components/vectordbs/typescript/llamacloud/generate.ts (1 hunks)
Files skipped from review as they are similar to previous changes (1)
  • templates/components/vectordbs/typescript/llamacloud/generate.ts
Additional context used
Biome
templates/components/llamaindex/typescript/streaming/service.ts

[error] 18-18: Using this in a static context can be confusing.

this refers to the class.
Unsafe fix: Use the class name instead.

(lint/complexity/noThisInStatic)


[error] 22-22: Using this in a static context can be confusing.

this refers to the class.
Unsafe fix: Use the class name instead.

(lint/complexity/noThisInStatic)


[error] 62-62: Using this in a static context can be confusing.

this refers to the class.
Unsafe fix: Use the class name instead.

(lint/complexity/noThisInStatic)


[error] 68-68: Using this in a static context can be confusing.

this refers to the class.
Unsafe fix: Use the class name instead.

(lint/complexity/noThisInStatic)


[error] 96-96: Using this in a static context can be confusing.

this refers to the class.
Unsafe fix: Use the class name instead.

(lint/complexity/noThisInStatic)


[error] 99-99: Using this in a static context can be confusing.

this refers to the class.
Unsafe fix: Use the class name instead.

(lint/complexity/noThisInStatic)

Additional comments not posted (9)
templates/components/engines/typescript/agent/chat.ts (2)

51-73: LGTM!

The generateFilters function is well-defined and enhances the filtering mechanism for queries. The logic is clear and efficient.


Line range hint 1-23:
Ensure proper integration of generateFilters.

The createChatEngine function now uses generateFilters for preFilters. Verify that this integration works as expected and that generateFilters is correctly defined and utilized.

Verification successful

Integration of generateFilters verified.

The generateFilters function is correctly defined and utilized within the createChatEngine function for setting preFilters. The integration works as expected.

  • generateFilters is defined to create MetadataFilters based on documentIds.
  • It is used in the createChatEngine function to set preFilters for the query engine.
Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Description: Verify the integration of `generateFilters` in `createChatEngine`.

# Test: Search for the usage of `generateFilters` within the file. Expect: Proper integration within `createChatEngine`.
rg --type ts -A 5 $'generateFilters'

Length of output: 1169

templates/components/llamaindex/typescript/streaming/events.ts (3)

11-22: LGTM!

The appendSourceData function has been simplified by removing unnecessary asynchronous handling, which improves code clarity and efficiency.


77-85: LGTM!

The createCallbackManager function has been updated to call LLamaCloudFileService.downloadFiles(nodes) without awaiting its completion, ensuring that chat streaming is not blocked.


Line range hint 107-120:
LGTM!

The getNodeUrl function has been simplified by removing unnecessary asynchronous handling, which improves code clarity and efficiency.

templates/components/llamaindex/typescript/streaming/service.ts (4)

40-57: LGTM!

The nodesToDownloadFiles method is well-defined and efficiently filters and prepares a list of files to download.


102-114: LGTM!

The getFileUrlById method is well-defined and efficiently fetches file URLs based on file IDs.


116-127: LGTM!

The getAllFiles method is well-defined and efficiently retrieves all files associated with a given pipeline ID.


Line range hint 1-127:
LGTM!

The LLamaCloudFileService class has been significantly modified and is well-defined and efficient. Ensure all methods are correctly integrated and utilized.

Tools
Biome

[error] 18-18: Using this in a static context can be confusing.

this refers to the class.
Unsafe fix: Use the class name instead.

(lint/complexity/noThisInStatic)


[error] 22-22: Using this in a static context can be confusing.

this refers to the class.
Unsafe fix: Use the class name instead.

(lint/complexity/noThisInStatic)


[error] 62-62: Using this in a static context can be confusing.

this refers to the class.
Unsafe fix: Use the class name instead.

(lint/complexity/noThisInStatic)


[error] 68-68: Using this in a static context can be confusing.

this refers to the class.
Unsafe fix: Use the class name instead.

(lint/complexity/noThisInStatic)

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 0

Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

Commits

Files that changed from the base of the PR and between dfecff9 and 41861bb.

Files selected for processing (2)
  • templates/components/vectordbs/python/llamacloud/generate.py (1 hunks)
  • templates/types/streaming/fastapi/app/api/routers/models.py (2 hunks)
Files skipped from review as they are similar to previous changes (1)
  • templates/components/vectordbs/python/llamacloud/generate.py
Additional comments not posted (2)
templates/types/streaming/fastapi/app/api/routers/models.py (2)

195-198: Refined criteria for determining LlamaCloud files.

The condition now checks for the presence of the private key in the metadata to determine if a file is from LlamaCloud and was not ingested locally. This change enhances the specificity of file selection based on privacy attributes.


221-224: Refined criteria for downloading files.

The condition now checks for private being None to target files from LlamaCloud that have a valid pipeline_id and file_name. This change enhances the specificity of file selection based on privacy attributes.

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 0

Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

Commits

Files that changed from the base of the PR and between 41861bb and cd0ca41.

Files selected for processing (1)
  • templates/types/streaming/fastapi/app/api/routers/chat.py (1 hunks)
Additional comments not posted (1)
templates/types/streaming/fastapi/app/api/routers/chat.py (1)

79-80: LGTM! Verify the function usage in the codebase.

The changes to the value attribute and operator enhance the filtering logic by supporting multiple values and checking for values not in the provided list.

Ensure that the updated generate_filters function works correctly with the rest of the codebase.

Verification successful

LGTM! Verify the function usage in the codebase.

The changes to the value attribute and operator enhance the filtering logic by supporting multiple values and checking for values not in the provided list. The generate_filters function is used correctly within the get_chat_engine functions, which handle the new filter format appropriately.

Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Description: Verify the function usage of `generate_filters` in the codebase.

# Test: Search for the function usage. Expect: The function should be used correctly with the new logic.
rg --type python -A 5 $'generate_filters'

Length of output: 71


Script:

#!/bin/bash
# Description: Verify the function usage of `generate_filters` in the codebase.

# Test: Search for the function usage. Expect: The function should be used correctly with the new logic.
rg --type py -A 5 $'generate_filters'

Length of output: 1219


Script:

#!/bin/bash
# Description: Verify the function usage of `get_chat_engine` in the codebase to ensure compatibility with the updated `generate_filters`.

# Test: Search for the function usage. Expect: The function should handle the new filter format correctly.
rg --type py -A 5 $'get_chat_engine'

Length of output: 3228


Script:

#!/bin/bash
# Description: Verify the usage of the `filters` parameter within the `get_chat_engine` functions.

# Test: Search for the usage of the `filters` parameter in `get_chat_engine` functions.
rg --type py -A 10 'def get_chat_engine' templates/components/engines/python/agent/__init__.py
rg --type py -A 10 'def get_chat_engine' templates/components/engines/python/chat/__init__.py

Length of output: 887


Script:

#!/bin/bash
# Description: Verify the usage of the `filters` parameter within the `get_chat_engine` function in `templates/components/engines/python/chat/__init__.py`.

# Test: Search for the usage of the `filters` parameter beyond the first 10 lines.
rg --type py -A 20 'def get_chat_engine' templates/components/engines/python/chat/__init__.py

Length of output: 648

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 0

Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

Commits

Files that changed from the base of the PR and between cd0ca41 and 614a92f.

Files selected for processing (1)
  • templates/types/streaming/fastapi/app/api/services/file.py (1 hunks)
Additional comments not posted (1)
templates/types/streaming/fastapi/app/api/services/file.py (1)

82-82: Enhancement: Added document ID to metadata.

The addition of doc.metadata["doc_id"] = doc.doc_id enriches the document's metadata, improving traceability and identification of documents by their unique IDs.

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 0

Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

Commits

Files that changed from the base of the PR and between 614a92f and 0f14302.

Files selected for processing (1)
  • templates/types/streaming/fastapi/app/api/services/file.py (1 hunks)
Additional comments not posted (5)
templates/types/streaming/fastapi/app/api/services/file.py (5)

Line range hint 11-19:
LGTM!

The function get_llamaparse_parser is correctly implemented.


Line range hint 22-26:
LGTM!

The function default_file_loaders_map is correctly implemented.


Line range hint 30-36:
LGTM!

The method preprocess_base64_file is correctly implemented.


Line range hint 56-85:
LGTM!

The method process_file is correctly implemented.


Line range hint 38-54:
Verify the impact of removing file_metadata_func.

The method store_and_parse_file adds metadata to the documents. Ensure that the removal of file_metadata_func does not affect the metadata handling.

Verification successful

The removal of file_metadata_func does not affect the metadata handling in the store_and_parse_file method. The function is imported but not used in the provided context.

Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Description: Verify if the removal of `file_metadata_func` affects the metadata handling.

# Test: Search for the usage of `file_metadata_func`. Expect: No occurrences.
rg --type python -A 5 $'file_metadata_func'

Length of output: 73


Script:

#!/bin/bash
# Description: Verify if the removal of `file_metadata_func` affects the metadata handling.

# Test: Search for the usage of `file_metadata_func`. Expect: No occurrences.
rg --type py -A 5 $'file_metadata_func'

Length of output: 593


Script:

#!/bin/bash
# Description: Verify the usage and impact of `file_metadata_func` in `templates/types/streaming/fastapi/app/api/services/file.py`.

# Test: Search for all occurrences of `file_metadata_func` in the file to understand its usage.
rg --type py $'file_metadata_func' -A 10 -B 10 templates/types/streaming/fastapi/app/api/services/file.py

Length of output: 821

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 0

Outside diff range, codebase verification and nitpick comments (1)
templates/types/streaming/nextjs/next.config.json (1)

5-5: Potential issues found with the removal of serverComponentsExternalPackages.

The packages sharp and onnxruntime-node are referenced in templates/types/streaming/nextjs/webpack.config.mjs. Removing them from serverComponentsExternalPackages in next.config.json could impact the server-side rendering or the build process.

  • templates/types/streaming/nextjs/webpack.config.mjs: Lines related to onnxruntime-node and sharp.
Analysis chain

Verify the impact of removing serverComponentsExternalPackages.

The removal of "serverComponentsExternalPackages": ["sharp", "onnxruntime-node"] may affect server-side rendering or the usage of these packages. Ensure that this change does not break any existing functionality or performance optimizations.

Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Description: Verify the impact of removing `serverComponentsExternalPackages` from `next.config.json`.

# Test: Search for the usage of `sharp` and `onnxruntime-node` in the codebase. Expect: No breaking changes or missing dependencies.
rg --type js --type ts 'sharp|onnxruntime-node'

Length of output: 49


Script:

#!/bin/bash
# Description: Verify the impact of removing `serverComponentsExternalPackages` from `next.config.json`.

# Test: Search for the usage of `sharp` and `onnxruntime-node` in the entire codebase. Expect: No breaking changes or missing dependencies.
rg 'sharp|onnxruntime-node'

Length of output: 342

Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

Commits

Files that changed from the base of the PR and between 0f14302 and 60c7479.

Files selected for processing (3)
  • .changeset/curvy-penguins-work.md (1 hunks)
  • templates/types/streaming/nextjs/next.config.json (1 hunks)
  • templates/types/streaming/nextjs/next.config.mjs (1 hunks)
Files skipped from review as they are similar to previous changes (1)
  • .changeset/curvy-penguins-work.md
Additional comments not posted (1)
templates/types/streaming/nextjs/next.config.mjs (1)

3-3: LGTM! But verify the functionality of withLlamaIndex.

The code changes are approved. Ensure that the withLlamaIndex function integrates correctly with the Next.js configuration.

@marcusschiesser marcusschiesser merged commit bd4714c into main Jul 22, 2024
7 checks passed
@marcusschiesser marcusschiesser deleted the feat/add-filter-for-query-in-ts-template branch July 22, 2024 14:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants