Documentation ¶
Index ¶
- Constants
- type ChatState
- type Friday
- func (f *Friday) Chat(res *ChatState) *Friday
- func (f *Friday) ChatConclusion(ctx context.Context, chat string) (string, map[string]int, error)
- func (f *Friday) ChatConclusionFromElementFile(ctx context.Context, chatFile string) (string, map[string]int, error)
- func (f *Friday) ChatConclusionFromFile(ctx context.Context, chatFile string) (string, map[string]int, error)
- func (f *Friday) Complete(res *ChatState) *Friday
- func (f *Friday) Content(content string) *Friday
- func (f *Friday) Element(elements []vector.Element) *Friday
- func (f *Friday) ElementFile(ps *string) *Friday
- func (f *Friday) File(file *vector.File) *Friday
- func (f *Friday) GetRealHistory() []map[string]string
- func (f *Friday) History(history []map[string]string) *Friday
- func (f *Friday) Ingest(res *IngestState) *Friday
- func (f *Friday) Keywords(res *KeywordsState) *Friday
- func (f *Friday) Namespace(namespace *models.Namespace) *Friday
- func (f *Friday) OfSummary(summary string) *Friday
- func (f *Friday) OfType(summaryType summary.SummaryType) *Friday
- func (f *Friday) OriginFile(ps *string) *Friday
- func (f *Friday) Question(q string) *Friday
- func (f *Friday) SearchIn(query *vector.VectorDocQuery) *Friday
- func (f *Friday) Summary(res *SummaryState) *Friday
- func (f *Friday) WithContext(ctx context.Context) *Friday
- type IngestState
- type KeywordsState
- type Statement
- type SummaryState
Constants ¶
View Source
const (
DefaultTopK = 6
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Friday ¶
type Friday struct { Log logger.Logger Error error LimitToken int LLM llm.LLM Prompts map[string]string Embedding embedding.Embedding Vector store.VectorStore VectorTopK *int Spliter spliter.Spliter // contains filtered or unexported fields }
var (
Fri *Friday
)
func (*Friday) ChatConclusion ¶
func (*Friday) ChatConclusionFromElementFile ¶
func (*Friday) ChatConclusionFromFile ¶
func (*Friday) ElementFile ¶
func (*Friday) GetRealHistory ¶
func (*Friday) Ingest ¶
func (f *Friday) Ingest(res *IngestState) *Friday
func (*Friday) Keywords ¶
func (f *Friday) Keywords(res *KeywordsState) *Friday
func (*Friday) OriginFile ¶
func (*Friday) Summary ¶
func (f *Friday) Summary(res *SummaryState) *Friday
type IngestState ¶
type KeywordsState ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.