Documentation
¶
Index ¶
Constants ¶
View Source
const ( DefaultBaseURL = "https://inference.do-ai.run" DefaultVectorizeClassName = true DefaultPropertyIndexed = true DefaultVectorizePropertyName = false LowerCaseInput = false )
Variables ¶
This section is empty.
Functions ¶
func NewClassSettings ¶
func NewClassSettings(cfg moduletools.ClassConfig) *classSettings
Types ¶
type ModelLister ¶
type ModelLister interface {
ListModels(ctx context.Context, baseURL, apiKey string, weaviateUUID string) ([]string, error)
}
ModelLister returns the set of available model ids from a DigitalOcean Serverless Inference endpoint. It is implemented in the clients package and injected here through DefaultModelLister to keep ent free of HTTP-client dependencies. Tests can override DefaultModelLister with a fake.
var DefaultModelLister ModelLister
DefaultModelLister is the lister used by Validate. It is overridable so that the clients package can register a real HTTP-backed implementation at init time and so that tests can inject fakes without spinning up an httptest server.
Click to show internal directories.
Click to hide internal directories.