Digital download · English · Python source + tutorial + worksheets
Multimodal Local Knowledge Agent – Complete Python Project
Index documents, PDFs, images, audio and video into one local search index and get answers that cite the exact source: the PDF page, the image, or the audio/video timestamp. Runs offline on your own machine, with an optional local model for drafted answers.
Secure checkout and instant download via Creem, our Merchant of Record. 14-day refund if you haven’t downloaded the files – see our Refund Policy.
What it does
| Input | How text is extracted | Source returned |
|---|---|---|
| TXT, MD, CSV, DOCX | Read directly | File name |
| PDF (searchable or scanned) | pdftotext, or OCR when a PDF has no text | Page number |
| JPG, PNG | Tesseract OCR | Image OCR |
| WAV, MP3, M4A | Same-name subtitles or local whisper.cpp | Timestamp |
| MP4, MOV | Subtitles/transcription + OCR of sampled frames | Timestamp |
Real output from the bundled demo
$ python knowledge_agent.py ask --db data/knowledge.sqlite \
--question "Who reviews abnormal work orders?"
Evidence found - check the originals before drawing a conclusion:
[1] demo-video.mp4 | 00:00:00.000 subtitle: Video demo: abnormal work orders
are reviewed by the on-duty engineer.
[2] demo-video.mp4 | 00:00:00 frame OCR: WORK ORDER REVIEW ON-DUTY ENGINEER
Fictional demo data. The default answer is the evidence itself, so you can check every claim against the original.
What’s inside
| Part | Details |
|---|---|
| Source code | Python standard library + SQLite FTS5. Ingest with change detection and --prune for deleted files, symlink-safe folder scope, cited answers. 11 unit tests, all passing. |
| Demo files | A note, a labelled photo, audio with subtitles and a short video – one per modality |
| Tutorial (PDF + Markdown) | Architecture, setup, a real workflow, when to add semantic search or vision models, and an honest list of limits |
| Deployment | Windows/macOS/Linux setup guide, a network-less Docker setup, 12-item troubleshooting |
| Worksheets (Excel) | Source intake register, 20 evaluation cases with real status, 20-point security checklist |
| Extras | Evidence-only system prompts, an inactive n8n reference workflow, an MCP config with no tools enabled |
Is it right for you?
Good fit: developers and technical creators who want a working, readable baseline for a private multimodal knowledge base; knowledge managers testing source tracking and deletion workflows before buying a platform; anyone learning how OCR, subtitles and full-text search fit together.
Not a fit: it is a single-machine teaching project with lexical (keyword) search. It has no login, permissions or web UI, it does not understand what is in a photo beyond its text, and it is not a multi-user production system. Those limits are documented, with what you would add for each.
FAQ
What do I need to run it? Python 3.11+ plus Tesseract, FFmpeg and Poppler (free, installed separately). An AI model is optional.
Does it send my files anywhere? No. By default it makes no network calls. With the optional --ollama-model flag it only talks to Ollama on your own machine (127.0.0.1).
Which languages does it support? OCR supports any Tesseract language pack you install. Search handles English and other Latin-script text, and splits Chinese/Japanese/Korean into two-character terms.
Can I use it in my own products? Yes – for learning, internal projects and lawful commercial adaptations. You can’t resell the original pack.
Questions? Email support@aistacknav.com. We reply within 3 business days.
AI Stack Nav is independent and not affiliated with SQLite, Tesseract, FFmpeg, Poppler, whisper.cpp, Ollama or n8n. No model weights, accounts or paid services are included.