Add Context Window Configuration for Optimal RAG Performance #2
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "context-window-configuration"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem Statement
Currently, FSS-Mini-RAG uses Ollama's default context window settings, which severely limits performance:
Impact on User Experience
With 2048 token context window:
With proper context configuration:
Solution Implemented
1. Enhanced Model Configuration Menu
Added context window selection alongside model selection with:
2. Educational Content
Helps users understand:
3. Consistent Implementation
Technical Implementation
Based on comprehensive research findings:
Model Context Capabilities
Recommended Context Sizes
Configuration Integration
Benefits
Improved User Experience
Professional RAG Capability
Educational Value
Files Changed
mini_rag/config.py: Added context window configuration parametersmini_rag/llm_synthesizer.py: Dynamic context sizing with model awarenessmini_rag/explorer.py: Consistent context applicationrag-tui.py: Enhanced configuration menu with context selectionPR_DRAFT.md: Documentation of implementation approachTesting Recommendations
This PR significantly improves FSS-Mini-RAG's performance and user experience by properly configuring one of the most critical parameters for RAG systems.
Ready for review and testing! 🚀
- Add Windows installer (install_windows.bat) and launcher (rag.bat) - Enhance both Linux and Windows installers with intelligent Qwen3 model detection and setup - Fix installation script continuation issues and improve user guidance - Update README with side-by-side Linux/Windows commands - Auto-save model preferences to config.yaml for consistent experience Makes FSS-Mini-RAG fully cross-platform with zero-friction Windows adoption 🚀Checkout
From your project repository, check out a new branch and test the changes.