Skip to content

Commit

Permalink
add yaml and fix fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
richiejp committed Mar 11, 2024
1 parent 5277f7f commit 3d562bc
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions core/schema/localai.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ type StoresSet struct {
}

type StoresDelete struct {
Store string `json:"store,omitempty" yaml:"store,omitempty"`
Keys [][]float32 `json:"keys"`
Store string `json:"store,omitempty" yaml:"store,omitempty"`

Keys [][]float32 `json:"keys"`
}

type StoresGet struct {
Expand All @@ -47,12 +47,12 @@ type StoresGetResponse struct {
type StoresFind struct {
Store string `json:"store,omitempty" yaml:"store,omitempty"`

Key []float32 `json:"key"`
Topk int `json:"topk"`
Key []float32 `json:"key" yaml:"key"`
Topk int `json:"topk" yaml:"topk"`
}

type StoresFindResponse struct {
Keys [][]float32 `json:"keys" yaml:"keys"`
Values []string `json:"values" yaml:"values"`
Similarities []float32 `json:"similarities" yaml:"similarities"`
Keys [][]float32 `json:"keys" yaml:"keys"`
Values []string `json:"values" yaml:"values"`
Similarities []float32 `json:"similarities" yaml:"similarities"`
}

0 comments on commit 3d562bc

Please sign in to comment.