open-assistant
Use Open-Assistant repository guidance for backend task APIs, OA JSONL data utilities, Next.js contribution/chat UI, and local inference services.
- License 许可
- Apache-2.0
- 最近更新
- 2026-10-08
- Stars
- ★ 11
- Forks
- 3
01 前言 Front Matter
- name
- open-assistant
- license
- Apache 2.0
- metadata
- { "disco-role": "operating" }
- description
- Use Open-Assistant repository guidance for backend task APIs, OA JSONL data utilities, Next.js contribution/chat UI, and local inference services.
- disable-model-invocation
- true
02 资源文件 4
- 参考文档references/repo-provenance.md3.8 KB
- 参考文档references/repo-routing-metadata.json568 B
- 参考文档references/setup-and-architecture.md7.3 KB
- 参考文档references/troubleshooting.md5.4 KB
03 SKILL.md 正文
Open-Assistant repo skill
Use this repo skill when a task involves the LAION Open-Assistant repository: data-collection backend APIs, shared protocol schemas, OA JSONL exports, the Next.js website/task UI, or the local inference server/worker/chat stack. The upstream project is completed, so prefer targeted maintenance, debugging, local development, and data/inference workflow support over broad product-roadmap changes.
First decisions
-
Check staleness: read
references/repo-provenance.mdbefore assuming this skill matches a checkout. If the commit, package versions, service layout, or major evidence paths changed, runrefresh-repo-skill. -
Orient in the repo: read
references/setup-and-architecture.mdfor the selected source scope, Docker profiles, service boundaries, and excluded heavy areas. -
Review managed routing: inspect
references/repo-routing-metadata.jsonwhen you need the structured scenario metadata that keeps repo-skills-router placement aligned with this skill. -
Diagnose shared failures: read
references/troubleshooting.mdfor cross-cutting Docker, Python, Node, secrets, and boundary-handoff issues. -
Run a safe layout check when a checkout is available:
python scripts/check_open_assistant_stack.py --repo-root <repo-root>
Setup at a glance
Use the smallest stack that matches the task:
- Backend and OA data utilities:
python -m pip install -r backend/requirements.txtfollowed bypython -m pip install -e 'oasst-shared[dev]' -e 'oasst-data[dev]'. - Website work: from
website/, runnpm cibeforenpm run lint,npm run typecheck, or Jest/Cypress checks. - Inference server/worker inspection:
python -m pip install -r inference/server/requirements.txtfor server imports and lightweight route checks. Keep_loremfor CPU-only plumbing checks before any real model config. - Full local stack debugging: use the Docker compose profile that matches the layer you are touching rather than starting every service.
Minimal verification once a checkout is available:
python scripts/check_open_assistant_stack.py --repo-root <repo-root>
Route by task
| User intent | Go to | Why |
|---|---|---|
FastAPI backend, task lifecycle, /api/v1/tasks, messages/users/stats/text labels, backend settings, DB export/import, shared Python API client, or backend errors |
sub-skills/backend/SKILL.md |
Owns backend API semantics, oasst_shared protocol models, oasst_data, and safe OA JSONL tooling. |
| OA JSONL files, message trees, flatten/filter/split operations, backend exports, data schema validation | sub-skills/backend/SKILL.md |
Owns bundled oasst_jsonl_tool.py and data-format reference. |
| Next.js website, contribution task pages, label/rank/reply UI, frontend API client, chat UI, Prisma, NextAuth, Jest, Cypress, Storybook, feature flags, or localization | sub-skills/website/SKILL.md |
Owns browser/Next layer, website package scripts, UI route maps, tests, and locale helpers. |
Inference FastAPI server, websocket workers, text client, _lorem/distilgpt2 smoke paths, model config names, SSE chat events, plugins, safety server, GPU sizing/OOM |
sub-skills/inference/SKILL.md |
Owns inference services, model registry, worker protocol, and generation troubleshooting. |
| Docker profile confusion, local stack selection, service boundaries, or whether a task crosses backend/website/inference | references/setup-and-architecture.md |
Summarizes profiles, service ownership, and handoff boundaries. |
Safe bundled scripts
scripts/check_open_assistant_stack.py: read-only repo layout/package/profile checker.- Backend helper scripts:
- Website helper scripts:
- Inference helper script:
Scripts that accept --repo-root are intended for a user's current checkout, not for this skill's original construction checkout.
Scope boundaries
Included in this generated skill:
- Backend REST API, settings, task lifecycle, DB export/import semantics, shared Python schemas/API client, and
oasst_dataJSONL utilities. - Website local dev, task UI, chat UI integration, frontend API client behavior, tests, Prisma, feature flags, and localization.
- Inference server/worker/text-client/safety stack, model config registry, worker websocket protocol, SSE events, plugin parsing, and GPU sizing guidance.
Excluded from this generated skill run:
model/training, reward modeling, RLHF, evaluation, pretokenization, and large-model export tools. These require a separate model-training extension because they involve heavytorch/DeepSpeed/FlashAttention/model/dataset/GPU dependencies.- Production deployment, Ansible, infrastructure operations, and credentials-bound systems.
- Exploratory notebooks and historical analysis artifacts.
- Docusaurus docs-site maintenance except where it informs setup boundaries.
Operating cautions
- Do not start Docker services, download model weights, run GPU workers, call Hugging Face APIs, mutate databases, or run production/infrastructure scripts unless the user explicitly asks and accepts resource, credential, and rollback requirements.
- Keep backend, website, and inference symptoms separate. Report the exact failing layer, command/route, status/body, and environment signals when routing to another sub-skill.
- Use
_loremfor no-download inference plumbing checks before attempting real model configurations. - Use safe JSONL file helpers before any DB import/export workflow. Real DB import is mutating unless a dry-run rollback is explicitly selected.
04 同仓库更多 Skills
obsidian-clipper-template-creator
Guide for creating templates for the Obsidian Web Clipper. Use when you want to create a new clipping template, understand available variables, or format clipped content.
obsidian-clipper-template-creator
Guide for creating templates for the Obsidian Web Clipper. Use when you want to create a new clipping template, understand available variables, or format clipped content.
python-api
Programmatic Object-Detection-Metrics API guidance for BoundingBox, BoundingBoxes, Evaluator, enums, coordinate conversion, AP/mAP semantics, and source-style import diagnostics.
file-evaluation
Folder-based PASCAL VOC AP/mAP evaluation from ground-truth and detection text files.
object-detection-metrics
Guides legacy Object-Detection-Metrics PASCAL VOC AP/mAP evaluation from detection text folders and direct Python API classes.
nx-workspace-patterns
Configure and optimize Nx monorepo workspaces. Use when setting up Nx, configuring project boundaries, optimizing build caching, or implementing affected commands.