Class ChatGPT
OpenAI implementation of the ILLM interface.
Implements
Inherited Members
Namespace: Quantellia.WMServer.Asset.LLM
Assembly: WMServer.dll
Syntax
public class ChatGPT : ILLM
Constructors
ChatGPT(WMLLM)
Standard constructor for IEmbeddingClient interface
Declaration
public ChatGPT(WMLLM asset)
Parameters
Type | Name | Description |
---|---|---|
WMLLM | asset |
Properties
LLMData
The WMLLM object containing the metadata for ILLM derived classes.
Declaration
public WMLLM LLMData { get; set; }
Property Value
Type | Description |
---|---|
WMLLM |
Methods
GetEmbeddings(object[])
Return a list of embeddings for the input object.
Declaration
public Task<float[][]> GetEmbeddings(object[] sources)
Parameters
Type | Name | Description |
---|---|---|
object[] | sources | The source objects to determine an embedding for. |
Returns
Type | Description |
---|---|
Task<float[][]> |
Exceptions
Type | Condition |
---|---|
NotImplementedException |
StartConversation()
Start a conversation with the given parameters
Declaration
public Task<ILLMConversation> StartConversation()
Returns
Type | Description |
---|---|
Task<ILLMConversation> |