界面已本地化;技能介绍与说明文档按所选语言由 AI 自动翻译,代码、命令、路径和专业术语保留原文,以原作者文档为准。
探索技能
部署与运维 · SKILL.md

serving-deployment

serving-deployment

【部署与运维】Serve text2vec embeddings and similarity workflows through FastAPI, Jina, or Gradio with explicit request, response, and lifecycle guidance.

独立 GitHub 快照 · 自动分类 · 以原作者文档为准

技能说明

GitHub

name: serving-deployment description: "Serve text2vec embeddings and similarity workflows through FastAPI, Jina, or Gradio with explicit request, response, and lifecycle guidance." disable-model-invocation: true metadata: disco-role: operating license: Apache 2.0

serving-deployment

Use this sub-skill when you need to expose text2vec inference as a service, integration endpoint, or lightweight UI.

Covers

  • FastAPI embedding endpoints with POST /emb.
  • Jina server/client patterns and hub/network caveats.
  • Gradio demo UIs for manual inspection, not production defaults.
  • Service-layer composition around embeddings and similarity-search.

Route elsewhere

  • Batch CLI encoding from files -> embeddings.
  • Pair scoring, vector search, or BM25 ranking -> similarity-search.
  • Training or fine-tuning a serving model -> training-finetuning.
  • Benchmarking model quality -> evaluation-benchmarks.

Bundled assets

Quick use

  1. Read references/serving-workflows.md for endpoint shapes and deployment choices.
  2. Use scripts/fastapi_app_template.py as the safe FastAPI scaffold.
  3. Check references/troubleshooting.md for optional deps, lazy model loading, host/port binding, CORS, GPU memory, and forever-server issues.

What this sub-skill does not do

  • It does not define model training commands.
  • It does not implement batch embedding file pipelines.
  • It does not evaluate benchmarks or compare leaderboard scores.
我的收藏