Skip to content

About

MonkeyGrab: a local, multilingual (ES/CA/EN) RAG system for PDFs. MinerU parsing, hybrid BM25 + FAISS retrieval with cross-encoder reranking, and generation with open models via Ollama. Flask + React web app and Windows desktop build; no data leaves your machine.

Topics

Resources

Contributing

Security policy

Stars

16 stars

Watchers

0 watching

Forks

Repository files navigation

MonkeyGrab Logo

MonkeyGrab

A local, multilingual RAG system for querying PDF documents with open language models.
All indexing, retrieval and generation runs on your own hardware — no data leaves your machine.

Python Ollama Vector store: FAISS React

Hybrid retrieval Hexagonal architecture Multilingual Local

Overview · Architecture · What it runs on · Pipeline · Running it · Development

Context. Started in February 2026 as the code base of my final degree project in Computer Engineering at UPV, while I was working as an AI and back-end developer at Grupo CEU, and still under active development. It is the local, multilingual RAG system that the academic write-up (repo academic-monkeygrab) describes, and the later tooling in this repo (CI, tests, an evaluation harness, agent skills) comes from working with coding agents.


Overview

Ask questions about your PDFs in natural language and get answers grounded in what those files actually say. Point MonkeyGrab at a folder, start the web interface, and nothing leaves the machine.

  • Local-first — indexing, retrieval and generation all run on your hardware; Ollama provides the language models. No API keys.
  • Hybrid retrieval — vector search and Okapi BM25 fused with Reciprocal Rank Fusion, then re-scored by a cross-encoder.
  • Multilingual — Castellano, English and Valencià, in both the interface and the corpus.
  • Multimodal — MinerU preserves document structure, while embeddinggemma-2 makes text and images searchable in the same semantic space.
  • Two interfaces — Flask + React web app, and a packaged Windows desktop app.

See it in action

Web interface: four questions in RAG mode over the English store, each answered from a different document, then a citation opened in the PDF viewer. Waits play at 4x; the chip under each answer shows the real time, 16 to 25 s on an 8 GB laptop GPU.

MonkeyGrab answering questions over four documents and opening a cited PDF

LaTeX rendering (formulas via KaTeX in the web UI):

LaTeX rendering in the web UI


Architecture

MonkeyGrab now has one production retrieval stack. The web app, desktop app and evaluation pipeline all use the same four-part multimodal path.

  1. MinerU understands the PDF. It extracts reading order and document structure, keeps tables as structured content, and separates figures and charts as images. It does not answer questions; it prepares the source material.

  2. embeddinggemma-2 connects text and images. It maps both modalities into one aligned semantic space, so a written question can retrieve a figure directly without first turning that figure into a text description. MonkeyGrab uses its 512-dimensional Matryoshka representation, served by a local llama-server.

  3. FAISS stores and searches the representations. MonkeyGrab uses an exact, normalized inner-product index, which is equivalent to cosine similarity here. FAISS is a search library, not an artificial-intelligence model.

  4. BGE Reranker v2 M3 orders the evidence. It reads the question together with each candidate and assigns a relevance score, moving the most useful fragments to the top. It does not generate the final answer.

In short: a PDF becomes structured text, tables and images; those elements become comparable vectors; exact search finds candidates; the reranker selects the strongest evidence; and only then does Ollama write the answer.

The pipeline logic itself lives in a hexagonal core under src/monkeygrab/. It depends on plain contracts, not on MinerU, the embedder, FAISS or Ollama. The concrete technologies are connected at the application boundary.

The dependency rule points one way. application may import domain, ports and config; ports may import domain; domain and config import nothing internal. Adapters implement ports but are never imported by any of them. This is not a convention to trust by eye — it is enforced by tests/unit/test_architecture_boundaries.py, which parses every import statement in the package.

No silent fallbacks. Every adapter raises on failure instead of quietly degrading. A reranker that cannot load its model fails the query rather than returning unranked results that look the same. The reasoning is in the design doc; the practical consequence is that two runs are always comparable.

What is wired today

All three stages run through the core. Each entry point under rag/engine/ builds its adapters and calls a use case; none of them holds pipeline logic.

Stage Use case Entry point
Indexing IndexCorpus indexing.py, backends from composition.build_stack
Retrieval Retrieve retrieval.py
Generation Answer generation.py

That there is one path per stage is the point: the web app, the desktop app and the acceptance gate cannot measure different behaviour, because there is only one implementation to measure.

