Basic Information

appmixer.ai.openai.GenerateEmbeddingsFromFile

1.0.0

Public

Generate embeddings for a text file. The text is split into parts, each part is split into chunks and embedding is returned for each chunk. The component emits embeddings array for each file part (1MB).
The returned embeddings is an array of the form: [{ "index": 0, "text": "chunk1", "vector": [1.1, 1.2, 1.3] }].
TIP: use the JSONata modifier to convert the embeddings array into custom formats.

Input Ports

in

FieldTypeDescription
File ID filepicker The text file to generate embeddings for. Use plain text or CSV files only.
Model text ID of the model to use.
Chunk Size number Maximum size of each chunk for text splitting. The default is 500.
Chunk Overlap number Overlap between chunks for text splitting to maintain context. The default is 50.

Output Ports

out

FieldTypeDescription
Embeddings -
First Vector -

Full Metadata