-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
base: main
Are you sure you want to change the base?
Gemini Chatbot Tutorial – Interactive Chat with Streaming & History #547 #608
Conversation
Check out this pull request on See visual diffs & provide feedback on Jupyter Notebooks. Powered by ReviewNB |
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! |
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 |
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.