Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 8 additions & 6 deletions lib/legion/extensions/knowledge/runners/ingest.rb
Original file line number Diff line number Diff line change
Expand Up @@ -320,12 +320,14 @@ def ingest_to_apollo(chunk, embedding)
token_count: chunk[:token_count]
}
payload = {
content: chunk[:content],
content_type: 'document_chunk',
content_hash: chunk[:content_hash],
tags: [chunk[:source_file], chunk[:heading], 'document_chunk'].compact.uniq,
context: context,
metadata: context
content: chunk[:content],
content_type: 'document_chunk',
content_hash: chunk[:content_hash],
tags: [chunk[:source_file], chunk[:heading], 'document_chunk'].compact.uniq,
source_agent: 'lex-knowledge',
source_channel: 'corpus_ingest',
context: context,
metadata: context
}
payload[:embedding] = embedding if embedding

Expand Down
2 changes: 1 addition & 1 deletion lib/legion/extensions/knowledge/version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
module Legion
module Extensions
module Knowledge
VERSION = '0.6.15'
VERSION = '0.6.16'
end
end
end
Loading