docs: Rock paper scissors LLM example#170
Conversation
Summary of ChangesHello @toby-coleman, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request introduces a new, interactive demonstration to the documentation that features two large language models (LLMs) engaging in a game of Rock Paper Scissors. The primary goal is to showcase advanced capabilities of the Plugboard framework, specifically how to orchestrate complex, multi-LLM interactions and implement game logic using custom components and circular data flows. This example provides a practical illustration of building sophisticated AI-driven applications. Highlights
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
|
Benchmark comparison for |
There was a problem hiding this comment.
Code Review
This pull request adds a new demo notebook showcasing a rock-paper-scissors game between two LLMs. The changes are well-structured and provide a good example of advanced plugboard usage. My review includes a few suggestions to improve the code quality within the new notebook, focusing on fixing a typo in the documentation, refactoring duplicated code for better maintainability, and simplifying game logic for improved readability.
examples/demos/llm/003_rock_paper_scissors/rock-paper-scissors.ipynb
Outdated
Show resolved
Hide resolved
examples/demos/llm/003_rock_paper_scissors/rock-paper-scissors.ipynb
Outdated
Show resolved
Hide resolved
examples/demos/llm/003_rock_paper_scissors/rock-paper-scissors.ipynb
Outdated
Show resolved
Hide resolved
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
|
Benchmark comparison for |
|
Benchmark comparison for |
|
Benchmark comparison for |
Summary
Adds a new demo to the documentation. Two LLMs play a game of rock, paper, scissors against each other, with Plugboard components used to determine the winner at the end of each round.
Demonstrates advanced usage of the
LLMChatcomponent, along with circular model structures.Changes