ollama

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var EmbeddingsModel = "nomic-embed-text:v1.5"

Functions

func CheckIfModelExists

func CheckIfModelExists(requestName string) error

func CheckIfModelExistsOrPull

func CheckIfModelExistsOrPull(modelName string) error

func FormatTextAsMarkdownPrompt

func FormatTextAsMarkdownPrompt(text string) string

func GetOllamaModelList

func GetOllamaModelList() ([]string, error)

func NewOllama

func NewOllama(modelName, URL string) (*ollama.LLM, error)

func NewOllamaEmbeddingLLM

func NewOllamaEmbeddingLLM() (*ollama.LLM, error)

func OllamaPullModel

func OllamaPullModel(modelName string) error

func ParsingErrorPrompt

func ParsingErrorPrompt() string

Types

This section is empty.

Jump to

Keyboard shortcuts

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