Skip to content

Conversation

doomedraven
Copy link
Collaborator

No description provided.

Copy link
Contributor

Summary of Changes

Hello @doomedraven, 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 sophisticated Retrieval-Augmented Generation (RAG) chatbot designed to automatically answer newly opened GitHub issues. By leveraging a knowledge base constructed from project documentation and historical issue data, the bot can semantically search for relevant information and use a large language model (Gemini) to formulate helpful, context-aware responses, significantly streamlining issue support and reducing response times.

Highlights

  • Automated Issue Answering: A new GitHub Actions workflow (auto_answer.yml) has been introduced to automatically trigger a Retrieval-Augmented Generation (RAG) chatbot whenever a new issue is opened in the repository.
  • RAG Chatbot Implementation: The auto_answer_bot.py script implements the core RAG logic, utilizing SentenceTransformer for creating embeddings, FAISS for efficient semantic search within the knowledge base, and Google's Gemini LLM for generating context-aware answers.
  • Knowledge Base Management: A dedicated build_knowledge_base.py script is included to construct and update the bot's knowledge base. This script processes project documentation (RST files) and existing GitHub issues, converting them into searchable embeddings and metadata.
  • Comprehensive Documentation: A detailed readme.md file provides step-by-step instructions for setting up the local knowledge base, deploying the bot to GitHub, and outlining the maintenance process to keep the bot's information current.
Ignored Files
  • Ignored by pattern: .github/workflows/** (1)
    • .github/workflows/auto_answer.yml
Using Gemini Code Assist

The 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 /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

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 .gemini/ folder in the base of the repository. Detailed instructions can be found here.

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

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request introduces a RAG-based chatbot to automatically answer GitHub issues, which is a fantastic addition. The implementation includes a GitHub Action, scripts for building the knowledge base and generating answers, and associated documentation. However, my review has identified several critical issues that need to be addressed before merging. The most significant is a security vulnerability related to the use of pickle for data serialization, which could allow for remote code execution. There are also critical correctness bugs in the knowledge base creation script that cause data duplication, as well as other issues concerning error handling, code clarity, and dependency management. I have provided detailed comments and suggestions for each point below.

doomedraven and others added 15 commits September 24, 2025 10:43
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
@doomedraven doomedraven merged commit d71a410 into master Sep 24, 2025
6 checks passed
@doomedraven doomedraven deleted the issues_KB_RAG_LLM branch September 24, 2025 12:31
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