Skip to contents

Compute embeddings for items in a tidyvec collection

Usage

embed(
  x,
  content_column,
  embedding_fn = NULL,
  batch_size = 50,
  force = FALSE,
  ...
)

Arguments

x

A tidyvec object

content_column

Column containing content to embed

embedding_fn

Embedding function to use (overrides collection's function)

batch_size

Number of items to process in each batch

force

Whether to overwrite existing embeddings

...

Additional arguments passed to the embedding function

Value

Updated tidyvec object with embeddings