Documentation
¶
Index ¶
Constants ¶
View Source
const ( MaxObjectsPerBatch = 2000 // https://platform.openai.com/docs/api-reference/embeddings/create // time per token goes down up to a certain batch size and then flattens - however the times vary a lot so we // don't want to get too close to the maximum of 50s OpenAIMaxTimePerBatch = float64(10) )
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New(client text2vecbase.BatchClient, logger logrus.FieldLogger) *text2vecbase.BatchVectorizer
Types ¶
type ClassSettings ¶
type ClassSettings interface {
PropertyIndexed(property string) bool
VectorizePropertyName(propertyName string) bool
VectorizeClassName() bool
Model() string
Type() string
ModelVersion() string
ResourceName() string
DeploymentID() string
BaseURL() string
ApiVersion() string
IsAzure() bool
}
IndexCheck returns whether a property of a class should be indexed
Click to show internal directories.
Click to hide internal directories.