Tip

Deeper reading: src/monkeygrab/README.md for the layers and how to add an adapter, rag/README.md for the interfaces, and docs/README.md for what gets documented where.


What it runs on

Four Ollama roles, each its own environment variable. They are separate on purpose: a small model is enough to rewrite a query, and a large one is wasted on it.

Role What it does Set with
Answer generation Writes the final answer from the retrieved evidence OLLAMA_RAG_MODEL
Chat & query decomposition Free conversation, and rewriting a question into sub-queries OLLAMA_CHAT_MODEL
Contextual enrichment Summarises each chunk's place in its document, at indexing OLLAMA_CONTEXTUAL_MODEL
Context synthesis (RECOMP) Compresses the evidence into a briefing before generation OLLAMA_RECOMP_MODEL

Tip

The current default for each is in .env.example, next to every other variable. They are deliberately not repeated here: a default copied into prose is a default that goes stale the first time it changes.

The rest of the stack is not an Ollama model:

Component What it is Set with
Reranker BAAI/bge-reranker-v2-m3. Downloaded from Hugging Face on first use. fixed
Lexical search Okapi BM25, always on when hybrid search is —
Embeddings google/embeddinggemma-2 via a local llama-server MONKEYGRAB_EMBEDDER_URL
Vector store FAISS, exact cosine search fixed
PDF extraction MinerU, structured text, tables and figures fixed

Note

MinerU is an external CLI that runs in an isolated interpreter, because its dependencies conflict with the product's, and embeddinggemma-2 is served by llama-server. See src/monkeygrab/README.md.

Choosing a generator

Any Ollama-compatible chat model can fill the four roles above. rag/chat_pdfs.py sets the shipped default for each -- the tip above points at where that default is documented, rather than copying it into prose here. Override a role with its environment variable, or pick another model from the web UI, which saves the choice to settings.json in the data directory for that machine (environment, then saved choice, then this default -- see "Running it" below).

Pass rate, latency and VRAM footprint for every model this project has actually measured, each figure citing the run artifact it came from, live in docs/model-history.md -- not here, since a benchmark number copied into this file goes stale the moment a later run supersedes it.

Low-VRAM variant (4 GB)

main is the full pipeline: reranker, the default generator and RECOMP synthesis available as a switch (off by default). A trimmed variant for 4 GB GPUs (a 0.6B generator distilled from the default one for that build, about 1 GB of VRAM, see training/; embeddinggemma-2 on the CPU, RECOMP off) lives on the rag-lite branch, where it is selected with MONKEYGRAB_PROFILE=lite. Its measured runs are in docs/model-history.md.


The query pipeline

Every question follows the same path: query preparation, semantic and lexical retrieval, rank fusion, reranking, evidence filtering, optional context synthesis, and answer generation. Optional stages can be changed from the web interface and apply to the next query without a restart.

Stage What it does
Query decomposition An auxiliary model rewrites long questions into sub-queries targeting different aspects. Short questions instead get one extra variant built from their own keywords.
Semantic search Each variant is embedded and matched against the store.
BM25 Term-frequency ranking over the same corpus, which catches identifiers, acronyms and numbers that embeddings blur.
RRF fusion Merges both rankings by reciprocal rank, so a chunk both branches found outranks one that merely topped a single branch.
Reranking A cross-encoder reads query and chunk together and re-scores the shortlist.
Threshold Drops anything below the reranker's relevance floor, so a question with no answer in the corpus returns nothing rather than the least-bad chunk. Applies only when reranking ran — without its scores there is nothing to threshold on.
Neighbour expansion Pulls in adjacent chunks of the top hits, recovering sentences cut by the chunk boundary.
RECOMP synthesis Off by default. Compresses the evidence into a facts briefing before generation, following RECOMP. On the gold set it trades a few cases for others of the same number and makes each answer about 4.7x slower (measurements).

At indexing time, contextual retrieval optionally prepends a short situational summary to each chunk so it can be found by queries whose wording appears nowhere in it. Figures indexed as image chunks can likewise get a vision-model description of their content stored as their text (default off, toggle "figure descriptions" in the web UI): the generator reads text, so without it a retrieved figure carries only its caption — or a placeholder — and nothing answerable.


Running it

Linux: three commands

