Skip to content

Commit 3d562bc

Browse files
committed
add yaml and fix fmt
1 parent 5277f7f commit 3d562bc

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

core/schema/localai.go

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@ type StoresSet struct {
2828
}
2929

3030
type StoresDelete struct {
31-
Store string `json:"store,omitempty" yaml:"store,omitempty"`
32-
33-
Keys [][]float32 `json:"keys"`
31+
Store string `json:"store,omitempty" yaml:"store,omitempty"`
32+
33+
Keys [][]float32 `json:"keys"`
3434
}
3535

3636
type StoresGet struct {
@@ -47,12 +47,12 @@ type StoresGetResponse struct {
4747
type StoresFind struct {
4848
Store string `json:"store,omitempty" yaml:"store,omitempty"`
4949

50-
Key []float32 `json:"key"`
51-
Topk int `json:"topk"`
50+
Key []float32 `json:"key" yaml:"key"`
51+
Topk int `json:"topk" yaml:"topk"`
5252
}
5353

5454
type StoresFindResponse struct {
55-
Keys [][]float32 `json:"keys" yaml:"keys"`
56-
Values []string `json:"values" yaml:"values"`
57-
Similarities []float32 `json:"similarities" yaml:"similarities"`
55+
Keys [][]float32 `json:"keys" yaml:"keys"`
56+
Values []string `json:"values" yaml:"values"`
57+
Similarities []float32 `json:"similarities" yaml:"similarities"`
5858
}

0 commit comments

Comments
 (0)