Skip to content

docs: complete the incomplete basic chat app tutorial#1399

Merged
tmc merged 1 commit into
mainfrom
docs-complete-chat-tutorial
Sep 14, 2025
Merged

docs: complete the incomplete basic chat app tutorial#1399
tmc merged 1 commit into
mainfrom
docs-complete-chat-tutorial

Conversation

@tmc

@tmc tmc commented Sep 12, 2025

Copy link
Copy Markdown
Owner

The tutorial in docs/docs/tutorials/basic-chat-app.md was incomplete, ending abruptly at Step 6 with "{history}".

This completes the tutorial by:

  • Fixing Step 6 code example that was cut off
  • Adding the missing prompt template implementation
  • Adding the conversation chain setup
  • Including the complete interactive loop
  • Adding Step 7 for running the application
  • Adding a conclusion section

The completed tutorial now provides a full working example that users can follow from start to finish.

Fixes #1365

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.
@tmc tmc force-pushed the docs-complete-chat-tutorial branch from d80daae to 440e8a6 Compare September 14, 2025 18:18
@tmc tmc merged commit dff679c into main Sep 14, 2025
161 checks passed
@tmc tmc deleted the docs-complete-chat-tutorial branch September 14, 2025 18:21
@tmc tmc mentioned this pull request Sep 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

The code example in basic-chat-app.md seems incomplete

1 participant