Skip to contents

Compute embeddings for items in a tidyvec collection

Usage

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

Arguments

x

A tidyvec object

content_column

Column containing content to embed

embedding_fn

Embedding function to use (overrides collection's function)

force

Whether to overwrite existing embeddings

...

Additional arguments passed to the embedding function

Value

Updated tidyvec object with embeddings