Connects to the current EDAM SemanticSQL release, fetches term labels and
definitions, embeds them using the specified provider, and saves the result
to outfile. The saved object can be submitted to AnnotationHub or
loaded directly via get_edam_embeddings.
Arguments
- outfile
character(1) path for the output
.rdsfile. Defaults toedam_embeddings.rdsintempdir().- model
character(1) embedding model identifier. For
provider="openai"use e.g."text-embedding-3-small"; forprovider="huggingface"use a HuggingFace model ID such as"FremyCompany/BioLORD-2023-C".- provider
character(1) embedding provider:
"openai"(default) or"huggingface". The corresponding environment variable must be set (seellm_env_var).
Value
invisibly, the embedding list (same structure as the AnnotationHub
resource returned by get_edam_embeddings).