summary refs log tree commit diff stats
path: root/ollama/llm.py
diff options
context:
space:
mode:
authorChristian Krinitsin <mail@krinitsin.com>2025-06-26 07:33:21 +0000
committerChristian Krinitsin <mail@krinitsin.com>2025-06-26 07:33:21 +0000
commitba2789bd7d81618a42dc7f69706a7acfa591630a (patch)
tree4aae3f6659946b6da5b436f38a7786a632c930be /ollama/llm.py
parent9aba81d8eb048db908c94a3c40c25a5fde0caee6 (diff)
downloademulator-bug-study-ba2789bd7d81618a42dc7f69706a7acfa591630a.tar.gz
emulator-bug-study-ba2789bd7d81618a42dc7f69706a7acfa591630a.zip
add prompt-based classifier and first results with DeepSeek-R1:14b
Diffstat (limited to 'ollama/llm.py')
-rwxr-xr-xollama/llm.py28
1 files changed, 0 insertions, 28 deletions
diff --git a/ollama/llm.py b/ollama/llm.py
deleted file mode 100755
index d6ea059c..00000000
--- a/ollama/llm.py
+++ /dev/null
@@ -1,28 +0,0 @@
-from ollama import chat, ChatResponse
-from re import sub
-from os import listdir, path
-
-model : str = "deepseek-r1:70b"
-directory : str = "../results/scraper/mailinglist"
-
-with open("preambel", "r") as file:
-    preambel = file.read()
-
-for name in listdir(directory):
-    with open(path.join(directory, name)) as file:
-        content = preambel + "\n" + file.read()
-
-    response : ChatResponse = chat(
-        model=model, messages=[
-            {
-                'role': 'user',
-                'content': content,
-            }
-        ]
-    )
-
-    no_think_response : str = sub(r'<think>(.|\n)*</think>\n\n', '', response.message.content)
-
-    print(no_think_response)
-    print("\n")
-    exit()