Docs
CodeRabbit
Cloudflare
AG Grid
SerpAPI
Netlify
OpenRouter
Neon
WorkOS
Clerk
Electric
PowerSync
Sentry
Railway
Prisma
Strapi
Unkey
CodeRabbit
Cloudflare
AG Grid
SerpAPI
Netlify
OpenRouter
Neon
WorkOS
Clerk
Electric
PowerSync
Sentry
Railway
Prisma
Strapi
Unkey
Persistence (Advanced)
Embeddings
Reranking
Evaluate
Sandboxes (Advanced)
Class References
Function References
Interface References
Type Alias References
Variable References
Interface References

EmbeddingResult

Defined in: packages/ai/src/types.ts:3402

Result of embedding generation.

Properties

embeddings

ts
embeddings: Embedding[];
embeddings: Embedding[];

Defined in: packages/ai/src/types.ts:3408

One embedding per input item, in input order


id

ts
id: string;
id: string;

Defined in: packages/ai/src/types.ts:3404

Unique identifier for the generation


model

ts
model: string;
model: string;

Defined in: packages/ai/src/types.ts:3406

Model used for generation


usage?

ts
optional usage?: TokenUsage<ProviderUsageDetails>;
optional usage?: TokenUsage<ProviderUsageDetails>;

Defined in: packages/ai/src/types.ts:3410

Token usage information (if provided by the adapter)