docs: complete the incomplete basic chat app tutorial#1399
Merged
Conversation
Completely rewrite the basic chat application tutorial with a structured, step-by-step approach: **Tutorial Documentation**: - Restructure tutorial into 6 clear progressive steps - Add proper setup instructions and prerequisites - Include code examples for each step with explanations - Improve clarity and flow from basic to advanced concepts **Complete Working Example**: - Add `examples/tutorial-basic-chat-app/` with full implementation - Include separate files for each tutorial step (step3-step6) - Add comprehensive README with usage instructions - Support multiple execution modes via command-line arguments **Progressive Implementation Steps**: - Step 3: Basic single-shot LLM interaction - Step 4: Interactive chat loop without memory - Step 5: Chat with manual conversation memory management - Step 6: Advanced chat using chains with automatic memory **Features Added**: - Go module setup with proper dependencies - Error handling and graceful exit functionality - Multiple chat implementations demonstrating different approaches - Clear documentation linking tutorial to working code - Support for running individual steps or complete implementation The tutorial now provides a complete learning path from basic LLM usage to sophisticated conversation management using LangChainGo's chains and memory systems.
d80daae to
440e8a6
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The tutorial in docs/docs/tutorials/basic-chat-app.md was incomplete, ending abruptly at Step 6 with "{history}".
This completes the tutorial by:
The completed tutorial now provides a full working example that users can follow from start to finish.
Fixes #1365