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

Added LLM evaluator to example projects #1589

Merged
merged 6 commits into from
Jan 8, 2025
Merged

Conversation

D-K-P
Copy link
Member

@D-K-P D-K-P commented Jan 8, 2025

Summary by CodeRabbit

  • Documentation

    • Added new documentation for the Batch LLM Evaluator example project.
    • Introduced GitHub repository links in multiple framework and example guides.
    • Added a new snippet about Trigger.dev Realtime features.
    • Updated documentation navigation to include the new Batch LLM Evaluator project in the example projects section.
  • New Features

    • Expanded documentation resources for developers working with Trigger.dev and various frameworks.

Copy link

changeset-bot bot commented Jan 8, 2025

⚠️ No Changeset found

Latest commit: 2aca534

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

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

Copy link
Contributor

coderabbitai bot commented Jan 8, 2025

Walkthrough

This pull request introduces documentation updates across multiple files, primarily focusing on adding GitHub repository links and expanding example project documentation. A new documentation file for a Batch LLM Evaluator project is added, which demonstrates using Vercel AI SDK and Trigger.dev's Realtime feature to evaluate multiple LLM models. The changes also include standardizing documentation by adding GitHub repository sections and updating the documentation navigation structure.

Changes

File Change Summary
docs/mint.json Added new page "guides/example-projects/batch-llm-evaluator" to Example projects section
docs/guides/example-projects/batch-llm-evaluator.mdx New documentation file for Batch LLM Evaluator project
docs/guides/example-projects/realtime-fal-ai.mdx Added <RealtimeLearnMore /> component
docs/snippets/realtime-learn-more.mdx Added "Learn more about Trigger.dev Realtime" section
docs/guides/frameworks/*-webhooks.mdx Added GitHub repository card sections

Sequence Diagram

sequenceDiagram
    participant Frontend
    participant BatchEvaluator
    participant LLMModels
    participant Trigger.dev

    Frontend->>BatchEvaluator: Initiate Evaluation
    BatchEvaluator->>Trigger.dev: batch.triggerByTaskAndWait
    Trigger.dev->>LLMModels: Distribute Tasks
    LLMModels-->>Trigger.dev: Return Results
    Trigger.dev-->>BatchEvaluator: Aggregate Results
    BatchEvaluator->>Frontend: Stream Real-time Updates
Loading

Possibly related PRs

  • Adding example projects #1564: The changes in this PR involve adding a new documentation file for a full-stack Next.js project, which is related to the main PR's focus on the "Batch LLM Evaluator" project that also utilizes Next.js and Trigger.dev functionalities.

Poem

🐰 Batch LLMs dance and sway,
Trigger.dev makes evaluation play!
Models race, results stream bright,
Code hops with algorithmic might!
A rabbit's tech ballet, hooray! 🚀


📜 Recent review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 2aca534 and ed8f91b.

📒 Files selected for processing (2)
  • docs/guides/introduction.mdx (1 hunks)
  • docs/snippets/realtime-learn-more.mdx (1 hunks)
🚧 Files skipped from review as they are similar to previous changes (1)
  • docs/snippets/realtime-learn-more.mdx
🔇 Additional comments (1)
docs/guides/introduction.mdx (1)

43-43: LGTM! Well-structured documentation addition.

The new Batch LLM Evaluator project entry is well-formatted and consistent with the existing documentation structure. It provides clear information about the project's purpose and maintains the established pattern for repository links.


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>, please review it.
    • 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 gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @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 using 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 generate docstrings to generate docstrings for this PR. (Beta)
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

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.

Copy link
Contributor

@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

🧹 Nitpick comments (3)
docs/guides/example-projects/batch-llm-evaluator.mdx (3)

11-13: Consider hyphenating compound adjective

Change "full stack" to "full-stack" as it's being used as a compound adjective modifying "example".

-This demo is a full stack example that uses the following:
+This demo is a full-stack example that uses the following:
🧰 Tools
🪛 LanguageTool

[uncategorized] ~11-~11: If this is a compound adjective that modifies the following noun, use a hyphen.
Context: ...more.mdx"; ## Overview This demo is a full stack example that uses the following: - A [...

(EN_COMPOUND_ADJECTIVE_INTERNAL)


42-43: Fix verb-noun confusion

Change "pass the relevant run down" to either "pass down the relevant run" or "pass the relevant run" for better clarity.

-We then pass the relevant run down into three different components for the different models:
+We then pass down the relevant run into three different components for the different models:
🧰 Tools
🪛 LanguageTool

[uncategorized] ~43-~43: When ‘run-down’ is used as a noun or modifier, it needs to be hyphenated.
Context: ....tsx) file. - We then pass the relevant run down into three different components for the...

(VERB_NOUN_CONFUSION)


31-35: Enhance video accessibility

Consider adding more accessibility attributes to the video element, such as poster for a thumbnail and aria-label for screen readers.

 <video
   controls
   className="w-full aspect-video"
+  poster="https://content.trigger.dev/batch-llm-evaluator-poster.jpg"
+  aria-label="Demo of the Batch LLM Evaluator project"
   src="https://content.trigger.dev/batch-llm-evaluator.mp4"
 ></video>
📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 3ca0c15 and 2aca534.

📒 Files selected for processing (9)
  • docs/guides/example-projects/batch-llm-evaluator.mdx (1 hunks)
  • docs/guides/example-projects/realtime-fal-ai.mdx (2 hunks)
  • docs/guides/examples/fal-ai-realtime.mdx (1 hunks)
  • docs/guides/frameworks/nextjs-webhooks.mdx (1 hunks)
  • docs/guides/frameworks/remix-webhooks.mdx (1 hunks)
  • docs/guides/frameworks/supabase-edge-functions-basic.mdx (1 hunks)
  • docs/guides/frameworks/supabase-edge-functions-database-webhooks.mdx (2 hunks)
  • docs/mint.json (1 hunks)
  • docs/snippets/realtime-learn-more.mdx (1 hunks)
✅ Files skipped from review due to trivial changes (2)
  • docs/snippets/realtime-learn-more.mdx
  • docs/guides/examples/fal-ai-realtime.mdx
🧰 Additional context used
🪛 LanguageTool
docs/guides/example-projects/batch-llm-evaluator.mdx

[uncategorized] ~11-~11: If this is a compound adjective that modifies the following noun, use a hyphen.
Context: ...more.mdx"; ## Overview This demo is a full stack example that uses the following: - A [...

(EN_COMPOUND_ADJECTIVE_INTERNAL)


[uncategorized] ~43-~43: When ‘run-down’ is used as a noun or modifier, it needs to be hyphenated.
Context: ....tsx) file. - We then pass the relevant run down into three different components for the...

(VERB_NOUN_CONFUSION)

🔇 Additional comments (8)
docs/guides/example-projects/realtime-fal-ai.mdx (1)

7-8: LGTM! Documentation enhancement

The addition of the RealtimeLearnMore component improves the documentation by providing additional context about realtime features.

Also applies to: 45-46

docs/guides/frameworks/remix-webhooks.mdx (1)

12-21: LGTM! Documentation enhancement

The addition of the GitHub repository section with the Card component improves documentation accessibility by providing direct access to example code.

docs/guides/frameworks/nextjs-webhooks.mdx (1)

14-23: LGTM! Documentation enhancement

The addition of the GitHub repository section with the Card component improves documentation accessibility. The link correctly points to the specific app subdirectory in the examples repository.

docs/guides/frameworks/supabase-edge-functions-basic.mdx (1)

34-43: LGTM! Documentation enhancement

The addition of the GitHub repository section with the Card component improves documentation accessibility by providing direct access to example code.

docs/mint.json (1)

351-354: LGTM! Navigation structure update

The addition of the batch LLM evaluator page to the Example projects group maintains consistent documentation structure.

docs/guides/frameworks/supabase-edge-functions-database-webhooks.mdx (1)

37-46: LGTM! Well-structured GitHub repository section.

The added GitHub repository section follows documentation best practices with clear instructions and proper use of the Card component.

docs/guides/example-projects/batch-llm-evaluator.mdx (2)

39-47: LGTM! Clear and well-structured code explanation.

The code explanation section effectively guides users through the key components and features of the project, with proper links to source files and explanations of the main concepts.

🧰 Tools
🪛 LanguageTool

[uncategorized] ~43-~43: When ‘run-down’ is used as a noun or modifier, it needs to be hyphenated.
Context: ....tsx) file. - We then pass the relevant run down into three different components for the...

(VERB_NOUN_CONFUSION)


15-16: Consider adding version information for external dependencies

The documentation references the Vercel AI SDK and batch.triggerByTaskAndWait method. Consider adding version information or compatibility notes to help users avoid version-related issues.

@D-K-P D-K-P merged commit d52e3d7 into main Jan 8, 2025
3 checks passed
@D-K-P D-K-P deleted the docs/example-projects-updates branch January 8, 2025 21:17
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.

1 participant