-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathprocess.py
More file actions
38 lines (26 loc) · 757 Bytes
/
process.py
File metadata and controls
38 lines (26 loc) · 757 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
import ollama
FEEDBACK_FILE = "feedback-5.0.txt"
MODEL = "llama3.1"
# MODEL = "llama3.2"
# MODEL = "gemma2"
PROMPT = """
Summarize the feedbacks for the event, keep every feedback point very short.
Make sure to include every opinion and note when it is suported by multiple people. Try to find patterns in the feedback.
Some feedback is in Czech make sure to translate it to English.
The feedbacks follow:
{}
"""
def main():
feedback = ""
with open(FEEDBACK_FILE, 'r') as f:
feedback = f.read().strip()
prompt = PROMPT.format(feedback)
print(prompt)
print("----")
response = ollama.generate(
model=MODEL,
prompt=prompt,
)
print(response["response"])
if __name__ == '__main__':
main()