llmmodels

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: May 27, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EMBEDDING_MODEL_TEXT_EMBEDDING_ADA_002                       string = "text-embedding-ada-002"
	EMBEDDING_MODEL_TEXT_NOMIC_EMBED_TEXT                        string = "nomic-embed-text"
	EMBEDDING_MODEL_TEXT_E5_MISTRAL_7B_INSTRUCT                  string = "hellord/e5-mistral-7b-instruct"
	EMBEDDING_MODEL_TEXT_INTFLOAT_MULTILINGUAL_E5_LARGE_INSTRUCT string = "jeffh/intfloat-multilingual-e5-large-instruct:f16"
	EMBEDDING_MODEL_TEXT_MULTILINGXUAL_E5_LARGE_INSTRUCT         string = "aroxima/multilingual-e5-large-instruct"
)

Variables

This section is empty.

Functions

func NewLLM

func NewLLM(provider Provider, model string, json bool) (llms.Model, error)

Types

type Provider

type Provider string

Provider represents AI provider

const (
	ProviderOpenaAI   Provider = "OPENAI"
	ProviderGoogleAI  Provider = "GOOGLEAI"
	ProviderMistral   Provider = "MISTRAL"
	ProviderAnthropic Provider = "ANTHROPIC"
	ProviderOllama    Provider = "OLLAMA"
)

func (Provider) IsValid

func (at Provider) IsValid() bool

IsValid checks if the provider is valid

func (Provider) Parse

func (Provider) Parse(s string) (Provider, error)

Parse converts a string to Provider

func (Provider) String

func (at Provider) String() string

String returns the string representation of the provider

func (Provider) Values

func (Provider) Values() []Provider

Values returns all possible values of Provider

Jump to

Keyboard shortcuts

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