embed • TypeScript AI Agent SDK

embed: API reference for embed

embed

Function

</div>

This function is defined in the embeddings module.

Signature

python
def embed(text: string, config?: EmbeddingConfig) -> EmbeddingResult

Returns

ResponseField EmbeddingResult

The result of the operation.

Uses

  • getDimensions
  • synchronously
  • embed

Used By

Source

View on GitHub

src/embeddings/index.ts at line 97


Related Documentation