SLAP documentation

Quick start

A fully offline AI assistant with document search for organizations that cannot send their information to public AI services.

Penn State College of Engineering senior capstone, Fall 2026. Sponsor: Matthew Zerphy. Team SLAP.

Nothing leaves the machine it runs on. The inference engine, the vector database, the document reader and the web application have no route to the internet at all - not disabled by configuration, but sealed by the container runtime. You can prove it in one command.


What you get#

Requirements#

Quick start (machine with internet)#

git clone <this-repo>
cd CapstoneLocalAI
./start_mvp.sh --online

--online is what temporarily lets Ollama download the models. Without it the platform starts sealed and downloads nothing. The script pulls the models, then removes the network access and restarts sealed in the same run.

Then open http://localhost:8080 and create an account. The first account created becomes the administrator.

Windows: .\start_mvp.ps1 --online, or run the .sh from Git Bash.

Immediately after that#

Add everyone else in Admin Panel > Users. Signup is closed by default (ENABLE_SIGNUP=false, D-20), so nobody else can register. An install whose .env predates D-20 may still say ENABLE_SIGNUP=true: set it to false and re-run ./start_mvp.sh. See docs/DECISIONS.md D-06.

Air-gapped install#

The real deliverable. Build a bundle on a connected machine, carry it over on a flash drive, install on a machine with no network.

# On the connected machine
./scripts/build_bundle.sh /media/usb/slap     # ~10 GB

# Optional: put extra .gguf model files in the bundle's models/ folder

# On the air-gapped machine, from the bundle folder
bash install.sh

Models can also be added later from any folder of .gguf files, or, where a site allows it, through a timed download window in the admin panel. See docs/setup/README.md.

Full procedure, including what the target machine needs beforehand: docs/DEPLOYMENT.md.

Prove it is offline#

./scripts/verify_offline.sh

This does not read the config and trust it. It attempts real outbound connections from inside each Docker network and reports what happened.

Everyday use#

./start_mvp.sh                 # start (safe to re-run; this applies config changes)
./stop_mvp.sh                  # stop, all data preserved
./scripts/import_models.sh     # add .gguf models from ./models, no network
./scripts/import_models.sh /media/usb/models   # ...or from any folder
./start_mvp.sh --window        # 30-minute download window, then re-seal
docker compose logs -f         # see what the services are doing
docker compose ps              # check health

Architecture#

              routable            sealed          sealed         sealed
Browser --> [ nginx ] --------> [ open-webui ] --+--> [ qdrant  ]  ai_data
             ai_public            ai_ui           +--> [ tika    ]  ai_data
                                                  \-> [ ollama  ]  ai_infer
Service Role
nginx Single front door. The only container on a routable network.
Open WebUI Everything the user sees: login, upload, chat.
Ollama Runs the language model.
Qdrant Vector database holding document embeddings.
Tika Reads the text out of uploaded files, with OCR for scans.

Only nginx can reach a routable network, because a published port does not work on a sealed one - we tested that rather than assuming it. nginx is a passive proxy that never initiates outbound connections. Everything behind it is sealed. Details and the residual gap in docs/DECISIONS.md D-11.

Serving other people on the network#

Default binding is loopback: reachable only from the machine it runs on. To serve a LAN, set HTTP_BIND=0.0.0.0 in .env and re-run.

Do this only after closing signup. Traffic is unencrypted HTTP - TLS is deliberately not built yet, see docs/SCOPE.md NB-03.

Project documentation#

File Contents
docs/ARCHITECTURE.md How the system is built and why, with diagrams
docs/user-guide/ Step-by-step guide for people using the chat, with screenshots
docs/setup/README.md Step-by-step setup guide with screenshots, and tested versions
docs/sizing/README.md Which hardware and models, and how many people at once
docs/sizing/hardware-chart.md Machine, model and people at once, laptop to GPU server (estimates)
docs/DEPLOYMENT.md Connected install and the air-gapped flash-drive procedure
docs/REQUIREMENTS.md Sponsor must-haves and stretch goals with current status
docs/DECISIONS.md Every architectural choice and what it costs (D-01..D-21)
docs/TEAM_DECISIONS.md Decisions the project lead made and what they overrode (T-01..)
docs/SCOPE.md What is deliberately not built, and what must be decided first
docs/TODO.md Working task list, each item tied to a requirement
models/README.md Adding model files, and which size to pick
eval/README.md Ground-truth question set and the retrieval evaluation script
docs/SECURITY-EXPORT-CHECKLIST.md Offline and export-control checklist, run Dec 1, 2026
THIRD_PARTY_NOTICES.md Licence and source of every component and model
docs/AI_USAGE.md How AI tools were used on this project
CLAUDE.md Context for AI assistants working in this repo

Status#

Air-gap path is built. The team reports that a USB install with no internet has been run (confirmed by the team, Dec 1, 2026); the date, the machines and the results are not yet written down. Backup and restore were tested on one machine on Dec 1, 2026. Security posture is designed and partially verifiable, not independently assessed - see docs/SCOPE.md NB-06. Read docs/REQUIREMENTS.md for the honest per-requirement status rather than trusting this paragraph.

Source: README.md in the CapstoneLocalAI repository (local working copy). Built Dec 3, 2026.