Files
lancedb/docs/src/javascript/interfaces/EmbeddingFunction.md
2023-07-18 08:19:48 -07:00

1.2 KiB

vectordb / Exports / EmbeddingFunction

Interface: EmbeddingFunction<T>

An embedding function that automatically creates vector representation for a given column.

Type parameters

Name
T

Implemented by

Table of contents

Properties

Properties

embed

embed: (data: T[]) => Promise<number[][]>

Type declaration

▸ (data): Promise<number[][]>

Creates a vector representation for the given values.

Parameters
Name Type
data T[]
Returns

Promise<number[][]>

Defined in

embedding/embedding_function.ts:27


sourceColumn

sourceColumn: string

The name of the column that will be used as input for the Embedding Function.

Defined in

embedding/embedding_function.ts:22