Show / Hide Table of Contents

Class ChatGPT

OpenAI implementation of the ILLM interface.

Inheritance
object
ChatGPT
Implements
ILLM
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Quantellia.WMServer.Asset.LLM
Assembly: WMServer.dll
Syntax
public class ChatGPT : ILLM

Constructors

ChatGPT(WMLLMConnection)

Standard constructor for IEmbeddingClient interface

Declaration
public ChatGPT(WMLLMConnection asset)
Parameters
Type Name Description
WMLLMConnection asset

Properties

LLMConnection

The WMLLM object containing the metadata for ILLM derived classes.

Declaration
public WMLLMConnection LLMConnection { get; set; }
Property Value
Type Description
WMLLMConnection

Methods

CountTokens(object)

Counts and returns the number of tokens in the source object.

Declaration
public Task<int> CountTokens(object source)
Parameters
Type Name Description
object source

The source object to determine token count for.

Returns
Type Description
Task<int>

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(WMLLM)

Start a conversation with the given parameters

Declaration
public Task<ILLMConversation> StartConversation(WMLLM llmPrompt)
Parameters
Type Name Description
WMLLM llmPrompt
Returns
Type Description
Task<ILLMConversation>

Implements

ILLM
In this article
Back to top Copyright © 2025 Quantellia LLC.    Version 2.0.0 Revision 399     Last Updated 1/15/2025    DRAFT DOCUMENTATION. SUBJECT TO CHANGE