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

Gemini Chatbot Tutorial – Interactive Chat with Streaming & History #547 #608

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

AbhigyanSrivastav
Copy link

About PR:

This PR introduces a Gemini Chatbot Tutorial as part of the Gemini Cookbook, aligning with Issue #547 (Add New Tutorials for Gemini API Use Cases). The tutorial demonstrates how to build an AI-powered chatbot using the Gemini API, showcasing best practices for real-time interaction and multi-turn conversations.

Key Features in the Tutorial:

Multi-turn conversation handling – Maintains chat history for contextual responses.
Streaming AI responses – Enables real-time interaction using Gemini's streaming capabilities.
Structured message formatting – Ensures compatibility with Gemini’s input/output structure.
Practical hands-on implementation – Provides a step-by-step example for developers.

Implementation Details:

This tutorial enhances the Gemini Cookbook by offering a real-world chatbot implementation that developers can follow and adapt. It showcases how to leverage the Gemini API effectively while ensuring a smooth user experience with contextual memory and streaming responses.

📌 This PR aligns with the request in Issue #547 to add practical use cases of the Gemini API.

Copy link

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

@github-actions github-actions bot added status:awaiting review PR awaiting review from a maintainer component:quickstarts Issues/PR referencing quickstarts folder labels Mar 25, 2025
@Giom-V
Copy link
Collaborator

Giom-V commented Mar 31, 2025

Hey @AbhigyanSrivastav, thanks so much for submitting this PR and contributing to the onboarding guides! We definitely agree that better, more didactic guides are needed for the chat mode.

Looking at this submission, while the topic is important, the current approach jumps into using history fairly quickly without laying the groundwork. For a truly effective onboarding guide aimed at new developers, it really needs to start from the absolute beginning (creating a chat, basic send/receive) and build up step-by-step with clear explanations and interactivity before tackling more advanced features like history, tools, or multimodal elements.

Because it skips those foundational steps and lacks that detailed, interactive approach, the guide in its current form doesn't quite add the significant value we're looking for in a beginner's tutorial right now.

That said, a comprehensive, step-by-step chat tutorial is absolutely something we need! It's been on my backlog for a while. If you're interested in reworking this PR into that kind of detailed guide for developers completely new to the SDK, please do! I'd be genuinely happy to review it and provide feedback when you feel it's ready.

@Giom-V Giom-V self-assigned this Mar 31, 2025
@AbhigyanSrivastav
Copy link
Author

Hey @AbhigyanSrivastav, thanks so much for submitting this PR and contributing to the onboarding guides! We definitely agree that better, more didactic guides are needed for the chat mode.

Looking at this submission, while the topic is important, the current approach jumps into using history fairly quickly without laying the groundwork. For a truly effective onboarding guide aimed at new developers, it really needs to start from the absolute beginning (creating a chat, basic send/receive) and build up step-by-step with clear explanations and interactivity before tackling more advanced features like history, tools, or multimodal elements.

Because it skips those foundational steps and lacks that detailed, interactive approach, the guide in its current form doesn't quite add the significant value we're looking for in a beginner's tutorial right now.

That said, a comprehensive, step-by-step chat tutorial is absolutely something we need! It's been on my backlog for a while. If you're interested in reworking this PR into that kind of detailed guide for developers completely new to the SDK, please do! I'd be genuinely happy to review it and provide feedback when you feel it's ready.

Hey @Giom-V ,

Thank you so much for your thoughtful feedback! I really appreciate the insights and completely understand the need for a more structured, step-by-step onboarding guide that starts from the basics before introducing advanced features like history.

I’m definitely interested in reworking this PR to align better with that approach and make it more interactive and beginner-friendly. I’ll take some time to refine it accordingly and will submit an updated version soon.

Thanks again for your guidance, I look forward to your feedback on the revised version!

@Giom-V
Copy link
Collaborator

Giom-V commented Mar 31, 2025

I’m definitely interested in reworking this PR to align better with that approach and make it more interactive and beginner-friendly. I’ll take some time to refine it accordingly and will submit an updated version soon.

Just to be certain you are going in the right direction and don't spend too much time on the wrong thing, don't hesitate to send an early version (like just creating a chat and basic prompting)

@AbhigyanSrivastav
Copy link
Author

I’m definitely interested in reworking this PR to align better with that approach and make it more interactive and beginner-friendly. I’ll take some time to refine it accordingly and will submit an updated version soon.

Just to be certain you are going in the right direction and don't spend too much time on the wrong thing, don't hesitate to send an early version (like just creating a chat and basic prompting)

okay sure thank you again

@Giom-V Giom-V assigned AbhigyanSrivastav and unassigned Giom-V Apr 1, 2025
@Giom-V Giom-V marked this pull request as draft April 1, 2025 11:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component:quickstarts Issues/PR referencing quickstarts folder status:awaiting review PR awaiting review from a maintainer
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants