Documentation Index
Fetch the complete documentation index at: https://mintlify.com/holzerjm/civichacks-demo/llms.txt
Use this file to discover all available pages before exploring further.
Ollama issues
Ollama isn’t responding
Symptoms:- “Connection refused” errors
- Scripts hang when trying to connect
- No response from
ollama list
Check if Ollama is running
Check if Ollama is running
Verify the model is downloaded
Verify the model is downloaded
Check firewall settings
Check firewall settings
localhost:11434. Ensure no firewall is blocking this port.Model not found error
Error message:Connection refused on macOS
Symptoms:- Ollama works in terminal but not in Python scripts
- “Connection refused to localhost:11434”
Performance issues
Very slow generation (< 3 tokens/sec)
Symptoms:- Responses take minutes to generate
- High CPU usage
- System feels sluggish
Close other applications
Close other applications
- Web browsers with many tabs
- Electron apps (Slack, Discord, VS Code)
- Video conferencing apps
- Other LLM tools
Switch to a smaller model
Switch to a smaller model
Check CPU vs GPU inference
Check CPU vs GPU inference
- Look for “ollama” process
- If “CPU” is high but “GPU” is low, the model might not be using the Neural Engine
- Restart Ollama:
killall ollama && ollama serve
Index building is slow (> 30 seconds)
Symptoms:- Step 2 hangs during “Building vector index…”
- First run takes much longer than subsequent runs
First run: Embedding model download
First run: Embedding model download
all-MiniLM-L6-v2) downloads on first use (~80 MB).Fix: Run Step 2 once before your live demo to cache the model:~/.cache/huggingface/hub/.Check internet connection
Check internet connection
App is unresponsive
Symptoms:- Gradio app loads but doesn’t respond to queries
- Browser shows loading spinner indefinitely
- Terminal shows no error messages
Check available RAM
Check available RAM
Increase request timeout
Increase request timeout
Gradio issues
Browser doesn’t open automatically
Symptoms:- Script starts but browser doesn’t launch
- Terminal shows “Running on local URL: http://localhost:7860”
Open manually
Open manually
Specify browser
Specify browser
BROWSER environment variable:Port already in use
Error message:Kill the existing process
Kill the existing process
Use a different port
Use a different port
Share link doesn’t work
Symptoms:--shareflag creates a URL but it’s not accessible- “Could not create share link” error
Check internet connection
Check internet connection
Firewall blocking tunnel
Firewall blocking tunnel
- Use a different network (mobile hotspot)
- Deploy to Hugging Face Spaces instead
Embedding model issues
Download hangs or fails
Symptoms:- Step 2 hangs at “Building vector index…”
- “ConnectionError” or “TimeoutError”
Check internet connection
Check internet connection
Retry with better network
Retry with better network
- Move closer to the router
- Use a wired connection
- Pair with someone who already has the model cached
- Copy their
~/.cache/huggingface/directory
Clear cache and retry
Clear cache and retry
”No module named ‘sentence_transformers’”
Solution: Reinstall dependencies:Cached model location
The embedding model is cached at:Python dependency issues
Import errors
Error message:Version conflicts
Symptoms:- “Incompatible version” warnings
- Scripts fail with attribute errors
BYOD (Bring Your Own Data) issues
File not found
Error message:Check file path
Check file path
Remove drag-and-drop quotes
Remove drag-and-drop quotes
Unsupported file type
Error message:.txt(plain text).pdf(requiresllama-index-readers-file).csv(comma-separated values).docx(Word documents)
PDF parsing fails
Symptoms:- Empty or garbled text from PDFs
- “No content found” errors
Check PDF type
Check PDF type
Install additional readers
Install additional readers
Live demo backup plan
Pre-record a screen capture
Before the event:- Record the full demo flow using screen recording software
- Record at the venue so the environment looks authentic
- Include terminal commands, browser interactions, and real responses
- Keep the video file ready to play if needed
Pre-warm checklist
Run these commands before going on stage:Getting help
If you’re still stuck:- Check the architecture overview to understand how components connect
- Review the deployment options if you’re trying to host remotely
- Open an issue on GitHub with:
- Your OS and Python version
- Full error message
- Steps to reproduce