5f4f1f7508
Añade campos params y output al frontmatter YAML de las 506 funciones del registry. Cada parámetro tiene descripción semántica (qué representa, unidades, rango típico) y cada función describe qué produce su output. Permite a agentes razonar sobre cadenas de composición (ej: prices → log_return → sharpe_ratio) sin leer código.
986 B
986 B
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_load_model | function | py | infra | 1.0.0 | impure | def embedding_load_model(path: str) -> SentenceTransformer | Carga modelo de embeddings desde path local. Retorna instancia lista para encode. |
|
false | error_go_core |
|
|
SentenceTransformer: instancia lista para embedding_encode | false | python/functions/embedding/model.py |
Ejemplo
model = embedding_load_model(".local/models/e5-small")
# model listo para usar con embedding_encode
Notas
Carga desde path local (~1.8s) es mas rapida que desde HF cache (~4.1s). El modelo retornado es compatible con embedding_encode.