langchainrb 0.9.1 → 0.9.2
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 -0
- data/lib/langchain/vectorsearch/chroma.rb +3 -1
- data/lib/langchain/vectorsearch/elasticsearch.rb +3 -1
- data/lib/langchain/vectorsearch/epsilla.rb +3 -1
- data/lib/langchain/vectorsearch/milvus.rb +3 -1
- data/lib/langchain/vectorsearch/pgvector.rb +3 -1
- data/lib/langchain/vectorsearch/pinecone.rb +3 -1
- data/lib/langchain/vectorsearch/qdrant.rb +3 -1
- data/lib/langchain/vectorsearch/weaviate.rb +3 -1
- data/lib/langchain/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cdaafd0889d6666c7aa39d8bee71763f8baf86e0566f9e87312fc6033d07709d
|
4
|
+
data.tar.gz: 7acc9f122aed92eab9ab2ac1d50f7ee59c0e24030335dc15878769b7664ffc6b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b76f62411f75eccba98371791e63b18f0f22225de1af7449cde40680acbd1dc09c4b5a6b7eeb1ac667dd9b029c52534fbfbe10a5fa465fa0859059ddb32a400c
|
7
|
+
data.tar.gz: 64052a22206ece081a2fd9fbf0233ba47f40539743b1def6d7fc9beeb31102f5559878514cbc0d503fd13681e5efbb34c2755cacbd62b1b01b67876bc9d6237e
|
data/CHANGELOG.md
CHANGED
@@ -126,7 +126,9 @@ module Langchain::Vectorsearch
|
|
126
126
|
|
127
127
|
prompt = generate_rag_prompt(question: question, context: context)
|
128
128
|
|
129
|
-
|
129
|
+
messages = [{role: "user", content: prompt}]
|
130
|
+
response = llm.chat(messages: messages, &block)
|
131
|
+
|
130
132
|
response.context = context
|
131
133
|
response
|
132
134
|
end
|
@@ -141,7 +141,9 @@ module Langchain::Vectorsearch
|
|
141
141
|
|
142
142
|
prompt = generate_rag_prompt(question: question, context: context)
|
143
143
|
|
144
|
-
|
144
|
+
messages = [{role: "user", content: prompt}]
|
145
|
+
response = llm.chat(messages: messages, &block)
|
146
|
+
|
145
147
|
response.context = context
|
146
148
|
response
|
147
149
|
end
|
@@ -139,7 +139,9 @@ module Langchain::Vectorsearch
|
|
139
139
|
|
140
140
|
prompt = generate_rag_prompt(question: question, context: context)
|
141
141
|
|
142
|
-
|
142
|
+
messages = [{role: "user", content: prompt}]
|
143
|
+
response = llm.chat(messages: messages, &block)
|
144
|
+
|
143
145
|
response.context = context
|
144
146
|
response
|
145
147
|
end
|
@@ -151,7 +151,9 @@ module Langchain::Vectorsearch
|
|
151
151
|
|
152
152
|
prompt = generate_rag_prompt(question: question, context: context)
|
153
153
|
|
154
|
-
|
154
|
+
messages = [{role: "user", content: prompt}]
|
155
|
+
response = llm.chat(messages: messages, &block)
|
156
|
+
|
155
157
|
response.context = context
|
156
158
|
response
|
157
159
|
end
|
@@ -148,7 +148,9 @@ module Langchain::Vectorsearch
|
|
148
148
|
|
149
149
|
prompt = generate_rag_prompt(question: question, context: context)
|
150
150
|
|
151
|
-
|
151
|
+
messages = [{role: "user", content: prompt}]
|
152
|
+
response = llm.chat(messages: messages, &block)
|
153
|
+
|
152
154
|
response.context = context
|
153
155
|
response
|
154
156
|
end
|
@@ -181,7 +181,9 @@ module Langchain::Vectorsearch
|
|
181
181
|
|
182
182
|
prompt = generate_rag_prompt(question: question, context: context)
|
183
183
|
|
184
|
-
|
184
|
+
messages = [{role: "user", content: prompt}]
|
185
|
+
response = llm.chat(messages: messages, &block)
|
186
|
+
|
185
187
|
response.context = context
|
186
188
|
response
|
187
189
|
end
|
@@ -137,7 +137,9 @@ module Langchain::Vectorsearch
|
|
137
137
|
|
138
138
|
prompt = generate_rag_prompt(question: question, context: context)
|
139
139
|
|
140
|
-
|
140
|
+
messages = [{role: "user", content: prompt}]
|
141
|
+
response = llm.chat(messages: messages, &block)
|
142
|
+
|
141
143
|
response.context = context
|
142
144
|
response
|
143
145
|
end
|
@@ -137,7 +137,9 @@ module Langchain::Vectorsearch
|
|
137
137
|
|
138
138
|
prompt = generate_rag_prompt(question: question, context: context)
|
139
139
|
|
140
|
-
|
140
|
+
messages = [{role: "user", content: prompt}]
|
141
|
+
response = llm.chat(messages: messages, &block)
|
142
|
+
|
141
143
|
response.context = context
|
142
144
|
response
|
143
145
|
end
|
data/lib/langchain/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: langchainrb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.
|
4
|
+
version: 0.9.2
|
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-02-
|
11
|
+
date: 2024-02-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: baran
|
@@ -240,14 +240,14 @@ dependencies:
|
|
240
240
|
requirements:
|
241
241
|
- - "~>"
|
242
242
|
- !ruby/object:Gem::Version
|
243
|
-
version: 0.9.
|
243
|
+
version: 0.9.8
|
244
244
|
type: :development
|
245
245
|
prerelease: false
|
246
246
|
version_requirements: !ruby/object:Gem::Requirement
|
247
247
|
requirements:
|
248
248
|
- - "~>"
|
249
249
|
- !ruby/object:Gem::Version
|
250
|
-
version: 0.9.
|
250
|
+
version: 0.9.8
|
251
251
|
- !ruby/object:Gem::Dependency
|
252
252
|
name: docx
|
253
253
|
requirement: !ruby/object:Gem::Requirement
|