Documentation
¶
Index ¶
- func ExtractVectorConfigs(class *models.Class) (map[string]models.VectorConfig, error)
- type MockVectorIndexConfig
- type MockVectorIndexConfig_DistanceName_Call
- func (_c *MockVectorIndexConfig_DistanceName_Call) Return(_a0 string) *MockVectorIndexConfig_DistanceName_Call
- func (_c *MockVectorIndexConfig_DistanceName_Call) Run(run func()) *MockVectorIndexConfig_DistanceName_Call
- func (_c *MockVectorIndexConfig_DistanceName_Call) RunAndReturn(run func() string) *MockVectorIndexConfig_DistanceName_Call
- type MockVectorIndexConfig_Expecter
- type MockVectorIndexConfig_IndexType_Call
- func (_c *MockVectorIndexConfig_IndexType_Call) Return(_a0 string) *MockVectorIndexConfig_IndexType_Call
- func (_c *MockVectorIndexConfig_IndexType_Call) Run(run func()) *MockVectorIndexConfig_IndexType_Call
- func (_c *MockVectorIndexConfig_IndexType_Call) RunAndReturn(run func() string) *MockVectorIndexConfig_IndexType_Call
- type MockVectorIndexConfig_IsMultiVector_Call
- func (_c *MockVectorIndexConfig_IsMultiVector_Call) Return(_a0 bool) *MockVectorIndexConfig_IsMultiVector_Call
- func (_c *MockVectorIndexConfig_IsMultiVector_Call) Run(run func()) *MockVectorIndexConfig_IsMultiVector_Call
- func (_c *MockVectorIndexConfig_IsMultiVector_Call) RunAndReturn(run func() bool) *MockVectorIndexConfig_IsMultiVector_Call
- type VectorIndexConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExtractVectorConfigs ¶ added in v1.32.11
Types ¶
type MockVectorIndexConfig ¶ added in v1.35.17
MockVectorIndexConfig is an autogenerated mock type for the VectorIndexConfig type
func NewMockVectorIndexConfig ¶ added in v1.35.17
func NewMockVectorIndexConfig(t interface {
mock.TestingT
Cleanup(func())
}) *MockVectorIndexConfig
NewMockVectorIndexConfig creates a new instance of MockVectorIndexConfig. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*MockVectorIndexConfig) DistanceName ¶ added in v1.35.17
func (_m *MockVectorIndexConfig) DistanceName() string
DistanceName provides a mock function with no fields
func (*MockVectorIndexConfig) EXPECT ¶ added in v1.35.17
func (_m *MockVectorIndexConfig) EXPECT() *MockVectorIndexConfig_Expecter
func (*MockVectorIndexConfig) IndexType ¶ added in v1.35.17
func (_m *MockVectorIndexConfig) IndexType() string
IndexType provides a mock function with no fields
func (*MockVectorIndexConfig) IsMultiVector ¶ added in v1.35.17
func (_m *MockVectorIndexConfig) IsMultiVector() bool
IsMultiVector provides a mock function with no fields
type MockVectorIndexConfig_DistanceName_Call ¶ added in v1.35.17
MockVectorIndexConfig_DistanceName_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DistanceName'
func (*MockVectorIndexConfig_DistanceName_Call) Return ¶ added in v1.35.17
func (_c *MockVectorIndexConfig_DistanceName_Call) Return(_a0 string) *MockVectorIndexConfig_DistanceName_Call
func (*MockVectorIndexConfig_DistanceName_Call) Run ¶ added in v1.35.17
func (_c *MockVectorIndexConfig_DistanceName_Call) Run(run func()) *MockVectorIndexConfig_DistanceName_Call
func (*MockVectorIndexConfig_DistanceName_Call) RunAndReturn ¶ added in v1.35.17
func (_c *MockVectorIndexConfig_DistanceName_Call) RunAndReturn(run func() string) *MockVectorIndexConfig_DistanceName_Call
type MockVectorIndexConfig_Expecter ¶ added in v1.35.17
type MockVectorIndexConfig_Expecter struct {
// contains filtered or unexported fields
}
func (*MockVectorIndexConfig_Expecter) DistanceName ¶ added in v1.35.17
func (_e *MockVectorIndexConfig_Expecter) DistanceName() *MockVectorIndexConfig_DistanceName_Call
DistanceName is a helper method to define mock.On call
func (*MockVectorIndexConfig_Expecter) IndexType ¶ added in v1.35.17
func (_e *MockVectorIndexConfig_Expecter) IndexType() *MockVectorIndexConfig_IndexType_Call
IndexType is a helper method to define mock.On call
func (*MockVectorIndexConfig_Expecter) IsMultiVector ¶ added in v1.35.17
func (_e *MockVectorIndexConfig_Expecter) IsMultiVector() *MockVectorIndexConfig_IsMultiVector_Call
IsMultiVector is a helper method to define mock.On call
type MockVectorIndexConfig_IndexType_Call ¶ added in v1.35.17
MockVectorIndexConfig_IndexType_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'IndexType'
func (*MockVectorIndexConfig_IndexType_Call) Return ¶ added in v1.35.17
func (_c *MockVectorIndexConfig_IndexType_Call) Return(_a0 string) *MockVectorIndexConfig_IndexType_Call
func (*MockVectorIndexConfig_IndexType_Call) Run ¶ added in v1.35.17
func (_c *MockVectorIndexConfig_IndexType_Call) Run(run func()) *MockVectorIndexConfig_IndexType_Call
func (*MockVectorIndexConfig_IndexType_Call) RunAndReturn ¶ added in v1.35.17
func (_c *MockVectorIndexConfig_IndexType_Call) RunAndReturn(run func() string) *MockVectorIndexConfig_IndexType_Call
type MockVectorIndexConfig_IsMultiVector_Call ¶ added in v1.35.17
MockVectorIndexConfig_IsMultiVector_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'IsMultiVector'
func (*MockVectorIndexConfig_IsMultiVector_Call) Return ¶ added in v1.35.17
func (_c *MockVectorIndexConfig_IsMultiVector_Call) Return(_a0 bool) *MockVectorIndexConfig_IsMultiVector_Call
func (*MockVectorIndexConfig_IsMultiVector_Call) Run ¶ added in v1.35.17
func (_c *MockVectorIndexConfig_IsMultiVector_Call) Run(run func()) *MockVectorIndexConfig_IsMultiVector_Call
func (*MockVectorIndexConfig_IsMultiVector_Call) RunAndReturn ¶ added in v1.35.17
func (_c *MockVectorIndexConfig_IsMultiVector_Call) RunAndReturn(run func() bool) *MockVectorIndexConfig_IsMultiVector_Call
type VectorIndexConfig ¶
func TypeAssertVectorIndex ¶
func TypeAssertVectorIndex(class *models.Class, targetVectors []string) ([]VectorIndexConfig, error)