Documentation
¶
Index ¶
Constants ¶
View Source
const ( EnvConfigKey = "DEFAULT_CONFIG" EnvConfigDefaultValue = "arcadia-config" )
Variables ¶
View Source
var ( ErrNoConfigEnv = fmt.Errorf("env:%s is not found", EnvConfigKey) ErrNoConfig = fmt.Errorf("config in configmap is empty") ErrNoConfigGateway = fmt.Errorf("config Gateway in configmap is not found") ErrNoConfigMinIO = fmt.Errorf("config MinIO in comfigmap is not found") ErrNoConfigVectorstore = fmt.Errorf("config Vectorstore in comfigmap is not found") ErrNoConfigStreamlit = fmt.Errorf("config Streamlit in comfigmap is not found") )
Functions ¶
func GetSystemDatasource ¶
func GetSystemDatasource(ctx context.Context, c client.Client, cli dynamic.Interface) (*arcadiav1alpha1.Datasource, error)
func GetVectorStore ¶
func GetVectorStore(ctx context.Context, c dynamic.Interface) (*arcadiav1alpha1.TypedObjectReference, error)
Types ¶
type Config ¶
type Config struct {
// SystemDatasource specifies the built-in datasource for Arcadia to host data files and model files
SystemDatasource arcadiav1alpha1.TypedObjectReference `json:"systemDatasource,omitempty"`
// Gateway to access LLM api services
Gateway *Gateway `json:"gateway,omitempty"`
// VectorStore to access VectorStore api services
VectorStore *arcadiav1alpha1.TypedObjectReference `json:"vectorStore,omitempty"`
// Streamlit to get the configuration
Streamlit *Streamlit `json:"streamlit,omitempty"`
}
Config defines the configuration for the Arcadia controller
type Gateway ¶
type Gateway struct {
ExternalAPIServer string `json:"externalApiServer,omitempty"`
APIServer string `json:"apiServer,omitempty"`
Controller string `json:"controller,omitempty"`
}
Gateway defines the way to access llm apis host by Arcadia
Click to show internal directories.
Click to hide internal directories.