From fca1b3e1dd76b11c437b9244f0f48a6896fe0f73 Mon Sep 17 00:00:00 2001 From: sirius0xdev Date: Wed, 4 Feb 2026 01:44:28 +0000 Subject: [PATCH] change model to qwen3:30b , slight change to prompt and change schedule of telebot to :30 --- apps/base/customer1/news_bot/analyst-cronjob.yaml | 8 ++++++-- apps/base/customer1/news_bot/gemma-configmap.yaml | 7 ++++--- apps/base/customer1/news_bot/kustomization.yaml | 2 ++ apps/base/customer1/news_bot/ollama-storage.yaml | 11 +++++++++++ apps/base/customer1/news_bot/telebot-cronjob.yaml | 2 +- 5 files changed, 24 insertions(+), 6 deletions(-) create mode 100644 apps/base/customer1/news_bot/ollama-storage.yaml diff --git a/apps/base/customer1/news_bot/analyst-cronjob.yaml b/apps/base/customer1/news_bot/analyst-cronjob.yaml index 91a9909..e01f806 100644 --- a/apps/base/customer1/news_bot/analyst-cronjob.yaml +++ b/apps/base/customer1/news_bot/analyst-cronjob.yaml @@ -11,7 +11,9 @@ spec: spec: volumes: - name: ollama-storage - emptyDir: {} + persistentVolumeClaim: + claimName: ollama-storage + initContainers: - name: model-puller @@ -20,7 +22,7 @@ spec: - name: ollama-storage mountPath: /root/.ollama command: ["/bin/sh", "-c"] - args: ["ollama serve & sleep 5 && ollama pull gemma2"] + args: ["ollama serve & sleep 5 && ollama pull qwen3:30b"] - name: ollama-sidecar @@ -56,3 +58,5 @@ spec: # (or http://127.0.0.1:11434) restartPolicy: OnFailure + + diff --git a/apps/base/customer1/news_bot/gemma-configmap.yaml b/apps/base/customer1/news_bot/gemma-configmap.yaml index ae0ee76..8fd6388 100644 --- a/apps/base/customer1/news_bot/gemma-configmap.yaml +++ b/apps/base/customer1/news_bot/gemma-configmap.yaml @@ -9,9 +9,9 @@ data: DB_USER: "news_app" DB_PORT: "5432" LLM_URL: "http://localhost:11434" - MODEL_NAME: "gemma2" + MODEL_NAME: "qwen3-30b" SUMMARY_PROMPT: | - You are an expert news analyst working for DARPA. Your task is to deliver thorough, insightful analysis of the provided news articles. + You are an expert news analyst working for Sirius Media. Your task is to deliver thorough, insightful analysis of the provided news articles. ARTICLES: {data} @@ -24,10 +24,11 @@ data: - Always produce substantial content — even if articles seem minor, extract value, implications, or connections. - Use neutral, professional, analytical tone with precise language. - Structure your response clearly with headings like: + - At the end give 3-6 stock tickers of companies that may bennefit or fall from the articles . Say weither to Long or Short the stock. ## Most Impactful Events ### Event 1: [Brief Title] [4–6 sentences...] ... ## Synthesis of Lesser Developments [Paragraphs...] - - Output ONLY the structured report — no introductions, apologies, or meta-comments like "no major events found". + - Output ONLY the structured report translate everything to English — no introductions, apologies, or meta-comments like "no major events found". diff --git a/apps/base/customer1/news_bot/kustomization.yaml b/apps/base/customer1/news_bot/kustomization.yaml index b38cda4..a14ee70 100644 --- a/apps/base/customer1/news_bot/kustomization.yaml +++ b/apps/base/customer1/news_bot/kustomization.yaml @@ -13,3 +13,5 @@ resources: - telebot-secret.yaml - gemma-configmap.yaml - analyst-cronjob.yaml + - ollama-storage.yaml + diff --git a/apps/base/customer1/news_bot/ollama-storage.yaml b/apps/base/customer1/news_bot/ollama-storage.yaml new file mode 100644 index 0000000..7e8a17e --- /dev/null +++ b/apps/base/customer1/news_bot/ollama-storage.yaml @@ -0,0 +1,11 @@ +apiVersion: v1 +kind: PersistentVolumeClaim +metadata: + name: ollama-storage + namespace: customer1 +spec: + accessModes: + - ReadWriteOnce + resources: + requests: + storage: 50Gi diff --git a/apps/base/customer1/news_bot/telebot-cronjob.yaml b/apps/base/customer1/news_bot/telebot-cronjob.yaml index 4775120..6f2ecf1 100644 --- a/apps/base/customer1/news_bot/telebot-cronjob.yaml +++ b/apps/base/customer1/news_bot/telebot-cronjob.yaml @@ -4,7 +4,7 @@ metadata: name: news-messenger namespace: customer1 spec: - schedule: "20 * * * *" # Runs at :20 every hour + schedule: "30 * * * *" # Runs at :30 every hour jobTemplate: spec: template: