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 +4 -4
- data/CHANGELOG.md +4 -1
- data/Gemfile.lock +1 -1
- data/lib/langchainrb_overrides/vectorsearch/pgvector.rb +2 -1
- data/lib/langchainrb_rails/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d1d6c529266751fa4ea1c1012d4880d7351825b3d63bab077011d61e0d98364e
|
4
|
+
data.tar.gz: 6a8f9d5c2a960b8da82a323930355e7e690d0906d9800c73b514428a6f988ab4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 065072fe2494a55c0c770f3362932c2e87bccd76cc1dd057a27b3e128ec2f7e62d0bc4430a36ce233f02c817aaa96c3ca583056c50b95c56be99f2c89407d1b9
|
7
|
+
data.tar.gz: 714f28fbd371169f221ddd86d87b18b18a89e45806feb58943a888c50063d5cce2b8b55be0d689ba60de48d85e15bc934a25f0ff9f1b3c205dbb5879a8d82dc5
|
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
@@ -117,7 +117,8 @@ module Langchain::Vectorsearch
|
|
117
117
|
|
118
118
|
prompt = generate_rag_prompt(question: question, context: context)
|
119
119
|
|
120
|
-
|
120
|
+
messages = [{role: "user", content: prompt}]
|
121
|
+
llm.chat(messages: messages, &block)
|
121
122
|
end
|
122
123
|
end
|
123
124
|
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.
|
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-
|
11
|
+
date: 2024-01-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: langchainrb
|