Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Chat ¶
func Chat(respw http.ResponseWriter, req *http.Request, apiKey string)
Chat is the controller for handling chat requests
func LoadDataset ¶
LoadDataset loads the dataset from the given CSV file and returns a map of label to question-answer pair
func NormalizeText ¶
NormalizeText normalizes the text by converting to lowercase and removing punctuation
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.