Skip to content

Build Applications ​

kompile build app generates a complete Maven project with your selected modules, downloads required ML models, and compiles the application.

Usage ​

bash
# Interactive wizard
kompile build app --wizard

# From a preset
kompile build app --configName=myapp --preset=hosted-llm-rag

# Fine-tune modules
kompile build app --configName=myapp \
  --preset=full \
  --exclude=graph-neo4j,ocr \
  --llm=anthropic \
  --embedding=anserini \
  --vectorstore=pgvector \
  --native                    # Compile to GraalVM native image
  --container                 # Or build an OCI container (Jib, no Docker needed)

The generated project lives at kompile-rag-builds/<configName>/project/.

Presets ​

PresetIncludesAPI keys needed?
hosted-llm-ragOpenAI LLM + Anserini embeddings + PDF loaderYes (OpenAI)
cli-agent-ragCLI agent (Claude/Codex) + Anserini + filesystem toolsNo
samediff-ragFully local -- SameDiff embeddings, no hosted LLMNo
liteSelf-contained chat + RAG + Graph RAG, minimal footprintNo
fullAll LLMs, embeddings, vector stores, OCR, crawler, graph, trainingMixed
pipelinePipeline executor only (SameDiff, ONNX, Python steps)No
minimalOpenAI embeddings + OpenAI LLM + Anserini vector storeYes (OpenAI)

Output structure ​

kompile-rag-builds/myapp/project/
  kompile.project.json            # Project manifest (auto-generated)
  pom.xml                         # Maven POM with your selected modules
  src/main/resources/
    application.properties        # Structural config (ports, paths, provider flags)
  scripts/
    start-all.sh                  # Starts staging -> serving -> admin -> chat -> crawl manager
    stop-all.sh
    start-app.sh
    start-chat.sh
    start-crawl-manager.sh
    start-serving.sh
    start-staging.sh
  data/
    input_documents/              # Drop documents here
    models/                       # Model artifacts
    indices/                      # Built during ingestion
    prompt-templates/             # Pre-seeded templates
  target/
    myapp-0.1.0-SNAPSHOT-exec.jar # The compiled application

Building a distribution ​

bash
kompile build dist

Builds all five binaries (CLI, admin server, chat, crawl manager, and model staging) into a distribution tarball for deployment.

Released under the Apache-2.0 License.