change model to qwen3:30b , slight change to prompt and change schedule of telebot to :30
This commit is contained in:
parent
28a5cc9448
commit
fca1b3e1dd
5 changed files with 24 additions and 6 deletions
|
|
@ -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
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -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".
|
||||
|
|
|
|||
|
|
@ -13,3 +13,5 @@ resources:
|
|||
- telebot-secret.yaml
|
||||
- gemma-configmap.yaml
|
||||
- analyst-cronjob.yaml
|
||||
- ollama-storage.yaml
|
||||
|
||||
|
|
|
|||
11
apps/base/customer1/news_bot/ollama-storage.yaml
Normal file
11
apps/base/customer1/news_bot/ollama-storage.yaml
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
apiVersion: v1
|
||||
kind: PersistentVolumeClaim
|
||||
metadata:
|
||||
name: ollama-storage
|
||||
namespace: customer1
|
||||
spec:
|
||||
accessModes:
|
||||
- ReadWriteOnce
|
||||
resources:
|
||||
requests:
|
||||
storage: 50Gi
|
||||
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue