본문으로 건너뛰기
cccskills
무료GitHub에 공개

flag-embedding

Use FlagEmbedding for embedding, reranking, retrieval evaluation, and fine-tuning workflows.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

설치 방법 보기

포함된 파일(22)

  • SKILL.md4.2 KB
  • references/model-overview.md3.8 KB
  • references/repo-provenance.md2.0 KB
  • references/repo-routing-metadata.json511 B
  • references/troubleshooting.md4.7 KB
  • scripts/check_flag_embedding_env.py4.8 KB
  • sub-skills/evaluation/references/cli-reference.md11.2 KB
  • sub-skills/evaluation/references/data-formats.md4.4 KB
  • sub-skills/evaluation/references/troubleshooting.md4.8 KB
  • sub-skills/evaluation/scripts/create_tiny_retrieval_dataset.py3.3 KB
  • sub-skills/evaluation/SKILL.md3.5 KB
  • sub-skills/fine-tuning/references/data-formats.md8.1 KB
  • sub-skills/fine-tuning/references/training-commands.md15.8 KB
  • sub-skills/fine-tuning/references/troubleshooting.md6.1 KB
  • sub-skills/fine-tuning/scripts/split_jsonl_by_text_length.py7.9 KB
  • sub-skills/fine-tuning/scripts/validate_train_jsonl.py7.7 KB
  • sub-skills/fine-tuning/SKILL.md2.1 KB
  • sub-skills/inference/references/api-reference.md10.2 KB
  • sub-skills/inference/references/troubleshooting.md6.6 KB
  • sub-skills/inference/references/workflows.md13.5 KB
  • sub-skills/inference/scripts/smoke_inference_api.py14.1 KB
  • sub-skills/inference/SKILL.md7.8 KB

SKILL.md(원문)

설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.

FlagEmbedding

Use this repo skill when a task involves FlagEmbedding, BGE embedding models, BGE-M3 dense/sparse/ColBERT retrieval, BGE rerankers, retrieval evaluation, or FlagEmbedding fine-tuning data and launch commands.

Read references/repo-provenance.md when checking whether this skill matches a current checkout or package version. Read references/model-overview.md when choosing model families or deciding whether automatic model routing is likely to work. Read references/troubleshooting.md for install/import, optional dependency, backend, model-cache, and remote-code problems.

Install And Import

Base package install:

python -m pip install -U FlagEmbedding

Fine-tuning extras:

python -m pip install -U "FlagEmbedding[finetune]"

Evaluation workflows also need retrieval metric/index dependencies that are not always installed by the base package metadata:

python -m pip install faiss-cpu pytrec_eval

Use GPU-specific FAISS, CUDA PyTorch, DeepSpeed, or flash-attn only after the runtime backend is deliberately prepared. Do not treat a CPU import as proof of GPU training or flash-attn compatibility.

Minimal import check:

python - <<'PY'
from FlagEmbedding import FlagAutoModel, FlagAutoReranker
print(FlagAutoModel, FlagAutoReranker)
PY

Bundled environment/API probe from this skill directory:

python scripts/check_flag_embedding_env.py

Route Map

Use sub-skills/inference/SKILL.md when the task is to load embedders or rerankers, encode queries/corpus, compute BGE-M3 dense/sparse/ColBERT scores, rerank query-passage pairs, choose model_class, handle instructions, or smoke-check inference APIs without running training or benchmark jobs.

Use sub-skills/fine-tuning/SKILL.md when the task is to prepare or validate training JSONL, mine or reason about hard negatives, add teacher-score fields, split long data, choose an embedder/reranker fine-tuning module, build a torchrun command, or diagnose DeepSpeed/flash-attn/training-data issues.

Use sub-skills/evaluation/SKILL.md when the task is to run or prepare retrieval evaluation with FlagEmbedding, create custom corpus.jsonl / test_queries.jsonl / test_qrels.jsonl, choose MTEB/BEIR/MSMARCO/MIRACL/MLDR /MKQA/AIR-Bench/BRIGHT commands, add a reranker to evaluation, or interpret metrics and output directories.

Common Decisions

Prefer auto loaders for mapped checkpoints:

from FlagEmbedding import FlagAutoModel, FlagAutoReranker

embedder = FlagAutoModel.from_finetuned(
    "BAAI/bge-base-en-v1.5",
    query_instruction_for_retrieval="Represent this sentence for searching relevant passages:",
    devices="cpu",
    use_fp16=False,
)

reranker = FlagAutoReranker.from_finetuned(
    "BAAI/bge-reranker-base",
    devices="cpu",
    use_fp16=False,
)

For custom or unmapped checkpoints, set model_class explicitly instead of retrying the same auto call. Embedder ids include encoder-only-base, encoder-only-m3, decoder-only-base, decoder-only-icl, and decoder-only-pseudo_moe. Reranker ids include encoder-only-base, decoder-only-base, decoder-only-layerwise, and decoder-only-lightweight.

Use CPU and full precision for cheap smoke checks. Move to CUDA, fp16, bf16, large batch sizes, remote model ids, or benchmark downloads only after the user approves the runtime, cache, and budget.

Verification Anchors

The generated skill is grounded in these public surfaces:

  • Public imports and mappings under FlagEmbedding.inference.
  • Fine-tuning module entry points under FlagEmbedding.finetune.
  • Evaluation module entry points under FlagEmbedding.evaluation.
  • Maintained package examples distilled into bundled references and scripts.
  • Small native candidates and synthetic fixtures recorded in the integration reports under the review/test artifact directory.

Runtime files do not require the original checkout. Source examples and scripts were distilled into the generated skill references or adapted as bundled helper scripts.

리뷰

아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.

댓글

로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.

아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. URL은 2개까지입니다.

0 / 1,000자

이 양식은 reCAPTCHA로 보호되며 Google 개인정보처리방침 및 서비스 약관이 적용됩니다.

같은 저장소의 스킬

Routes 3D ResNets PyTorch video action-recognition workflows across training, inference, and data preparation.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

VectorSpaceLab/AREX-Skill3382026년 9월 3일 업데이트

3ddfa

무료

Guide 3DDFA Python inference, geometry rendering, training/evaluation, and optional C++ ONNX workflows for 3D dense face alignment.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

VectorSpaceLab/AREX-Skill3382026년 9월 3일 업데이트

3ddfa-v2

무료

Routes 3DDFA_V2 face-alignment setup, still-image demos, video tracking, and ONNX benchmarking workflows.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

VectorSpaceLab/AREX-Skill3382026년 9월 3일 업데이트

ab3dmot

무료

Operate AB3DMOT 3D multi-object tracking workflows for KITTI and nuScenes data, tracking, evaluation, and visualization.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

VectorSpaceLab/AREX-Skill3382026년 9월 3일 업데이트

Use Hugging Face Accelerate for PyTorch training-loop migration, distributed launch/configuration, DeepSpeed/FSDP/TPU backend setup, big-model inference/offload, checkpointing, tracking, and troubleshooting.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

VectorSpaceLab/AREX-Skill3382026년 9월 3일 업데이트

acme

무료

Route Acme reinforcement-learning framework tasks across core loops, replay/data, JAX agents, and TensorFlow/Sonnet agents.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

VectorSpaceLab/AREX-Skill3382026년 9월 3일 업데이트

VectorSpaceLab의 스킬 모두 보기

이 스킬의 문제 신고