MMXXV is a Chrome extension that enables contextual chat interactions with web content using local LLM capabilities through Ollama. The system uses ChromaDB for efficient vector storage and retrieval, allowing for enhanced responses based on the content of specified web pages.
The system consists of two main components:
- A Python backend server that handles content processing and LLM interactions
- A Chrome extension for the user interface
git clone https://github.com/vanzway/mmxxv.git
cd mmxxv- Python 3.8+
- Ollama installed and running locally
- ChromaDB
- WebSocket support
- Create a virtual environment and activate it:
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate- Install required Python packages:
pip install websockets chromadb beautifulsoup4 requests ollama- Install required Ollama models:
ollama pull nomic-embed-text
ollama pull hf.co/bartowski/Llama-3.2-1B-Instruct-GGUF:Q4_0Review and modify mmxxv.json as needed:
{
"server": {
"host": "localhost",
"port": 8765
},
"ollama": {
"host": "http://localhost:11434",
"models": {
"generation": "hf.co/bartowski/Llama-3.2-1B-Instruct-GGUF:Q4_0",
"embedding": "nomic-embed-text"
}
}
}- Start the Ollama server:
ollama serve- Start the MMXXV server:
python mmxxv.py --server --config mmxxv.json- Open Chrome and navigate to
chrome://extensions/ - Enable "Developer mode" using the toggle in the top right corner
- Click "Load unpacked" button
- Navigate to and select the
extensiondirectory in your project folder - The extension should now appear in your Chrome toolbar
- Click the extension icon in your Chrome toolbar to open the interface
- Add web pages to analyze:
- Enter URLs manually and click "Add URL"
- Use "Add Tab" to add the current tab's URL
- Ask questions about the content:
- Type your query in the input field
- Press Enter or click "Send Query"
- Start a new chat session:
- Click the "+" button to clear history and start fresh
-
WebSocket Connection:
- Ensure the server is running (
python mmxxv.py --server) - Check if port 8765 is available
- Verify WebSocket connection in browser console
- Ensure the server is running (
-
Ollama Model Issues:
- Confirm Ollama is running (
ollama serve) - Verify models are installed using
ollama list - Check model names in configuration match installed models
- Confirm Ollama is running (
-
Extension Not Loading:
- Verify all required files are present in the
extensiondirectory - Check for errors in Chrome's extension page (chrome://extensions/)
- Look for error messages in Chrome's DevTools console
- Verify all required files are present in the
-
Interface Not Working:
- Confirm the backend server is running
- Check Chrome's console for connection errors
- Verify WebSocket connection status
Logs are written to mmxxv.log by default. Adjust logging settings in mmxxv.json:
"logging": {
"enabled": true,
"level": "INFO",
"format": "%(asctime)s - %(levelname)s - %(message)s"
}- The system runs locally and doesn't send data to external servers
- Web content is processed and stored in local ChromaDB
- Communication between extension and server uses WebSocket on localhost
- Review URLs before adding them to ensure they're trustworthy
MIT License
Copyright (c) 2025 vanzway
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.