AGENT SKILL

app-deployment

Install, launch, configure, and troubleshoot the Kotaemon Gradio app for document QA users and operators.

License 许可
Apache-2.0
最近更新
2026-09-03
Stars
★ 351
Forks
27

01 前言 Front Matter

name
app-deployment
license
Apache 2.0
metadata
{ "disco-role": "operating" }
description
Install, launch, configure, and troubleshoot the Kotaemon Gradio app for document QA users and operators.
disable-model-invocation
true

02 资源文件 5

03 SKILL.md 正文

Kotaemon App Deployment

Use this sub-skill when the task is to get the Kotaemon Gradio application running, diagnose its runtime configuration, prepare a safe update or data migration, or explain the operator-facing UI for document QA.

Route here for

  • Docker vs local installation decisions, including uv, conda, editable installs, and release-style launch scripts.
  • .env, flowsettings.py, settings.yaml.example, Gradio, first setup, login, app-data, PDF.js, and Resources/Settings tab behavior.
  • Safe diagnostics before launch, update, or Chroma migration; use the bundled scripts instead of running app/update/migration scripts blindly.
  • Operator troubleshooting for missing credentials, placeholder model defaults, local-provider URLs, data permissions, optional parsers/providers, PDF viewer assets, and broad dependency installs.

Do not use this for

  • Custom component, plugin, page, or flow authoring; use ../extensions/SKILL.md.
  • Low-level kotaemon RAG APIs, indexes, retrieval, document objects, or QA pipelines; use ../rag-core/SKILL.md.
  • Provider-specific model tuning, GraphRAG details, local model server tuning, or credential semantics beyond app deployment checks; use ../model-providers/SKILL.md.

Fast workflow

  1. Pick the deployment mode using references/deployment.md: Docker for isolated operator use, local uv/conda for source/developer installs, Hugging Face duplicate Space for online installs.
  2. Check runtime configuration with references/configuration.md and run python scripts/check_app_config.py --env-file .env --repo-root . from a Kotaemon checkout or copied deployment directory.
  3. For first-run issues, login/resource visibility, PDF viewer problems, data directory permissions, updates, or migrations, follow references/troubleshooting.md.
  4. Before any Chroma metadata migration, run python scripts/inspect_chroma_migration_inputs.py --chroma-dir <vectorstore-dir> --sqlite-uri sqlite:///<sql.db> and back up ktem_app_data before mutating anything with external migration code.

Safety rules

  • Do not start python app.py, run Docker, execute release scripts, download PDF.js, update packages, pull local models, or mutate Chroma/SQLite data unless the user explicitly approves side effects.
  • Treat .env as a first-run seeding mechanism for models/credentials; after the app database exists, Resources and Settings UI entries may override what the file originally seeded.
  • Never print secrets. The bundled config script reports whether key-like values are missing or placeholders, not the values themselves.
  • Back up ktem_app_data/ before update or migration work; it contains user uploads, SQLite state, vector/doc stores, caches, and model cache directories.

Bundled references

  • references/deployment.md - install modes, launch choices, data directory, PDF.js, Docker/local/HF notes.
  • references/configuration.md - .env, flowsettings.py, app settings/resources tabs, first setup/login, Gradio settings.
  • references/troubleshooting.md - diagnostic decision tree, safe update/migration cautions, common failure modes.

Bundled scripts

  • scripts/check_app_config.py - read-only .env and PDF.js/app-data diagnostic; never starts Kotaemon.
  • scripts/inspect_chroma_migration_inputs.py - read-only Chroma/SQLite migration preflight; never updates collections or SQL rows.

04 同仓库更多 Skills

VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-triton-opt

Make a single PassNet Triton kernel fast AND numerically faithful: performance model (when a replacement can win at all), block/grid/warp tuning, autotune policy, launch overhead, and per-op numeric recipes to pass the dtype baseline tolerances. Use when a pass matches and is correct but speedup below expected, or when correctness fails by small numeric margins.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-solve

END-TO-END playbook for solving one PassNet sample: analyze the computation graphs, decide the optimization strategy (what to fuse, what to replace, what to leave alone), drive the iteration loop, and maximize the sample score. This is the ENTRY skill — invoke it first for any PassNet optimization task; it tells you when to use passnet-pattern-fusion, passnet-triton-opt and passnet-feedback.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-skill

PassNet GPU kernel optimization via compiler passes. Design and implement Triton-based optimization passes, create pass files under ./pass_dir/, self-evaluate with pass_evaluator, and iterate to maximize GPU speedup.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-pattern-fusion

Author PassNet pass files: write patterns that actually MATCH the FX graph, pick fusion regions (which ops to absorb into one Triton kernel), and structure multi-pass submissions with the mandatory shared-dispatch architecture. Use when creating or fixing pattern()/replacement_args()/replacement_func() files, when a pass "failed to match", or when deciding how to fuse multiple kernels/ops.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-orchestrate

Round/batch planning and decision support for PassNet graph optimization. Use for multi-sample triage, worker allocation, eval-budget policy, and post-eval keep/revert decisions. For solving one concrete sample end to end, use passnet-solve as the entry skill; consult this skill only when you need broader planning or a specific decision gate.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-feedback

Fast, deterministic feedback for PassNet work: pre-flight pattern/match verification WITHOUT burning a GPU evaluation, per-node bottleneck analysis of a sample's graphs, and eval-log parsing into per-variant status + estimated score + failure classification. Use BEFORE every GPU evaluation (check_pattern), at the START of a sample (analyze_graph), and AFTER every evaluation (parse_eval_log).

★ 351