REstJS
DocsQuick StartAI PlatformNew
GitHub
  • Overviewnew
  • Providers
  • Chat & Stream
  • Embeddings
  • RAG Pipeline
  • Agents
  • MCP
Docs/AI Platform/Embeddings

Embeddings

Generate vector embeddings.

1 min readEdit this page

Usage

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

Multiple

const result = await ai.embed({
  input: ['text one', 'text two']
})
PreviousChat & StreamNext RAG Pipeline

Built by Tariq Mehmood • MIT License

On this page

  • Usage
  • Multiple