OptionalinputSpecifies the type of input text for optimized embedding generation.
search_document: For documents that will be searched againstsearch_query: For search queriesclassification: For text classification tasksclustering: For text clustering tasksOptionalembeddingThe format of the returned embedding vectors.
float: Standard floating-point embeddings (default)int8: Quantized 8-bit integer embeddings (smaller size, slight quality trade-off)OptionaltruncateHow to handle text that exceeds the model's maximum input length.
NONE: Return an error if text is too longSTART: Truncate from the beginningEND: Truncate from the end (default)
Configuration options for embedding generation.
These options allow fine-tuning of the embedding process for different use cases such as search, classification, or clustering.
EmbeddingOptions
Example