name
(str
): The name of the embedding model to use.openai_base_url
(str
): The base URL for the OpenAI API.openai_api_key
(str
): The OpenAI API key.openai_org_id
(str
): The OpenAI organization ID.score_threshold
(float
): The score threshold for the embeddings.str
0 (str
1): The dimensions of the embeddings.str
2 (str
1): The maximum number of retries for the OpenAI API call.docs
: List of text documents to encode.truncate
: Whether to truncate the documents to token limit. If
False and a document exceeds the token limit, an error will be
raised.docs
: List of text documents to encode.truncate
: Whether to truncate the documents to token limit. If
False and a document exceeds the token limit, an error will be
raised.