Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions vector.go
Original file line number Diff line number Diff line change
Expand Up @@ -95,3 +95,15 @@ const TrainingKey = "_training"
const TrainedIndexCallback = "_trained_index_callback"

type TrainedIndexCallbackFn func(string) (interface{}, error)

// GPU vector search error callbacks

// Called when an index move from CPU to CPU fails
const CPUToGPUCloneErrorKey = "_cpu_to_gpu_clone_error"

type CPUToGPUCloneErrorCallback func(err error)

// Called when a generic error occurs on the GPU
const GPUErrorKey = "_gpu_error"

type GPUErrorCallback func(err error)
Comment thread
capemox marked this conversation as resolved.
Loading