Skip to content

Commit

Permalink
0.1.14
Browse files Browse the repository at this point in the history
  • Loading branch information
shohey1226 committed Aug 1, 2023
1 parent e1d4dab commit 4cdcdad
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PATH
remote: .
specs:
llm_memory (0.1.13)
llm_memory (0.1.14)
redis (~> 4.6.0)
ruby-openai (~> 3.7.0)
tokenizers (~> 0.3.3)
Expand All @@ -24,7 +24,7 @@ GEM
json (2.6.3)
language_server-protocol (3.17.0.3)
lint_roller (1.0.0)
llm_memory_pgvector (0.1.4)
llm_memory_pgvector (0.1.5)
llm_memory (~> 0.1.7)
pg (~> 1.5.3)
pgvector (~> 0.2.0)
Expand Down
2 changes: 1 addition & 1 deletion lib/llm_memory/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# frozen_string_literal: true

module LlmMemory
VERSION = "0.1.13"
VERSION = "0.1.14"
end
2 changes: 2 additions & 0 deletions spec/llm_memory/hippocampus_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,8 @@
{content: "I like music", metadata: {info: "hobby"}}
]
hippocampus.memorize(docs)
expect(hippocampus.list.map { |s| s["id"] }).to eq([1, 2, 3])
expect(hippocampus.list(id: [1, 2]).map { |s| s["id"] }).to eq([1, 2])
res = hippocampus.query("What is my name?", limit: 2)
expect(res.first[:content]).to eq("Hello, I'm Shohei.")
expect(res.first[:metadata][:info]).to eq("name")
Expand Down

0 comments on commit 4cdcdad

Please sign in to comment.