config

package
v0.0.0-...-687952b Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2023 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CohereModel2Dim = map[string]int{"multilingual-22-12": 768, "small": 1024, "large": 4096}

Functions

This section is empty.

Types

type CohereCfg

type CohereCfg struct {
	APIKey string `toml:"api_key"`
	Model  string `toml:"model"`
}

type Config

type Config struct {
	Cohere CohereCfg `toml:"cohere"`
	DB     DbCfg     `toml:"db"`
	HNSW   HNSWCfg   `toml:"hnsw"`
}

func ParseFrom

func ParseFrom(file string) (Config, error)

type DbCfg

type DbCfg struct {
	Dir              string `toml:"persist_dir"`
	PostgresUsername string `toml:"postgres_username"`
	PostgresPassword string `toml:"postgres_password"`
	PostresPort      uint32 `toml:"postgres_port"`
	FerretDBTcp      string `toml:"ferretdb_tcp"`
	FerretDBHandler  string `toml:"ferretdb_handler"`
}

type HNSWCfg

type HNSWCfg struct {
	M              int `toml:"m"`
	EfConstruction int `toml:"ef_construction"`
}

Jump to

Keyboard shortcuts

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