tools/install.sh      # checks prerequisites, pulls the model, downloads the embedder, builds both venvs and the web UI
tools/run.sh          # starts the embedder's llama-server and the web UI at http://localhost:5000; Ctrl+C stops both
tools/uninstall.sh    # removes what install.sh created, and nothing else

install.sh is idempotent and reports every missing prerequisite before it changes anything (--check only reports; --with-corpus also fetches the PDF corpora). It never installs anything that needs root. Those prerequisites are, on a fresh Ubuntu 24.04 with an NVIDIA GPU and its driver (nvidia-smi must list the card):

# A bare container is already root and has no sudo: this makes the commands below work in both cases.
SUDO=""; [ "$(id -u)" -eq 0 ] || SUDO=sudo

$SUDO apt update
$SUDO apt install -y python3 python3-venv git curl ca-certificates zstd pciutils \
  build-essential cmake libgl1 libglib2.0-0

# Node 22.12+ with corepack (vitest needs it): the web UI builds with pnpm, pinned in package.json.
# Download the NodeSource setup script, read it, then run it.
curl -fsSLo nodesource_setup.sh https://deb.nodesource.com/setup_24.x
$SUDO bash nodesource_setup.sh && $SUDO apt install -y nodejs && $SUDO corepack enable

# Ollama (same: download install.sh from ollama.com, read it, run it).
curl -fsSLo ollama_install.sh https://ollama.com/install.sh
sh ollama_install.sh

# Ollama's server must be answering before install.sh runs. With systemd it is
# already a service; without it (a container) start it yourself and wait for it:
nohup ollama serve > ollama.log 2>&1 &
for _ in $(seq 60); do ollama list > /dev/null 2>&1 && break; sleep 1; done
ollama list > /dev/null 2>&1 || { cat ollama.log; echo "ollama serve did not come up" >&2; exit 1; }

# llama.cpp: install.sh loads embeddinggemma-2 in it to check (b11669 is known to work; older builds may not know gemma-embedding2).
# A shallow clone's --version says "build 1"; that number is not what is checked.
# Add -DGGML_CUDA=ON to run the embedder on the GPU (needs the CUDA toolkit); the CPU build works.
git clone --depth 1 --branch b11669 https://github.com/ggml-org/llama.cpp
cmake -S llama.cpp -B llama.cpp/build -DBUILD_SHARED_LIBS=OFF -DLLAMA_CURL=OFF -DCMAKE_BUILD_TYPE=Release
cmake --build llama.cpp/build --target llama-server -j"$(nproc)"
$SUDO install llama.cpp/build/bin/llama-server /usr/local/bin/

git clone https://github.com/iDiagoValeta/localOllamaRAG && cd localOllamaRAG

install.sh pulls the model the roles resolve to (qwen3:4b-instruct-2507-q4_K_M by default), downloads embeddinggemma-2-Q8_0.gguf and mmproj-embeddinggemma-2-Q8_0.gguf into ~/.local/share/monkeygrab/models checking their sha256, runs tools/setup_environments.py and builds the frontend. It records what it created in ~/.local/state/monkeygrab/install-manifest.tsv (both locations can be moved, see tools/_common.sh): uninstall.sh removes exactly those entries (both venvs, node_modules and dist, the downloaded GGUFs, the Ollama models install.sh pulled itself, and the indices and caches the install produced), asks first unless given --yes, and leaves Ollama, its other models and anything that existed before the install alone. run.sh reuses a llama-server that already answers on the embedder's port and stops only the one it started.

The network is needed at run time too: the first indexing and the first query download the MinerU and BGE reranker weights from Hugging Face into its cache, which uninstall.sh leaves in place.

Manual steps (any platform)

