batch

package
v0.0.0-...-1acab93 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const QuestionTextPrefix = "? "

Variables

This section is empty.

Functions

func BatchGenerateFAQ

func BatchGenerateFAQ(db *db.DB, ctx context.Context) error

func CrawlKnowledge

func CrawlKnowledge(url, bucketName, objectKey string, s3Client *s3.Client) error

Types

type Anchor

type Anchor struct {
	Text string
	Href string
}

type BucketBasics

type BucketBasics struct {
	S3Client *s3.Client
}

func (BucketBasics) UploadFile

func (basics BucketBasics) UploadFile(bucketName string, objectKey string, fileContent io.Reader) error

type FAQ

type FAQ struct {
	Question  string `json:"question"`
	PageTitle string `json:"pageTitle"`
}

type HTML

type HTML struct {
	Body string
}

type Page

type Page struct {
	Title string `json:"title"`
	Lines []struct {
		Text string `json:"text"`
	} `json:"lines"`
}

type Project

type Project struct {
	ProjectName string `json:"projectName"`
	Pages       []Page `json:"pages"`
}

Jump to

Keyboard shortcuts

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