%Embedding.OpenAI
class %Embedding.OpenAI extends %Embedding.Interface
Extends the %Embedding.Interface class, using OpenAI's API endpoint.Method Inventory
Methods
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
- %AddToSaveSet()
- %ClassIsLatestVersion()
- %ClassName()
- %ConstructClone()
- %DispatchClassMethod()
- %DispatchGetModified()
- %DispatchGetProperty()
- %DispatchMethod()
- %DispatchSetModified()
- %DispatchSetMultidimProperty()
- %DispatchSetProperty()
- %Extends()
- %GetParameter()
- %IsA()
- %IsModified()
- %New()
- %NormalizeObject()
- %ObjectModified()
- %OriginalNamespace()
- %PackageName()
- %RemoveFromSaveSet()
- %SerializeObject()
- %SetModified()
- %ValidateObject()