Documentation ¶
Overview ¶
Package model provides functionalities for working with Large Language Models (LLMs).
Index ¶
- func ChatModelGenerate(ctx context.Context, model schema.ChatModel, messages schema.ChatMessages, ...) (*schema.ModelResult, error)
- func GeneratePrompt(ctx context.Context, model schema.Model, promptValue schema.PromptValue, ...) (*schema.ModelResult, error)
- func LLMGenerate(ctx context.Context, model schema.LLM, prompt string, ...) (*schema.ModelResult, error)
- type Options
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ChatModelGenerate ¶
func ChatModelGenerate(ctx context.Context, model schema.ChatModel, messages schema.ChatMessages, optFns ...func(o *Options)) (*schema.ModelResult, error)
func GeneratePrompt ¶
func GeneratePrompt(ctx context.Context, model schema.Model, promptValue schema.PromptValue, optFns ...func(o *Options)) (*schema.ModelResult, error)
Types ¶
Directories ¶
Path | Synopsis |
---|---|
Package chatmodel provides functionalities for working with Large Language Models (LLMs).
|
Package chatmodel provides functionalities for working with Large Language Models (LLMs). |
Package llm provides functionalities for working with Large Language Models (LLMs).
|
Package llm provides functionalities for working with Large Language Models (LLMs). |
Click to show internal directories.
Click to hide internal directories.