template

package
v0.0.0-...-085a19f Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ModuleChatTemplate = fx.Module("chat-template",
	fx.Provide(
		fx.Annotate(
			NewRAGChatTemplate,
			fx.As(new(prompt.ChatTemplate))),
	),
)

ModuleChatTemplate is a fx module for chat template

Functions

func NewRAGChatTemplate

func NewRAGChatTemplate(cfg *config.ServerConfig) (prompt.ChatTemplate, error)

NewRAGChatTemplate creates a new RAG chat template

Types

type ChatTemplateConfig

type ChatTemplateConfig struct {
	FormatType schema.FormatType
	Templates  []schema.MessagesTemplate
}

ChatTemplateConfig is a configuration for a chat template

Jump to

Keyboard shortcuts

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