Skip to content

A local, private AI assistant for querying your own documents. Upload PDFs, text files, images, and web links—MindPalace parses, embeds, and stores them in-memory, letting you chat with your data using a fully local LLM. No cloud. No leaks.

License

Notifications You must be signed in to change notification settings

SherLock707/MindPalace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🧠 MindPalace

MindPalace is a private, local-first AI assistant that lets you upload and chat with your documents. Inspired by Sherlock Holmes' mental filing system, it parses and stores knowledge from your files into an in-memory vector store, ready to be queried via natural language.

🚀 Features

  • 🧾 Upload PDFs, text files, images (OCR), or URLs
  • 🧠 Ask questions using a local LLM (via Ollama)
  • 🗃️ All processing happens locally — no cloud, no leaks
  • 🧩 Modular parser architecture
  • 🎛️ Simple Gradio UI

🛠️ Stack

  • LangChain – Orchestration & document processing
  • Ollama – Run LLMs like LLaMA3, Mistral, or Gemma locally
  • FAISS – In-memory vector store
  • Gradio – Web UI
  • Tesseract OCR – For image-to-text conversion

📦 Installation

# Clone the repo
git clone https://github.com/SherLock707/MindPalace.git
cd MindPalace

# Install dependencies
pip install -r requirements.txt

# Optional: Ensure Tesseract is installed
# Ubuntu: sudo apt install tesseract-ocr
# macOS: brew install tesseract

🧪 Run the App

Start your local LLM first:

ollama run llama3

Then start the MindPalace server:

python main.py

🧰 Folder Structure

MindPalace/
├── main.py
├── requirements.txt
├── README.md
├── helpers/
│   ├── parser_factory.py
│   ├── vectorstore.py
│   ├── llm_chain.py
│   ├── ui.py
│   └── parsers/
│       ├── pdf_parser.py
│       ├── txt_parser.py
│       ├── image_parser.py
│       └── url_parser.py

🔒 Privacy First

MindPalace runs entirely on your machine. No API calls, no telemetry, no vendor lock-in.

📌 Roadmap

  • Add persistent vector DB option (Chroma, SQLite)
  • Highlight citations in responses
  • Export & reload sessions
  • CLI interface for headless mode

🙏 Credits

📄 License

MIT License. Yours to hack, extend, and evolve.


🧑‍💻 Author

Built by an engineer who believes your documents should stay yours. Let AI read your files without sending them anywhere else.

About

A local, private AI assistant for querying your own documents. Upload PDFs, text files, images, and web links—MindPalace parses, embeds, and stores them in-memory, letting you chat with your data using a fully local LLM. No cloud. No leaks.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages