# Download from: https://ollama.ai
# After installation, open terminal and run:
ollama serve
ollama pull mistralcd "d:\Nexus AI"
python test_setup.pypip install flask flask-cors playwright requests
playwright install chrome-
Start Backend:
- Double-click
start_backend.bat - Wait for "Running on http://localhost:5000"
- Keep this window open
- Double-click
-
Open Frontend:
- Double-click
open_frontend.bat - Browser will open automatically
- Double-click
- Terminal 1 - Start Ollama:
ollama serve- Terminal 2 - Start Backend:
cd "d:\Nexus AI\backend"
python app.py- Browser:
- Open
d:\Nexus AI\frontend\index.html - Or use local server:
- Open
cd "d:\Nexus AI\frontend"
python -m http.server 8000
# Visit: http://localhost:8000- New Chat button - Start fresh conversation
- Chat History - Previous conversations
- User Info - Your profile and status
- Nexus AI Logo - Animated gradient logo
- Feature Cards - Overview of capabilities
- Example Prompts - Click to try instantly
- User Messages - Your questions (right side)
- Assistant Messages - Nexus AI responses (left side)
- Status Badges - 🧠 Mistral AI, 🌐 Web Search
- Sources - Links to information sources
- Text Box - Type your question
- Send Button - Submit question
- Shortcuts:
Enter= SendShift + Enter= New line
❓ What's the weather today?
❓ Today's news headlines
❓ Current stock price of Apple
Result: Gets latest information with high priority
❓ What's happening on October 10, 2025?
❓ Events on 10 oct 2025
❓ December 25, 2024 forecast
Result: Exact date match with 📅 visual marker
❓ What happened between 2003 and 2006?
❓ Movies from 2019 to 2023
❓ Events from 2001 through 2005
Result: Wikipedia articles prioritized, comprehensive coverage
❓ What is machine learning?
❓ Explain quantum physics
❓ How does photosynthesis work?
Result: Fast response from Mistral model
❓ Who is the current president of USA?
❓ Latest iPhone price
❓ Current population of India
Result: Web search if Mistral is uncertain
- Local AI model response
- Fast, private, offline-capable
- Shows when Mistral answered
- DuckDuckGo search used
- Online information gathered
- Shows when web search performed
- Links to information sources
- Click to verify information
- Wikipedia sources specially marked
- Processing your question
- Shows animated dots
- Backend is working
Solution:
- Open
start_backend.bat - Wait for "Running on http://localhost:5000"
- Refresh browser
Solution:
# Terminal 1:
ollama serve
# Terminal 2:
ollama pull mistral
# Verify:
ollama listSolution:
playwright install chromeOr edit backend/agent_step3.py:
channel="msedge" # Use Edge insteadShould not happen! Nexus AI uses DuckDuckGo which is CAPTCHA-free.
If it happens:
- Check
backend/agent_step3.pyuses DuckDuckGo - Verify anti-detection scripts loaded
- Try incognito/private mode
Normal timing:
- Local AI: 3-5 seconds
- Web Search: 10-20 seconds
If slower:
- Check internet connection
- Verify Ollama is running
- Close unnecessary tabs
- Check CPU usage
Solution:
Edit backend/app.py:
app.run(host='0.0.0.0', port=5001) # Change portEdit frontend/script.js:
const API_URL = 'http://localhost:5001'; # Match port-
Be Specific:
- ❌ "weather"
- ✅ "weather today in Hyderabad"
-
Use Date Formats:
- ✅ "10 oct 2025"
- ✅ "October 10, 2025"
- ✅ "2003 to 2006"
-
Historical Research:
- Add "wikipedia" for better results
- Use year ranges: "2001-2005"
-
Current Info:
- Use "today", "current", "latest"
- Specify location when needed
Enter- Send messageShift + Enter- New lineCtrl + L- Focus input (browser)F5- Refresh page (browser)
-
New Chat:
- Click "New Chat" to start fresh
- History saved automatically
-
Example Prompts:
- Click welcome screen examples
- Customize for your needs
-
Sources:
- Click source links to verify
- Wikipedia = most reliable
-
Status Badges:
- Watch for status changes
- Understand information source
| Query Type | Response Time | Method |
|---|---|---|
| General Knowledge | 3-5 seconds | 🧠 Mistral |
| Today's Info | 10-15 seconds | 🌐 Web Search |
| Historical Range | 15-25 seconds | 📚 Wikipedia |
| Specific Date | 10-20 seconds | 🌐 Web Search |
- CPU: Dual-core 2.0 GHz (recommended 4-core)
- RAM: 4 GB minimum (8 GB recommended)
- Storage: 10 GB free space
- Browser: Chrome, Edge, Firefox (latest)
- Internet: 5 Mbps (for web search)
# Nexus AI understands:
"10 oct 2025"
"October 10, 2025"
"10/10/2025"
"2025-10-10"# All work:
"2003 to 2006"
"2003-2006"
"2003 through 2006"
"from 2003 till 2006"🥇 +5000: Wikipedia + Historical Range
🥈 +3000: Exact Date Match
🥉 +1000: Recent/Today
+500: Wikipedia General
+0: Standard Results
-800: Old Content
Edit backend/agent_step3.py:
# Current: DuckDuckGo (CAPTCHA-free)
# Not recommended: Google, Bing (have CAPTCHA)headless=False # Visible browser
headless=True # Hidden browser (faster)# In extract_answer_from_results():
if is_wikipedia and is_range_query:
priority += 5000 # Adjust this# Backend logs
cd "d:\Nexus AI\backend"
python app.py
# Watch console output
# Browser console
# Press F12 in browser
# Check Console tabcd "d:\Nexus AI"
python test_setup.py# Browser or curl:
http://localhost:5000/health
# Should return:
{"status": "ok", "message": "Nexus AI Backend is running"}You now have a powerful AI assistant that combines:
- 🧠 Local AI (privacy & speed)
- 🌐 Web search (current info)
- 📚 Wikipedia (research)
- 🔥 Smart prioritization (accuracy)
Start asking questions and explore the power of Nexus AI!
- Ollama installed and running
- Python dependencies installed
- Backend started (
start_backend.bat) - Frontend opened (
open_frontend.bat) - First question asked successfully
- Sources verified
- Features tested (today, dates, ranges)
Happy Exploring! 🚀
Made with ❤️ for intelligent, privacy-focused AI assistance