langchainrb_rails 0.1.6 → 0.1.7

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 262c77cc37284572d2ae586351fa8a0de84ab842df2b6145263bb36387107ef6
4
- data.tar.gz: 663f5528780513d3480696f93505146be9d3735e35f5e4da55c33d552d375687
3
+ metadata.gz: d1d6c529266751fa4ea1c1012d4880d7351825b3d63bab077011d61e0d98364e
4
+ data.tar.gz: 6a8f9d5c2a960b8da82a323930355e7e690d0906d9800c73b514428a6f988ab4
5
5
  SHA512:
6
- metadata.gz: cf3ccaedef7d42260d76d5c923300f466195d981285617f811d0888273134db9d8e23ce3cbb2e994f6f0c3352e7364da9a2256fa9004bd5a06b01c14e79a4ece
7
- data.tar.gz: 47cbfcfc417a4fca10742a6484d9f379f3003c1f97ca6720e3d04937dc7cd3a32332682c160c0f6c727a5ade5e843a685d58c50faa237d812eeee3ad90b99f03
6
+ metadata.gz: 065072fe2494a55c0c770f3362932c2e87bccd76cc1dd057a27b3e128ec2f7e62d0bc4430a36ce233f02c817aaa96c3ca583056c50b95c56be99f2c89407d1b9
7
+ data.tar.gz: 714f28fbd371169f221ddd86d87b18b18a89e45806feb58943a888c50063d5cce2b8b55be0d689ba60de48d85e15bc934a25f0ff9f1b3c205dbb5879a8d82dc5
data/CHANGELOG.md CHANGED
@@ -1,6 +1,9 @@
1
1
  ## [Unreleased]
2
2
 
3
- ## [0.1.6] - 2023-01-25
3
+ ## [0.1.7] - 2024-01-29
4
+ - Fix Pgvector#ask method
5
+
6
+ ## [0.1.6] - 2024-01-25
4
7
  - Fix bug when multiple ActiveRecord models use vectorsearch
5
8
  - Bump langchainrb version
6
9
  - Avoid extra query when Pgvector is used
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- langchainrb_rails (0.1.6)
4
+ langchainrb_rails (0.1.7)
5
5
  langchainrb (>= 0.7, < 0.10)
6
6
 
7
7
  GEM
@@ -117,7 +117,8 @@ module Langchain::Vectorsearch
117
117
 
118
118
  prompt = generate_rag_prompt(question: question, context: context)
119
119
 
120
- llm.chat(prompt: prompt, &block)
120
+ messages = [{role: "user", content: prompt}]
121
+ llm.chat(messages: messages, &block)
121
122
  end
122
123
  end
123
124
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module LangchainrbRails
4
- VERSION = "0.1.6"
4
+ VERSION = "0.1.7"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: langchainrb_rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.6
4
+ version: 0.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrei Bondarev
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-01-25 00:00:00.000000000 Z
11
+ date: 2024-01-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: langchainrb