armandossrecife / mychatbot

Meu chatbot integrado ao Google Gemini
0 stars 0 forks source link

My Chatbot integrated to Google Gemini

Criação de um modelo automático (baseado no Google Gemini) para fazer inspeção de issues de projetos da Apache foundation para classificar se o issue tem algum tipo de impacto arquitetural ou não.

Trabalho principal: ATDCodeAnalyzer Evaluation in Open-source projects

Requisitos básicos da implementação

Instruções detalhadas dos prompts

Input: issues.csv e critical_issues

critical_issues = [
  {
    "summary": "Memory leak in core service",
    "description": "The service responsible for handling user requests seems to be experiencing a memory leak. Memory usage keeps increasing over time, eventually leading to crashes and service disruptions.",
    "comments": "[User C] This issue has caused several outages in the past week. High priority to fix."
  },
  {
    "summary": "Database schema not optimized for frequent writes",
    "description": "The current database schema involves complex joins and aggregations, leading to slow performance when writing large amounts of data. This is causing bottlenecks in our data ingestion pipeline.",
    "comments": "[Tech Lead] We need to investigate database optimization techniques to improve write performance."
  }
]

Rode o programa principal:

python3 myinspection.py

Output: resultados dos issues analisados pelo modelo

Addressing a memory leak requires careful analysis of the code and system design to identify the root cause and implement asolution that prevents future leaks. This often involves refactoring code, implementing proper memory management techniques, and reviewing the overall design to ensure that memory usage is managed effectively.

Wait for Train with Few-Shot prompts... Send prompt to Gemini and get response... ################################################## Resultado da analise do issue Database schema not optimized for frequent writes Issue Summary: Database schema not optimized for frequent writes Gemini Answer (Architectural Issue): YES Explanation: The issue has an architectural impact becausethe database schema is not optimized for frequent writes. This means that the database is not designed to handle the high volume of write operations efficiently. This can lead toperformance problems, such as slow write times and data integrity issues.

The following are some of the potential architectural impacts of this issue:

It is important to note that the architectural impact of this issue will depend on the specific details of the database schema and the application that uses it.However, in general, any change to the database schema has the potential to impact the architecture of the application.