ai

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

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 Ask

func Ask(text string) (string, error)

func ChunkSite

func ChunkSite(text string) []string

func ParseQuery

func ParseQuery(query string) ([]string, error)

func Report

func Report(text, query string) (string, error)

func Summarize

func Summarize(text string) (string, error)

func SummarizeFinal

func SummarizeFinal(texts []string, query string) (string, error)

func SummarizeSite

func SummarizeSite(chunks []string, query string) (string, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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