config

package
v0.0.0-...-837e5c9 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2024 License: MIT Imports: 74 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Address string

	Authorizers []authorizer.Provider
	// contains filtered or unexported fields
}

func Parse

func Parse(path string) (*Config, error)

func (*Config) Completer

func (cfg *Config) Completer(id string) (provider.Completer, error)

func (*Config) Embedder

func (cfg *Config) Embedder(id string) (provider.Embedder, error)

func (*Config) Extractor

func (cfg *Config) Extractor(id string) (extractor.Provider, error)

func (*Config) Index

func (cfg *Config) Index(id string) (index.Provider, error)

func (*Config) Model

func (cfg *Config) Model(id string) (*provider.Model, error)

func (*Config) Models

func (cfg *Config) Models() []provider.Model

func (*Config) RegisterChain

func (cfg *Config) RegisterChain(id string, p chain.Provider)

func (*Config) RegisterCompleter

func (cfg *Config) RegisterCompleter(id string, p provider.Completer)

func (*Config) RegisterEmbedder

func (cfg *Config) RegisterEmbedder(id string, p provider.Embedder)

func (*Config) RegisterExtractor

func (cfg *Config) RegisterExtractor(id string, p extractor.Provider)

func (*Config) RegisterIndex

func (cfg *Config) RegisterIndex(id string, p index.Provider)

func (*Config) RegisterModel

func (cfg *Config) RegisterModel(id string)

func (*Config) RegisterRenderer

func (cfg *Config) RegisterRenderer(id string, p provider.Renderer)

func (*Config) RegisterReranker

func (cfg *Config) RegisterReranker(id string, p provider.Reranker)

func (*Config) RegisterSegmenter

func (cfg *Config) RegisterSegmenter(id string, p segmenter.Provider)

func (*Config) RegisterSummarizer

func (cfg *Config) RegisterSummarizer(id string, p summarizer.Provider)

func (*Config) RegisterSynthesizer

func (cfg *Config) RegisterSynthesizer(id string, p provider.Synthesizer)

func (*Config) RegisterTool

func (c *Config) RegisterTool(id string, p tool.Tool)

func (*Config) RegisterTranscriber

func (cfg *Config) RegisterTranscriber(id string, p provider.Transcriber)

func (*Config) RegisterTranslator

func (cfg *Config) RegisterTranslator(id string, p translator.Provider)

func (*Config) Renderer

func (cfg *Config) Renderer(id string) (provider.Renderer, error)

func (*Config) Reranker

func (cfg *Config) Reranker(id string) (provider.Reranker, error)

func (*Config) Segmenter

func (cfg *Config) Segmenter(id string) (segmenter.Provider, error)

func (*Config) Summarizer

func (cfg *Config) Summarizer(id string) (summarizer.Provider, error)

func (*Config) Synthesizer

func (cfg *Config) Synthesizer(id string) (provider.Synthesizer, error)

func (*Config) Tool

func (cfg *Config) Tool(id string) (tool.Tool, error)

func (*Config) Transcriber

func (cfg *Config) Transcriber(id string) (provider.Transcriber, error)

func (*Config) Translator

func (cfg *Config) Translator(id string) (translator.Provider, error)

type ModelType

type ModelType string
const (
	ModelTypeAuto        ModelType = ""
	ModelTypeCompleter   ModelType = "completer"
	ModelTypeEmbedder    ModelType = "embedder"
	ModelTypeRenderer    ModelType = "renderer"
	ModelTypeReranker    ModelType = "reranker"
	ModelTypeSynthesizer ModelType = "synthesizer"
	ModelTypeTranscriber ModelType = "transcriber"
)

func DetectModelType

func DetectModelType(id string) ModelType

Jump to

Keyboard shortcuts

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