Discover Packages
github.com/parakeet-nest/parakeet
llm
package
Version:
v0.0.5
Opens a new window with list of versions in this module.
Published: May 21, 2024
License: MIT
Opens a new window with license information.
Imports: 0
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
type Answer struct {
Model string `json:"model"`
Message Message `json:"message"`
Done bool `json:"done"`
Response string `json:"response"`
Context []int `json:"context"`
}
type LLM struct {
Name string `json:"name"`
Url string `json:"url"`
}
type Message struct {
Role string `json:"role"`
Content string `json:"content"`
}
type MessageRecord struct {
Id string `json:"id"`
Role string `json:"role"`
Content string `json:"content"`
}
type Options struct {
RepeatLastN int `json:"repeat_last_n,omitempty"`
Temperature float64 `json:"temperature,omitempty"`
Seed int `json:"seed,omitempty"`
RepeatPenalty float64 `json:"repeat_penalty,omitempty"`
Stop []string `json:"stop,omitempty"`
}
type Query struct {
Model string `json:"model"`
Messages []Message `json:"messages"`
Options Options `json:"options"`
Stream bool `json:"stream"`
Prompt string `json:"prompt"`
Context []int `json:"context"`
}
type Query4Embedding struct {
Prompt string `json:"prompt"`
Model string `json:"model"`
}
type VectorRecord struct {
Id string `json:"id"`
Prompt string `json:"prompt"`
Embedding []float64 `json:"embedding"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.