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
- 参考文档references/configuration.md6.9 KB
- 参考文档references/deployment.md5.4 KB
- 参考文档references/troubleshooting.md7.6 KB
- 脚本scripts/check_app_config.py9.5 KB
- 脚本scripts/inspect_chroma_migration_inputs.py7.3 KB
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
kotaemonRAG 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
- Pick the deployment mode using
references/deployment.md: Docker for isolated operator use, localuv/conda for source/developer installs, Hugging Face duplicate Space for online installs. - Check runtime configuration with
references/configuration.mdand runpython scripts/check_app_config.py --env-file .env --repo-root .from a Kotaemon checkout or copied deployment directory. - For first-run issues, login/resource visibility, PDF viewer problems, data directory permissions, updates, or migrations, follow
references/troubleshooting.md. - Before any Chroma metadata migration, run
python scripts/inspect_chroma_migration_inputs.py --chroma-dir <vectorstore-dir> --sqlite-uri sqlite:///<sql.db>and back upktem_app_databefore 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
.envas 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.envand 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
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.
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.
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.
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.
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.
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).