controller

package
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 11, 2024 License: MIT Imports: 12 Imported by: 0

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

func LoadDataset(filePath string) (map[string][]string, error)

LoadDataset loads the dataset from the given CSV file and returns a map of label to question-answer pair

func NormalizeText

func NormalizeText(text string) string

NormalizeText normalizes the text by converting to lowercase and removing punctuation

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL