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

Beckn-gemini-bot enhancement - retrial mechanism incase of error #116

Open
9 tasks
emmayank opened this issue Oct 9, 2024 · 0 comments
Open
9 tasks

Beckn-gemini-bot enhancement - retrial mechanism incase of error #116

emmayank opened this issue Oct 9, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@emmayank
Copy link

emmayank commented Oct 9, 2024

Description

Enhance the Beckn-Gemini Bot by adding a retrial mechanism to handle unexpected errors that occur during interaction, especially when the Gemini API or model fails to respond as expected. During the demo, it was observed that certain errors from the Gemini API/model broke the flow, causing the bot to fail. Implementing a retrial mechanism will ensure that the bot attempts to recover from such errors and prevents flow disruption, improving overall reliability.

Goals

  • Implement a retrial mechanism to handle unexpected errors from the Gemini API or model.
  • Ensure that when an error occurs, the bot makes several attempts to recover and retry the request before failing.
  • Define the number of retrial attempts and the delay between retries to optimize the bot's performance.
  • Add proper error handling to inform the user of any delays or issues while the retrial mechanism is in process.
  • Test the enhancement to ensure that the retrial mechanism works as expected, and the bot can recover from errors without breaking the flow.

Expected Outcome

  • A retrial mechanism is in place that handles unexpected errors, allowing the bot to recover from API or model failures.
  • The bot attempts to retry the request multiple times before giving up, ensuring better reliability during interactions.
  • Users are informed of any delays or errors, ensuring a smooth and continuous flow of conversation even in the event of technical issues.

Acceptance Criteria

  • The retrial mechanism is successfully implemented and makes multiple attempts to recover from errors in case of API/model failures.
  • The bot does not break the conversation flow even if an error occurs, and retries are attempted before failing.
  • Users are notified about any delays or errors during the retrial process to maintain engagement.
  • The retrial mechanism is tested in various error scenarios and is found to be working effectively.

Mockups / Wireframes

NA

Product Name

Beckn-Gemini Bot

Domain

Error Handling / Conversational AI

Tech Skills Needed

  • Error Handling and Retry Mechanisms
  • API/Model Error Detection
  • Bot Development
  • JavaScript/TypeScript (or relevant language)

Complexity

Medium

Category

Bot Enhancement

Sub Category

Error Handling and Recovery

Project View

Beckn-Gemini Bot

Project Name

Beckn-Gemini Bot Retrial Mechanism Enhancement

@emmayank emmayank added the enhancement New feature or request label Oct 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants