Chat Interface
This guide explains how to use the Streamlit-based chat interface in Ollama PDF RAG.
Interface Overview
The interface consists of: - PDF viewer (right side) - Chat window (left side) - Model selection (sidebar) - File upload (sidebar)
Features
PDF Upload
- Drag and drop PDFs
- Multiple file support
- File size limits apply
Model Selection
- Choose Ollama models
- View model status
- Switch models anytime
Chat Window
- Real-time responses
- Message history
- Source citations
- Clear conversation
PDF Viewer
- Page navigation
- Zoom controls
- Highlight relevant sections
Using the Interface
- Getting Started
- Upload your PDF
- Select a model
-
Start chatting
-
Asking Questions
- Type in chat box
- Press Enter/Send
-
Wait for response
-
Managing Context
- Clear chat history
- Upload new documents
- Switch models
Tips and Tricks
- Better Responses
- Ask specific questions
- Reference page numbers
-
One topic at a time
-
Performance
- Monitor memory usage
- Clear chat regularly
-
Optimize PDF size
-
Troubleshooting
- Check model status
- Verify PDF loading
- Monitor response time
Keyboard Shortcuts
Enter
: Send messageShift + Enter
: New lineCtrl/Cmd + K
: Clear chat