Documentation ¶
Index ¶
Constants ¶
View Source
const CombineTemplate = `Combine these summaries and reply in zh-CN Language:
"{{ .Context }}"`
View Source
const KeyWordsTemplate = `Extract keywords from the following, separated by comma and reply in zh-CN Language:
"{{ .Context }}"
KEYWORDS: `
View Source
const QuestionTemplate = `` /* 318-byte string literal not displayed */
View Source
const QuestionTemplateEN = `` /* 242-byte string literal not displayed */
View Source
const SummaryTemplate = `Write a concise summary of the following and reply in zh-CN Language.:
"{{ .Context }}"
CONCISE SUMMARY: `
View Source
const WeChatConclusionTemplate = `请根据以下每天发生的事情,总结出这一段时间里发生的事情。
聊天记录:
{{ .Context }}
`
View Source
const WeChatTemplate = `` /* 302-byte string literal not displayed */
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CombinePrompt ¶
type CombinePrompt struct { Context string // contains filtered or unexported fields }
type KeywordsPrompt ¶
type KeywordsPrompt struct { Context string // contains filtered or unexported fields }
type PromptTemplate ¶
func NewCombinePrompt ¶
func NewCombinePrompt(t string) PromptTemplate
func NewKeywordsPrompt ¶
func NewKeywordsPrompt(t string) PromptTemplate
func NewQuestionPrompt ¶
func NewQuestionPrompt(t string) PromptTemplate
func NewSummaryPrompt ¶
func NewSummaryPrompt(t string) PromptTemplate
func NewWeChatConclusionPrompt ¶
func NewWeChatConclusionPrompt(t string) PromptTemplate
func NewWeChatPrompt ¶
func NewWeChatPrompt(t string) PromptTemplate
type QuestionPrompt ¶
type SummaryPrompt ¶
type SummaryPrompt struct { Context string // contains filtered or unexported fields }
type WeChatConclusionPrompt ¶
type WeChatConclusionPrompt struct { Context string // contains filtered or unexported fields }
type WeChatPrompt ¶
type WeChatPrompt struct { Context string // contains filtered or unexported fields }
Click to show internal directories.
Click to hide internal directories.