Skip to content

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

  1. Getting Started
  2. Upload your PDF
  3. Select a model
  4. Start chatting

  5. Asking Questions

  6. Type in chat box
  7. Press Enter/Send
  8. Wait for response

  9. Managing Context

  10. Clear chat history
  11. Upload new documents
  12. Switch models

Tips and Tricks

  1. Better Responses
  2. Ask specific questions
  3. Reference page numbers
  4. One topic at a time

  5. Performance

  6. Monitor memory usage
  7. Clear chat regularly
  8. Optimize PDF size

  9. Troubleshooting

  10. Check model status
  11. Verify PDF loading
  12. Monitor response time

Keyboard Shortcuts

  • Enter: Send message
  • Shift + Enter: New line
  • Ctrl/Cmd + K: Clear chat