AI Platform

Embeddings

Generate vector embeddings.

1 min readDocumentationEdit this page

Usage#

typescript
const result = await ai.embed({ input: 'What is JavaScript?' })
result.embeddings[0]  // number[]

Multiple#

typescript
const result = await ai.embed({
  input: ['text one', 'text two']
})

Help improve the documentation

AxilJS is open source and documentation improvements are welcome.

AxilJS DocumentationMIT License · Built by SyntaxilitY