summarize-meeting 1.1.0 → 1.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/summarize-meeting/meeting.rb +3 -3
- data/lib/summarize-meeting/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: 50b154d8f5d117b51fb3a377ad725088262543c05d5ee2614929511ad093a553
|
4
|
+
data.tar.gz: 66f0a4144e8b5bf6d36792bdb0432014b803e4eff020060fc9d5045c1631edef
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fd077cdfe8a177d145a5ab4672d14477cbd7a06124f0eeb03c834ef5eb632022d76920ab1ee6cba38e81204f91faa48cb1bdcc1683a86db1f7305e232cc3380a
|
7
|
+
data.tar.gz: fc2061143753fc8865b39702cfc215ae7732f8e697f8288170f07a8ba1f627c3078f4d37c40e725506413a2718cb5b7b3f93d427cd6d94a3d1ee7f0d30246192
|
@@ -13,7 +13,7 @@ module SummarizeMeeting
|
|
13
13
|
},
|
14
14
|
{
|
15
15
|
role: "system",
|
16
|
-
content: "The transcript of the meeting is split into {{chunkCount}} chunks. This is the {{chunkIndex}}
|
16
|
+
content: "The transcript of the meeting is split into {{chunkCount}} chunks. This is the chunk number {{chunkIndex}} of {{chunkCount}}.",
|
17
17
|
},
|
18
18
|
{
|
19
19
|
role: "assistant",
|
@@ -85,14 +85,14 @@ module SummarizeMeeting
|
|
85
85
|
consolidated_template = CONSOLIDATED_SUMMARY_PROMPT_TEMPLATE
|
86
86
|
prompt = Mustache.render(consolidated_template.to_json, { notes: previous_chunks_summary.to_json })
|
87
87
|
messages = JSON.parse(prompt)
|
88
|
-
SummarizeMeeting::Ai.chat(messages
|
88
|
+
SummarizeMeeting::Ai.chat(messages)
|
89
89
|
end
|
90
90
|
|
91
91
|
def summarize_chunk(chunk, chunk_index, chunk_count, previous_chunks_summary)
|
92
92
|
template = LINE_SUMMARY_PROMPT_TEMPLATE
|
93
93
|
prompt = Mustache.render(template.to_json, { chunkCount: chunk_count, chunkIndex: chunk_index + 1, chunk: chunk.join("\n").to_json })
|
94
94
|
messages = JSON.parse(prompt)
|
95
|
-
SummarizeMeeting::Ai.chat(messages
|
95
|
+
SummarizeMeeting::Ai.chat(messages)
|
96
96
|
end
|
97
97
|
|
98
98
|
def split_lines_into_equal_size_chunks(lines, max_chunk_word_count)
|