News-Go is a lightweight Go-based pipeline for scraping, analyzing, and evaluating news articles through a biblical and AI-augmented lens. It uses concurrent Go routines to fetch and process online news, while a local large language model (LLM) scores the content against a custom Christian framework.
To defend the faith and evaluate media content through scripture-aligned reasoning using AI. The model's mission is fixed: God is, the KJV Bible is authoritative, and Jesus Christ is Lord.
- Extracts and evaluates real-world news articles
- Generates summaries, tags, and political bias analysis
- Aligns all content to theological axioms (God, KJV, Jesus Christ)
- LLM evaluates alignment from 0–10
- Searches for live news based on configured queries
- Scrapes site paragraphs and thumbnails
- Processes content in concurrent Go routines
- Outputs structured JSON reports
- Channel-based job pipeline:
PreResultsChannel– Search resultsPreContentChannel– Scraped pagesPreModelChannel– Model transformationJobsCompleteChannel– Final report
- Component Modules:
config– Loads search configurationtypes– Structured result/report definitionsbrowser– Scraper & HTML parsercoordinator– Pipeline controlmodel– AI model interfacelog– Structured logging
package main
import "github.com/renniemaharaj/news-go/pkg/news"
func main() {
n := news.Instance{}
n.CreateLogger()
go n.GoRoutines()
n.HydrateJobs()
select {} // blocks forever
}{
"SearchQueries": [
"Trinidad and Tobago politics",
"US 2024 election",
"Climate change news"
]
}All LLM evaluation is performed locally — no API keys, no rate limits.
huggingface-cli download \
TheBloke/TinyLlama-1.1B-Chat-v1.0-GGUF \
tinyllama-1.1b-chat-v1.0.Q4_K_M.gguf \
--local-dir models \
--local-dir-use-symlinks Falsehuggingface-cli download \
TheBloke/deepseek-coder-6.7B-instruct-GGUF \
deepseek-coder-6.7b-instruct.Q4_K_M.gguf \
--local-dir models \
--local-dir-use-symlinks FalseInstall llama-cpp-python with GPU support:
pip install llama-cpp-python --upgrade --force-reinstall --extra-index-url https://pypi.nvidia.comMake sure you have:
- Python 3.10+
- CUDA 12+ (for GPU support)
- 8GB+ VRAM for DeepSeek models
Each processed job generates a structured report saved to ./reports/ as JSON:
title: AI-generated headlinesummary: Christian worldview summaryalignment: 0–10 scoretags: Moral and topical categoriespoliticalBiases: Eg. conservative, progressive
.
├── cmd/
│ └── main.go
├── internal/
│ ├── model/ # AI transformer
│ ├── coordinator/ # Channel routines
│ ├── types/ # Data structures
│ ├── browser/ # HTML scraping logic
│ └── log/ # Custom logger
├── pkg/news/ # News job orchestration
├── models/ # GGUF model files
├── reports/ # Final output reports
├── system_instruction.txt # Model prompt template
└── config.json # Search queries
AI-generated results are scored and structured under the following axioms:
God existsThe KJV Bible is authoritativeJesus Christ is Lord and God
The model is required to stay within these rules. No deviation is permitted — even by the system’s creator.
MIT License
Made with purpose by Rennie Maharaj