lbb_embeddings_manage
Declare, refresh, or preview knowledge graph embeddings, and switch the graph's model. Updates build new versions without mixing models.
Instructions
Declare or refresh an embedding, or change the graph's model. Run lbb_embeddings action=preview first and show the user the text it will embed. declare sets the class, the fields (one-hop property paths such as label, description, calls/label; omit for an automatic choice); a new embedding takes the graph's model, and another model is refused. On an existing embedding it changes only what you name, and a changed recipe builds a new version while the old one serves. model moves every embedding of the graph to model: each builds a new version, and the graph switches when all are ready (a search never mixes two models). refresh runs one step of the embed job now (it also runs by itself after each published commit).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dim | No | ||
| from | No | preview/declare: the fields, e.g. ["label", "description", "calls/label"]. Omit for the automatic choice; on an existing embedding, omit to keep its fields. | |
| name | No | The embedding name (refresh: required). | |
| class | No | preview/declare: the class IRI. | |
| graph | No | Graph to target; defaults to the connection's graph | |
| model | No | model: the graph's new model. preview/declare: omit it; a graph has one model (the graph's, or the platform's default for the first embedding). | |
| title | No | preview/declare: the field that names each hit, e.g. "display_name". Omit for the ontology's name property (skos:prefLabel, a property declared rdfs:subPropertyOf rdfs:label, else rdfs:label); on an existing embedding, omit to keep its name. preview reports title_source and, when the labels read as keys, title_suggestion. | |
| action | Yes | ||
| detail | No | Response detail level. Defaults to compact. | |
| exclude | No | preview/declare: fields to drop from the automatic choice. |