Skip to content
Source
Sign inSign up
TanStack/ai
Open History to see the last commit

ResolvedEmbeddingItem.md

34 lines714 Bytes

1---
2id: ResolvedEmbeddingItem
3title: ResolvedEmbeddingItem
4---
5​
6Defined in: packages/ai/src/utilities/embedding-input.ts:8
7​
8One embedding input item resolved into its text and image constituents.
9Produced by [resolveEmbeddingInput](../functions/resolveEmbeddingInput.md); adapters map each entry onto
10one provider-native input (one vector per entry).
11​
12## Properties
13​
14### images
15​
16```ts
17images: ImagePart<unknown>[];
18```
19​
20Defined in: packages/ai/src/utilities/embedding-input.ts:12
21​
22Image parts of the item, in order (empty for text-only items)
23​
24***
25​
26### texts
27​
28```ts
29texts: string[];
30```
31​
32Defined in: packages/ai/src/utilities/embedding-input.ts:10
33​
34Text contents of the item, in order (empty for image-only items)