Requires Python 3.10+, Ollama running locally with at least a generator model pulled, and the embeddinggemma-2 embedder behind a local llama-server — download embeddinggemma-2-Q8_0.gguf and mmproj-embeddinggemma-2-Q8_0.gguf from the Hugging Face repo ggml-org/embeddinggemma-2-GGUF and start it with llama-server -m embeddinggemma-2-Q8_0.gguf --mmproj mmproj-embeddinggemma-2-Q8_0.gguf --no-mmproj-offload --embedding --port 8091 -b 2048 -ub 2048 from llama.cpp, the default address of MONKEYGRAB_EMBEDDER_URL. Three things in that command matter. Without --mmproj the server cannot embed images, and indexing a PDF with a figure stops on HTTP 500 while USAR_EMBEDDINGS_IMAGEN is on (its default, issue #565). With the default 512-token physical batch a longer chunk is rejected with HTTP 500 and indexing stops (issue #487). --no-mmproj-offload keeps the image projector on the CPU: it only runs while indexing figures (1.5 s per image instead of 0.1 s), and the 740 MB it frees is what lets the generator, the reranker and the embedder stay on an 8 GB card together (issue #630). Drop PDFs into rag/docs/en/ — the index builds itself on first run.

Build the web interface once before the first run. Its dist/ folder is gitignored, so a fresh clone has none, and without it / answers 503. Then start the app with the .venv interpreter that tools/setup_environments.py builds (.venv\Scripts\python.exe on Windows):

(cd rag/web/frontend && pnpm install && pnpm run build)
.venv/bin/python rag/web/app.py      # web UI at http://localhost:5000

Headless service (for another application)

python -m rag.headless      # 127.0.0.1:5050; MONKEYGRAB_HEADLESS_PORT / _TOKEN in .env.example

No interface, no fixed stores: POST /stores/<id>/index and POST /stores/<id>/rag take the document folder and the data directory in the request, and /health says whether the full stack can run here (isolated environment, CUDA, embedder). An /index call syncs the store with the folder: new files are indexed and files no longer there are dropped (documents_removed); a folder that does not exist prunes nothing. The pipeline is the same one the web app and the evaluation gate run.

Every model role can run on Ollama (default) or on any server speaking the OpenAI chat API (MONKEYGRAB_<ROLE>_BACKEND=openai plus MONKEYGRAB_OPENAI_BASE_URL), which is how Daimon has MonkeyGrab answer with its own model. Text files (.txt, .md) index alongside PDFs.

Headless configuration is environment-only: it never reads the web UI's settings.json (only rag/web/app.py loads that file, at startup), so everything a headless process runs under comes from the environment — see .env.example — or else from the code defaults (src/monkeygrab/config/app_config.py). A model or flag picked in the web control panel does not carry over to python -m rag.headless.

Two consequences for operators (notably Daimon, which launches this service per project):

  • Pipeline flags (USAR_*) are bound from the environment. They default to on (figure descriptions excepted), and an explicit export wins for that process — so USAR_RERANKER=False in the headless process actually turns the reranker off. The 8 GB levers that work over env are therefore USAR_RERANKER=False (no BGE weights held at all), RERANKER_DEVICE=cpu (reranker off the GPU, slower per query) and OLLAMA_KEEP_ALIVE=0 (generator weights released instead of held in VRAM between calls).
  • Stores are pinned per process. The first request for a store id binds it to that request's (docs_folder, data_dir); reusing the id with different paths fails with 409 store_conflict, and a second index run while one is in flight fails with 409 index_in_progress instead of queuing.

Authentication is a bearer token: set MONKEYGRAB_HEADLESS_TOKEN and every request must carry Authorization: Bearer <token>; unset means no auth, on a socket that only ever binds 127.0.0.1 (MONKEYGRAB_HEADLESS_PORT, default 5050). Request bodies are capped at 1 MiB; a larger one is rejected before parsing with a JSON 413 payload_too_large. MONKEYGRAB_HEADLESS_ALLOWED_ROOTS (folders separated like PATH) limits where docs_folder and data_dir may point; symlinks are resolved and ~ is expanded, and anything outside gets 403 path_not_allowed. Unset or empty, any path is accepted. Set to only separators or spaces, it refuses every path and logs a warning at startup instead of silently disabling the check.

/health reports the checkout's git HEAD commit alongside the isolated interpreter, CUDA visibility, the embedder's liveness and the per-role backend/model. Daimon compares that commit against the revision it deployed (its pin_match): a mismatch means the running service is not the version Daimon expects — redeploy or re-pin, don't retry the query.

GET /health covers the isolated interpreter, CUDA visibility and the embedder, with the commit and the per-role backend/model as labels (rag/headless/health.py, probe). The embedder check is a GET <MONKEYGRAB_EMBEDDER_URL>/health with a 3 s timeout, using the same AppConfig URL the pipeline calls, so a stopped llama-server answers 503 with the embedder as the reason instead of an ok that only fails at the first /rag. What it does not cover is the generator: it never contacts the Ollama or OpenAI server, so a healthy /health says nothing about whether the model answers. Daimon should therefore treat the first rag_failed from POST /stores/<id>/rag as the generator signal (see the first-pull comment in rag/headless/app.py), not as a reason to reindex. The expensive checks (isolated interpreter, CUDA, commit, roles) are cached for 60 s (rag/headless/health.py:_PROBE_CACHE_TTL_SECONDS), keyed by role, backend and model, so polling never pays a torch/CUDA subprocess per request and a model switch re-probes immediately; concurrent polls that miss the cache wait for the probe already in flight instead of starting another. The embedder check runs on every call, so a server that stops or starts shows up on the next poll.

GET /stores/<id>/status reports stale:true when the index fingerprint on disk disagrees with the configuration in force (rag/headless/service.py:status_store, which calls index_fingerprint_mismatch). It means the indexed chunks were built under different chunking or embedding settings, or by another MinerU version (issue #426), not that documents are missing. POST /stores/<id>/index does not repair this: rag/headless/service.py:index_store only indexes new file names and drops removed ones. Recovery is: delete the store's directory under <data_dir>/vector_db/ (named <hash>_<folder>_eg2, the hash taken from the absolute docs_folder, so two folders with the same name never share an index) and re-run POST /stores/<id>/index for a full run.

Install, models and configuration

Dependencies are in rag/requirements.txt (core) and rag/web/requirements.txt (web UI). Pull the Ollama models selected in your configuration. The reranker downloads itself on first use.

MinerU does not run in that environment: its dependencies collide with the product's, so it is installed into one isolated interpreter at .venv-mineru/Scripts/python.exe (Windows) or .venv-mineru/bin/python (Linux/Mac), at the project root, following the project's own install instructions.

[!NOTE] MinerU downloads its extraction models on first use. That is what MINERU_MODEL_SOURCE=huggingface, the default, does; it reuses them afterwards. Set local only for an air-gapped install, and note it means "read paths from a local models config file" in MinerU 3.x rather than "reuse the HuggingFace cache" as it did in 2.x — it was the default until issue #118, where it turned out to extract nothing on a fresh install. MinerU also names its output directory after the backend that ran (hybrid_auto/ rather than 2.x's auto/) — the adapter finds it either way. See src/monkeygrab/README.md for how the isolation is used.

Both environments can be built and verified in one command:

python tools/setup_environments.py            # build .venv and .venv-mineru, then check
python tools/setup_environments.py --check    # verify only: is this machine set up?

--check reports each component separately — both interpreters, CUDA visible to the isolated one, the MinerU binary, the embedder's /health, and which configured Ollama models are missing. The embedder and Ollama are prerequisites the script does not build, so their absence is a warning rather than a setup failure. It never pulls models: that is gigabytes over your connection. Teardown is rm -rf .venv .venv-mineru.

Copy .env.example to .env at the project root; it documents every supported variable with its default. The shell environment always wins over the file. DOCS_FOLDER sets the corpus, and OLLAMA_BASE_URL the Ollama server — point it at another machine and every call follows, generation included, which is the way out when the local card cannot hold the generator you want.

The model roles, pipeline toggles and active store you pick in the web UI are saved to settings.json in the data directory: one configuration per machine. The precedence is environment, then saved choices, then defaults, so an exported OLLAMA_*_MODEL or DOCS_FOLDER still describes the run you are starting. That override does not overwrite the saved choice: unset the variable and the UI pick is still there.

OLLAMA_KEEP_ALIVE keeps the generator's weights in VRAM for that many seconds after each call, since loading them back is most of a query's latency — on a small or shared GPU that also means the model squats on VRAM for that long afterward, so lower it (or set it to 0) there. OLLAMA_GENERATION_DEADLINE caps one generation call in seconds of wall clock and is off (0) by default: the request timeout never trips on a model that keeps producing tokens, so this is the only bound on a generator that does not stop.

Each corpus has its own FAISS index per embedder under rag/vector_db/. The web interface detects when a stored index no longer matches the active chunking, extraction or index-time flags and warns about it, but never reindexes on its own — a settings change must not silently trigger a MinerU + embedding pass over the corpus, which can take an hour. Use the web UI's reindex action explicitly to rebuild after changing the corpus, extraction behaviour or chunking rules. This detection needs an index built with this feature present: an index built by an older version has no recorded recipe to compare against and is never flagged, however much its actual recipe may have drifted.

What stays on disk. Nothing leaves the machine, but two things accumulate in the data directory (MONKEYGRAB_DATA_DIR; the repository's rag/ in a checkout) without rotation or a size limit. In the packaged desktop app the three document stores also live there, under docs/: the bundled corpora are copied on first start and then belong to the user, so uploads and deletions never touch the read-only install.

  • debug_rag/: one dump per RAG query with the question, the full context sent to the model and its answer. Off by default since it keeps your documents' text and questions in plain files; GUARDAR_DEBUG_RAG=True turns it on. Delete the folder to clear it.
  • historial_chat.json: every chat-mode turn, reused as context for the next answer. The UI's clear-conversation button empties it; there is no switch to stop writing it.

Both hold your documents' text and your questions in plain files, so treat the data directory like the documents themselves (issue #399).

Interfaces

The web UI provides document upload, per-role model assignment, pipeline toggles, an inline PDF viewer that opens cited sources at the right page, and a Study panel with three structured artifacts. Pick a document, then pick one:

artifact what you get
summary titled sections, with the pages behind them
outline the heading tree, indented, no prose
quiz multiple-choice questions with their answer key

The artifact comes back in the interface language whatever the document's own language is. Quiz answers stay hidden until you ask for them, so the panel can be used to test yourself rather than just to read.

The quiz is deliberately the strictest of the three: a question whose answer key cannot be verified is dropped rather than repaired, and if none survive you get an error instead of a quiz. A wrong key is the one failure here that would not look like one. Ollama is started automatically if it is installed but not running. Three fixed language stores — English, Castellano, Valencià — map to rag/docs/{en,es,ca}/. Each holds 17 documents, but a fresh clone carries only the handful committed before the corpus grew: the rest are described in rag/docs/corpus_manifest.json and fetched once with

python tools/fetch_corpus.py       # --check reports what is missing without downloading

Treat them as demo content and replace them with your own PDFs; the evaluation gate is the one thing that needs all 17.

The desktop app wraps the web interface in a Windows executable with PyInstaller and pywebview. It needs the isolated MinerU runtime (.venv-mineru) beside the executable; without it, indexing and retrieval fail visibly. See packaging/README.md.


Known limitations

Warning

  • Vector graphics (SVG figures) embedded in PDFs are not extracted.
  • Structured extraction is not perfect. MinerU preserves tables and separates figures, but complex layouts, mathematical notation and unusual PDFs can still be misread.
  • The reranker downloads its model on first use, a one-time step that needs internet. Everything after runs offline; turn reranking off if you need a fully air-gapped first run.
  • Optional stages fail loudly. If an enabled stage cannot run, the query raises instead of silently returning worse results. Turn the stage off to proceed without it.
  • Indexing cost grows with corpus size, contextual enrichment and the number of extracted images.

Development

Two gates, deliberately not one. The fast gate (ci.yml) runs on every pull request: lint, the architecture dependency rules, the unit suite against test doubles, and the frontend build, with no GPU, no models and no network. The full gate executes the real pipeline against a corpus of hand-verified gold cases and fails if the pass rate drops below the recorded baseline. It runs locally on a GPU machine with Ollama, not in CI: no hosted runner has a GPU, and no self-hosted runner is registered for this repository, so full-eval.yml cannot run. It is required before merging anything that touches retrieval or generation, and before each release, because the fast gate never exercises a real model. Whoever merges or releases puts the run id in the PR.

pytest                                              # full suite, no GPU required
python tests/eval/run_eval.py --models <model...>   # full gate; needs Ollama + GPU
python -m harness.cli --dry-run --max-iterations 3  # config-search wiring; see harness/README.md

Tests are split by what they protect: tests/unit/ for the pure layers and the adapters, tests/characterization/ to pin observed pipeline behaviour, and tests/eval/ for the gold-case gate. Contributor rules are in CONTRIBUTING.md; the operating contract for humans and agents alike is AGENTS.md.


Standards

How to work in this repo:


Acknowledgements

MonkeyGrab is built on external open-source projects and openly available models. Thank you to the teams behind MinerU, embeddinggemma-2, FAISS and BGE/FlagEmbedding for making this multimodal stack possible. The project also relies on Ollama, rank-bm25, Flask and React.


License

MIT © Ignacio Diago Valeta.

About

MonkeyGrab: a local, multilingual (ES/CA/EN) RAG system for PDFs. MinerU parsing, hybrid BM25 + FAISS retrieval with cross-encoder reranking, and generation with open models via Ollama. Flask + React web app and Windows desktop build; no data leaves your machine.

Topics

Resources

Contributing

Security policy

Stars

16 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages