Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client implements the nlp.NLPer interface.
func (*Client) GetAnswer ¶
GetAnswer implements the nlp.NLPer.GetAnswer method and generates answers to the provided question using OpenAI.
func (*Client) GetSummary ¶
GetSummary implements the nlp.NLPer.GetSummary method and generates a summary of the provided text with OpenAI.
type NLPer ¶
type NLPer interface { GetSummary(ctx context.Context, text string) (*string, error) SetDocuments(ctx context.Context, documents []dct.Document) error GetAnswer(ctx context.Context, question, userID string) (*string, error) }
NLPer defines the methods for interacting with the OpenAI natural language processing API.
Click to show internal directories.
Click to hide internal directories.