legion-llm 0.6.14 → 0.6.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/lib/legion/llm/pipeline/steps/knowledge_capture.rb +20 -12
- data/lib/legion/llm/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 89101e37722ff5c0c96015b465b3231567b5636c796b49f94b4537fb2e9d0c9d
|
|
4
|
+
data.tar.gz: 383eb42f22009930320e9a952e165f1e0a8cb95530c4c2444e70fb30d2f804fe
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 501e4e9051fcaa678c85f47841bdbb2a97b4de433ce8a8be5767f11f4c2a1ccbebcedaa0a9962db82c92c49d209cf4dc71b9027cccc91ec5f8f458b537ee8437
|
|
7
|
+
data.tar.gz: f822fa3df241dc19568b70e02198a86404baecc4ab1238ef45f5ac7d6079821e7b52db924ac45db42d23df5f70c15285d576d85e581efd609f79f49fa41471bc
|
data/CHANGELOG.md
CHANGED
|
@@ -11,21 +11,29 @@ module Legion
|
|
|
11
11
|
|
|
12
12
|
def step_knowledge_capture
|
|
13
13
|
response = current_response
|
|
14
|
+
request = @request
|
|
15
|
+
enrichments = @enrichments
|
|
16
|
+
local_enabled = local_capture_enabled?
|
|
14
17
|
|
|
15
|
-
|
|
16
|
-
Legion::Extensions::Apollo::Helpers::Writeback
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
18
|
+
Thread.new do
|
|
19
|
+
if defined?(Legion::Extensions::Apollo::Helpers::Writeback)
|
|
20
|
+
Legion::Extensions::Apollo::Helpers::Writeback.evaluate_and_route(
|
|
21
|
+
request: request,
|
|
22
|
+
response: response,
|
|
23
|
+
enrichments: enrichments
|
|
24
|
+
)
|
|
25
|
+
end
|
|
26
|
+
|
|
27
|
+
ingest_to_local(response: response) if local_enabled
|
|
28
|
+
rescue StandardError => e
|
|
29
|
+
handle_exception(e, level: :warn, operation: 'llm.pipeline.steps.knowledge_capture.async')
|
|
26
30
|
end
|
|
27
31
|
|
|
28
|
-
|
|
32
|
+
@timeline.record(
|
|
33
|
+
category: :knowledge, key: 'knowledge:capture',
|
|
34
|
+
direction: :outbound, detail: 'knowledge capture dispatched async',
|
|
35
|
+
from: 'pipeline', to: 'apollo'
|
|
36
|
+
)
|
|
29
37
|
rescue StandardError => e
|
|
30
38
|
@warnings << "knowledge_capture error: #{e.message}"
|
|
31
39
|
handle_exception(e, level: :warn, operation: 'llm.pipeline.steps.knowledge_capture')
|
data/lib/legion/llm/version.rb
CHANGED