config

package
v0.0.0-...-ba7cae4 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DEFAULT_URL_HINT_SZ

func DEFAULT_URL_HINT_SZ() uint64

func SLOT_BITS

func SLOT_BITS() uint64

Types

type Config

type Config struct {
	// contains filtered or unexported fields
}

func MakeConfig

func MakeConfig(preambleStr string, images bool) *Config

func (*Config) CoordinatorLog

func (c *Config) CoordinatorLog(numEmbServers, numUrlServers int) string

func (*Config) DEFAULT_EMBEDDINGS_HINT_SZ

func (c *Config) DEFAULT_EMBEDDINGS_HINT_SZ() uint64

TODO: Fix to be more accurate

func (*Config) EMBEDDINGS_CLUSTERS_PER_SERVER

func (c *Config) EMBEDDINGS_CLUSTERS_PER_SERVER() int

Round up (# clusters / # embedding servers)

func (*Config) EMBEDDINGS_DIM

func (c *Config) EMBEDDINGS_DIM() uint64

func (*Config) EmbeddingServerLog

func (c *Config) EmbeddingServerLog(serverId int) string

func (*Config) EmbeddingServerLogWithoutHint

func (c *Config) EmbeddingServerLogWithoutHint(serverId int) string
func (c *Config) IMAGE_SEARCH() bool

func (*Config) MAX_EMBEDDINGS_SERVERS

func (c *Config) MAX_EMBEDDINGS_SERVERS() int

func (*Config) MAX_URL_SERVERS

func (c *Config) MAX_URL_SERVERS() int

func (*Config) PREAMBLE

func (c *Config) PREAMBLE() string

func (*Config) SIMPLEPIR_EMBEDDINGS_RECORD_LENGTH

func (c *Config) SIMPLEPIR_EMBEDDINGS_RECORD_LENGTH() int

func (*Config) TOTAL_NUM_CLUSTERS

func (c *Config) TOTAL_NUM_CLUSTERS() int

func (*Config) TxtCorpus

func (c *Config) TxtCorpus(clusterId int) string

func (*Config) URL_CLUSTERS_PER_SERVER

func (c *Config) URL_CLUSTERS_PER_SERVER() int

Round up (# clusters / # url servers)

func (*Config) UrlServerLog

func (c *Config) UrlServerLog(serverId int) string

func (*Config) UrlServerLogWithoutHint

func (c *Config) UrlServerLogWithoutHint(serverId int) string

Jump to

Keyboard shortcuts

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