GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - emincb/civilization_node: Offline Survival AI & Knowledge Base. Run air-gapped LLMs (Ollama) connected to Wikipedia, iFixit, and StackOverflow via Kiwix. A complete digital prepper system for rebuilding civilization without internet.

BranchesTags
Open more actions menu

Latest commit

 

History

17 Commits
17 Commits

Folders and files

NameName
Last commit message
Last commit date
assets
assets
 
 
bin
bin
 
 
maintenance
maintenance
 
 
tools
tools
 
 
.env.example
.env.example
 
 
.gitignore
.gitignore
 
 
DEPLOYMENT_GUIDE.md
DEPLOYMENT_GUIDE.md
 
 
KIWIX_INTEGRATION_GUIDE.md
KIWIX_INTEGRATION_GUIDE.md
 
 
LICENSE
LICENSE
 
 
Modelfile.survival
Modelfile.survival
 
 
OPERATIONS_RUNBOOK.md
OPERATIONS_RUNBOOK.md
 
 
ORGANIZATION_MANUAL.md
ORGANIZATION_MANUAL.md
 
 
RAG_MANUAL.md
RAG_MANUAL.md
 
 
README.md
README.md
 
 
build_in_docker.sh
build_in_docker.sh
 
 
civ_ingest.sh
civ_ingest.sh
 
 
civ_maintenance.sh
civ_maintenance.sh
 
 
docker-compose.yml
docker-compose.yml
 
 
download_content.py
download_content.py
 
 
kiwix_tool.py
kiwix_tool.py
 
 
manage_vectordb.sh
manage_vectordb.sh
 
 
rag_setup.sh
rag_setup.sh
 
 
requirements.txt
requirements.txt
 
 
setup_env.sh
setup_env.sh
 
 
test_rag_pipeline.sh
test_rag_pipeline.sh
 
 
test_rust_tools.sh
test_rust_tools.sh
 
 
verify_deployment.sh
verify_deployment.sh
 
 

Repository files navigation

Civilization Node

Offline Knowledge Retrieval & LLM Interface

Civilization Node Demo

civilization_node is a self-hosted, offline-first application that integrates a local LLM inference engine with large-scale static knowledge bases (Wikipedia, StackOverflow, iFixit).

It leverages Retrieval Augmented Generation (RAG) to ground LLM responses in verifiable data stored in local ZIM archives, enabling high-fidelity technical assistance without an internet connection.

Designed for air-gapped environments, digital preservation, and off-grid reliability.

Architecture

The system is composed of three primary components:

  • Inference Engine: Ollama running dolphin-llama3 (customized via Modelfile) for query processing and reasoning.
  • Knowledge Base: Kiwix tools reading compressed ZIM archives (e.g., wikipedia_en_all_nopic.zim).
  • Interface: Open WebUI serving as the frontend and orchestration layer.

System Requirements

Component Specification
OS Linux (Ubuntu 22.04+ recommended) or WSL2 (Windows)
RAM 12GB Minimum (16GB+ Recommended to prevent OOM kills)
Storage 100GB+ (Dependent on selected ZIM archives)
GPU Optional. CPU inference works but is slower.

Installation

1. Dependencies

Ensure docker and docker compose are installed.

# Verify installation
docker compose version

2. LLM Backend Setup (Ollama)

Install Ollama and configure it to bind to 0.0.0.0 so the Docker container can access it.

# Install
curl -fsSL https://ollama.com/install.sh | sh

# Configure systemd override for network binding
sudo mkdir -p /etc/systemd/system/ollama.service.d
echo '[Service]
Environment="OLLAMA_HOST=0.0.0.0"' | sudo tee /etc/systemd/system/ollama.service.d/override.conf

# Reload and restart
sudo systemctl daemon-reload
sudo systemctl restart ollama

3. Model Provisioning

Pull the base model and create the custom system-prompt configuration.

# Pull base model
ollama pull dolphin-llama3

# Build the custom "Librarian" model
ollama create survival-librarian -f Modelfile.survival

# Pull embedding model for RAG (optional usage)
ollama pull nomic-embed-text

4. Application Deployment

Clone the repository and initialize the environment.

# Initialize directories and environment variables
cp .env.example .env
./setup_env.sh

# Start the application stack
docker compose up -d

Data Management

The system relies on ZIM archives. Use the included utility script to download them ensuring they are placed in the correct volume path.

./maintenance/list_available_content.sh

Recommended Archives:

  • wikipedia_en_all_nopic: General encyclopedia.
  • ifixit_en_all: Repair manuals.
  • stackoverflow.com_en_all: Technical Q&A.

Configuration

Activating the Kiwix Tool

The LLM requires the Python tool definition to query the ZIM files.

  1. Navigate to http://localhost:3000.
  2. Go to Workspace > Tools > Create Tool.
  3. Copy the content of kiwix_tool.py into the editor.
  4. Save as "Kiwix".
  5. Enable the tool in your Chat Settings when starting a new session.

Troubleshooting

Connection Refused: Ensure Ollama is running and listening on all interfaces. Check status:

systemctl status ollama
netstat -tulpn | grep 11434

ZIM Read Errors: Corrupt downloads can crash the reader. Verify checksums or delete the latest file in /opt/civilization/library/zims.

About

Offline Survival AI & Knowledge Base. Run air-gapped LLMs (Ollama) connected to Wikipedia, iFixit, and StackOverflow via Kiwix. A complete digital prepper system for rebuilding civilization without internet.

Topics

civilization-rebuildingdigital-preservationkiwixllmoffline-aiollamapost-apocalypticprepperragself-hostedsurvival-techwikipedia-offline

Resources

Readme
MIT license
Activity

Stars

8 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.