Skip to main content
AskMe (beta)

%Embedding.OpenAI

class %Embedding.OpenAI extends %Embedding.Interface

Extends the %Embedding.Interface class, using OpenAI's API endpoint.

Method Inventory

Methods

classmethod Embedding(input As %String, configuration As %String) as %Vector
Generates embeddings using Open AI's embedding API endpoint
classmethod EstimateTokenCount(input As %String)
classmethod IsValidConfig(config As %DynamicObject, ByRef errorMsg As %String) as %Boolean
Validates %Embedding.Config's Configuration property. { "modelName": , "apiKey" : , "sslConfig" : , "checkTokenCount": , "maxTokens": , "httpConfig": } As OpenAI's API uses a https endpoint, User must set up a SSL config in the Management Portal: System Administration -> Security -> SSL/TSL Configurations -> Create new configuration

Inherited Members

Inherited Methods

FeedbackOpens in a new tab