summarize-meeting 1.1.0 → 1.3.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 +15 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9d6006b164f0ac9c90c1ba8f1cb6b104a58a1db6b86979daa6c3a7151a921fed
|
4
|
+
data.tar.gz: 6273676387deccd503f02234c7c7bfcf92df453b35e14bd43ce6e42a1627b529
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c07e547b58e802fa35415861a11f9094d5bcea7ffcacf4a6177d9facf9ab63ab9db86796fd280a01d36769ecf33b9075ac8d74239e9a9e7fe553f7e1c25a2b5a
|
7
|
+
data.tar.gz: 9aacf4350a4de7ef8253baae3d2a09c77dcbc4369874c193609a73823d6bbe9a4bf6609a60f22d52ff1a8c9db5ec847139a9a5d151846bf91f835a56a134be02
|
@@ -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)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: summarize-meeting
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sean Devine
|
@@ -122,6 +122,20 @@ dependencies:
|
|
122
122
|
- - ">="
|
123
123
|
- !ruby/object:Gem::Version
|
124
124
|
version: '0'
|
125
|
+
- !ruby/object:Gem::Dependency
|
126
|
+
name: pry
|
127
|
+
requirement: !ruby/object:Gem::Requirement
|
128
|
+
requirements:
|
129
|
+
- - ">="
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
version: '0'
|
132
|
+
type: :development
|
133
|
+
prerelease: false
|
134
|
+
version_requirements: !ruby/object:Gem::Requirement
|
135
|
+
requirements:
|
136
|
+
- - ">="
|
137
|
+
- !ruby/object:Gem::Version
|
138
|
+
version: '0'
|
125
139
|
description: A command line utility that summarizes a meeting using generative language
|
126
140
|
models.
|
127
141
|
email: sean-devine@x-b-e.com
|