change model to qwen3:30b , slight change to prompt and change schedule of telebot to :30

This commit is contained in:
sirius0xdev 2026-02-04 01:44:28 +00:00
parent 28a5cc9448
commit fca1b3e1dd
5 changed files with 24 additions and 6 deletions

View file

@ -11,7 +11,9 @@ spec:
spec: spec:
volumes: volumes:
- name: ollama-storage - name: ollama-storage
emptyDir: {} persistentVolumeClaim:
claimName: ollama-storage
initContainers: initContainers:
- name: model-puller - name: model-puller
@ -20,7 +22,7 @@ spec:
- name: ollama-storage - name: ollama-storage
mountPath: /root/.ollama mountPath: /root/.ollama
command: ["/bin/sh", "-c"] command: ["/bin/sh", "-c"]
args: ["ollama serve & sleep 5 && ollama pull gemma2"] args: ["ollama serve & sleep 5 && ollama pull qwen3:30b"]
- name: ollama-sidecar - name: ollama-sidecar
@ -56,3 +58,5 @@ spec:
# (or http://127.0.0.1:11434) # (or http://127.0.0.1:11434)
restartPolicy: OnFailure restartPolicy: OnFailure

View file

@ -9,9 +9,9 @@ data:
DB_USER: "news_app" DB_USER: "news_app"
DB_PORT: "5432" DB_PORT: "5432"
LLM_URL: "http://localhost:11434" LLM_URL: "http://localhost:11434"
MODEL_NAME: "gemma2" MODEL_NAME: "qwen3-30b"
SUMMARY_PROMPT: | 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: ARTICLES:
{data} {data}
@ -24,10 +24,11 @@ data:
- Always produce substantial content — even if articles seem minor, extract value, implications, or connections. - Always produce substantial content — even if articles seem minor, extract value, implications, or connections.
- Use neutral, professional, analytical tone with precise language. - Use neutral, professional, analytical tone with precise language.
- Structure your response clearly with headings like: - 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 ## Most Impactful Events
### Event 1: [Brief Title] ### Event 1: [Brief Title]
[46 sentences...] [46 sentences...]
... ...
## Synthesis of Lesser Developments ## Synthesis of Lesser Developments
[Paragraphs...] [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".

View file

@ -13,3 +13,5 @@ resources:
- telebot-secret.yaml - telebot-secret.yaml
- gemma-configmap.yaml - gemma-configmap.yaml
- analyst-cronjob.yaml - analyst-cronjob.yaml
- ollama-storage.yaml

View file

@ -0,0 +1,11 @@
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: ollama-storage
namespace: customer1
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 50Gi

View file

@ -4,7 +4,7 @@ metadata:
name: news-messenger name: news-messenger
namespace: customer1 namespace: customer1
spec: spec:
schedule: "20 * * * *" # Runs at :20 every hour schedule: "30 * * * *" # Runs at :30 every hour
jobTemplate: jobTemplate:
spec: spec:
template: template: