Documentation
¶
Index ¶
- Constants
- Variables
- func Ask(text string) (string, error)
- func ChunkSite(text string) []string
- func ParseQuery(query string) ([]string, error)
- func Report(text, query string) (string, error)
- func Summarize(text string) (string, error)
- func SummarizeFinal(texts []string, query string) (string, error)
- func SummarizeSite(chunks []string, query string) (string, error)
Constants ¶
View Source
const ( REPORT_SYSTEM_PROMPT = "You are a helpful assistant." REPORT_USER_PROMPT = "\nUse the previously given information to write a wikipedia article on the subject of " )
This needs to be improved.
View Source
const ( SUMMARIZE_SITE_PROMPT = "" /* 239-byte string literal not displayed */ SUMMARIZE_PROMPT = "" /* 273-byte string literal not displayed */ )
Variables ¶
View Source
var ( MAX_CHARS = 12000 SPLIT_CHARS = 10000 )
View Source
var (
ASK_SYSTEM_PROMPT = "" /* 359-byte string literal not displayed */
)
View Source
var (
ParseQueryPrompt = "What is the query about? Ignore prepositions and articles and just return the main subject."
)
Functions ¶
func ParseQuery ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.