Files
fn_registry/python/functions/embedding/embedding_save_model.md
T
egutierrez fc4180cbb3 chore: auto-commit (129 archivos)
- .claude/agents/fn-analizador/SKILL.md
- .claude/agents/fn-constructor/SKILL.md
- .claude/agents/fn-executor/SKILL.md
- .claude/agents/fn-mejorador/SKILL.md
- .claude/agents/fn-orquestador/SKILL.md
- .claude/agents/fn-recopilador/SKILL.md
- .claude/commands/app.md
- .claude/commands/compile.md
- .claude/commands/cpp-app.md
- .claude/commands/create_functions.md
- ...

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-06-01 22:23:12 +02:00

1.2 KiB

name, kind, lang, domain, version, purity, signature, description, tags, uses_functions, uses_types, returns, returns_optional, error_type, imports, params, output, tested, tests, test_file_path, file_path
name kind lang domain version purity signature description tags uses_functions uses_types returns returns_optional error_type imports params output tested tests test_file_path file_path
embedding_save_model function py infra 1.0.0 impure def embedding_save_model(model_id: str, path: str) -> str Descarga modelo de embeddings de HuggingFace y lo guarda en path local para carga rapida sin red.
embedding
model
save
huggingface
e5
python
pendiente-usar
false error_go_core
sentence_transformers
name desc
model_id identificador de modelo en HuggingFace (ej: intfloat/multilingual-e5-small)
name desc
path ruta local donde guardar el modelo descargado
string: ruta absoluta donde se guardó el modelo false
python/functions/embedding/model.py

Ejemplo

path = embedding_save_model("intfloat/multilingual-e5-small", ".local/models/e5-small")
# path = "$HOME/fn_registry/.local/models/e5-small"

Notas

El modelo se guarda en formato sentence-transformers (safetensors + tokenizer). Para multilingual-e5-small ocupa ~465 MB en disco. Carga local es ~2.3x mas rapida que desde HF cache.