mirror of
https://github.com/mudler/LocalAI.git
synced 2025-05-25 21:15:00 +00:00
Stores to chromem (WIP)
Signed-off-by: Ettore Di Giacinto <mudler@localai.io>
This commit is contained in:
parent
2f09aa1b85
commit
a1d5462ad0
16 changed files with 50 additions and 489 deletions
|
@ -70,6 +70,10 @@ var _ = Describe("Integration tests for the stores backend(s) and internal APIs"
|
|||
})
|
||||
|
||||
It("should be able to set a key", func() {
|
||||
sc.StoresSet(context.Background(), &store.StoresSetOptions{
|
||||
Keys: [][]float32{{0.1, 0.2, 0.3}},
|
||||
Values: [][]byte{[]byte("test")},
|
||||
})
|
||||
err := store.SetSingle(context.Background(), sc, []float32{0.1, 0.2, 0.3}, []byte("test"))
|
||||
Expect(err).ToNot(HaveOccurred())
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue