Skip to contents

set_embedding_model sets the model to be used by a workflow object.

Usage

set_embedding_model(workflow_obj, model_name)

Arguments

workflow_obj

an ai_workflow object created by ai_workflow() in the first place.

model_name

the name of the embedding model to use in the workflow

Details

A simple function to set the embedding model to be used. Note that this model needs to be available at the instance you connect to.

Examples

my_workflow <- ai_workflow() |> 
set_model(model_name="llama3.2:latest") |>
set_embedding_model(model_name="nomic-embed-text:latest")