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

Add evaluation section to LLMOps guide #2614

Merged
merged 67 commits into from
Apr 17, 2024

Conversation

strickvl
Copy link
Contributor

@strickvl strickvl commented Apr 15, 2024

This pull request adds a new section to the documentation that explains how to evaluate the performance of the RAG system in practice. It covers topics such as separating evaluation from the main pipeline, using a local LLM judge for faster iteration, the limitations of automated evaluation, and determining the frequency and depth of evaluation.

Gitbook preview link

Copy link
Contributor

coderabbitai bot commented Apr 15, 2024

Important

Auto Review Skipped

Auto reviews are disabled on this repository.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.


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.

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 a review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai help to get help.

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

CodeRabbit Configration 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.

@github-actions github-actions bot added the internal To filter out internal PRs and issues label Apr 15, 2024
@strickvl strickvl added the documentation Improvements or additions to documentation label Apr 15, 2024
Copy link
Contributor

@htahir1 htahir1 left a comment

Choose a reason for hiding this comment

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

Great one ! Left some diagrams and comments

Copy link
Contributor

Images automagically compressed by Calibre's image-actions

Compression reduced images by 22.7%, saving 77.76 KB.

Filename Before After Improvement Visual comparison
docs/book/.gitbook/assets/supabase-editor-interface.png 342.21 KB 264.45 KB -22.7% View diff

255 images did not require optimisation.

Update required: Update image-actions configuration to the latest version before 1/1/21. See README for instructions.

@strickvl strickvl requested a review from htahir1 April 17, 2024 12:00
Copy link
Contributor

Images automagically compressed by Calibre's image-actions

Compression reduced images by 2%, saving 5.09 KB.

Filename Before After Improvement Visual comparison
docs/book/.gitbook/assets/evaluation-two-parts.png 85.48 KB 83.49 KB -2.3% View diff
docs/book/.gitbook/assets/retrieval-eval-automated.png 90.03 KB 88.52 KB -1.7% View diff
docs/book/.gitbook/assets/retrieval-eval-manual.png 79.43 KB 77.84 KB -2.0% View diff

253 images did not require optimisation.

Update required: Update image-actions configuration to the latest version before 1/1/21. See README for instructions.

Copy link
Contributor

Images automagically compressed by Calibre's image-actions

Compression reduced images by 32.5%, saving 29.64 KB.

Filename Before After Improvement Visual comparison
docs/book/.gitbook/assets/generation-eval-automated.png 45.26 KB 30.53 KB -32.5% View diff
docs/book/.gitbook/assets/generation-eval-manual.png 45.97 KB 31.06 KB -32.4% View diff

254 images did not require optimisation.

Update required: Update image-actions configuration to the latest version before 1/1/21. See README for instructions.

@strickvl strickvl merged commit a619b82 into develop Apr 17, 2024
4 of 5 checks passed
@strickvl strickvl deleted the doc/add-evaluation-section-rag-guide branch April 17, 2024 12:18
strickvl added a commit that referenced this pull request Apr 17, 2024
* fix missing word in docs

* add eval section structure and first texts

* more retrieval eval

* complete retrieval eval section

* formatting and adding code example

* add motivation section for eval

* generation eval updates

* add automated eval section

* finalise generation eval guide section

* add final code example reference

* generation final additions

* add eval in practice section (and small addition to generation docs)

* add eval in practice section

* update TOCs

* fix toc

* add missing table of contents back

* fix locations of files

* apply evaluation edits

* add extra 'next steps' section for retrieval

* convert and use table

* try html wrapping

* try another wrapping option

* and another wrapping option

* try the simple route

* simple option part 2

* final wrapping

* add image of embeddings questions dataset

* update language on external tools

* Optimised images with calibre/image-actions

* add dummy illustrations for zuri

* Optimised images with calibre/image-actions

* add eval in 65 LOC implementation and cleanup

* update TOC

* Optimised images with calibre/image-actions

* add instructions on cloning and running the pipeline

* update embedding viz images

* Optimised images with calibre/image-actions

* update embeddings viz text in rag guide

* add 65 loc eval guide

* add link for jaccard

* switch order

* update embeddings code

* add link

* update embeddings code in docs

* replace supabase image with uptodate one

* wrap inference command

* update inference code

* Optimised images with calibre/image-actions

* update further inference code

* evaluation small edits

* small retrieval doc edits

* add table for basic examples

* add links and small fixes

* replace images

* Optimised images with calibre/image-actions

* fix diagrams

* smaller diagrams

* Optimised images with calibre/image-actions

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
(cherry picked from commit a619b82)
strickvl added a commit that referenced this pull request Apr 17, 2024
* fix missing word in docs

* add eval section structure and first texts

* more retrieval eval

* complete retrieval eval section

* formatting and adding code example

* add motivation section for eval

* generation eval updates

* add automated eval section

* finalise generation eval guide section

* add final code example reference

* generation final additions

* add eval in practice section (and small addition to generation docs)

* add eval in practice section

* update TOCs

* fix toc

* add missing table of contents back

* fix locations of files

* apply evaluation edits

* add extra 'next steps' section for retrieval

* convert and use table

* try html wrapping

* try another wrapping option

* and another wrapping option

* try the simple route

* simple option part 2

* final wrapping

* add image of embeddings questions dataset

* update language on external tools

* Optimised images with calibre/image-actions

* add dummy illustrations for zuri

* Optimised images with calibre/image-actions

* add eval in 65 LOC implementation and cleanup

* update TOC

* Optimised images with calibre/image-actions

* add instructions on cloning and running the pipeline

* update embedding viz images

* Optimised images with calibre/image-actions

* update embeddings viz text in rag guide

* add 65 loc eval guide

* add link for jaccard

* switch order

* update embeddings code

* add link

* update embeddings code in docs

* replace supabase image with uptodate one

* wrap inference command

* update inference code

* Optimised images with calibre/image-actions

* update further inference code

* evaluation small edits

* small retrieval doc edits

* add table for basic examples

* add links and small fixes

* replace images

* Optimised images with calibre/image-actions

* fix diagrams

* smaller diagrams

* Optimised images with calibre/image-actions

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
(cherry picked from commit a619b82)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation internal To filter out internal PRs and issues
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants