GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - FarrukhAijaz/SentinelIQ

BranchesTags
Open more actions menu

Latest commit

 

History

2 Commits
2 Commits

Folders and files

NameName
Last commit message
Last commit date
sentineliq
sentineliq
 
 
PROJECT_PLAN.md
PROJECT_PLAN.md
 
 
PROJECT_PURPOSE.md
PROJECT_PURPOSE.md
 
 
README.md
README.md
 
 

Repository files navigation

šŸ›”ļø SentinelIQ — Multi-Agent Competitive Intelligence Platform

Docker Compose n8n Integration Qdrant Vector DB PostgreSQL Ollama Local LLM License: MIT

An autonomous, deterministic 5-Agent Competitive Intelligence System that continuously monitors web updates, grounds findings using hybrid RAG, executes self-correction verification loops, and delivers actionable briefings to Slack with Human-in-the-Loop (HITL) approval gates.


šŸ“Œ Overview

Monitoring competitor updates (pricing shifts, product releases, landing page changes) usually requires tedious manual scraping and context switching. Standard LLM web-summarizers suffer from hallucinations, duplicate alerts, and lack of historical context.

SentinelIQ solves this with an engineering-first, multi-agent architecture built on top of a PostgreSQL Blackboard State Pattern. It guarantees factual groundedness through sentence-level verification gates, avoids redundant processing using upfront content-hash diffing, and keeps human reviewers in control via interactive Slack approvals.


šŸ—ļø 5-Agent Pipeline Architecture

 ā”Œā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”     ā”Œā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”     ā”Œā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”
 │  1. SCOUT      │ ──> │   2. RESEARCHER   │ ──> │   3. CRITIC         │ ──┐
 │ (Scrape/Hash)  │     │  (Hybrid RAG)     │     │ (Groundedness <0.7) │   │
 ā””ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”˜     ā””ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”˜     ā””ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”˜   │ (Max 2 Retries)
         │                        │                          │              │
         ā””ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”¼ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”˜              │
                                  ā–¼                                         │
                   [ PostgreSQL Blackboard State ] <ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”˜
                                  │
                                  ā–¼
                        ā”Œā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”     ā”Œā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”
                        │   4. STRATEGIST   │ ──> │    5. EDITOR        │ ──> [ Slack Webhook ]
                        │(Actionable Synthesis)   │  (Interactive HITL) │
                        ā””ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”˜     ā””ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”˜

🧠 Agent Roles & Responsibilities

šŸ•µļø Scout Agent (Ingestion & Routing)

  • Scrapes target sites using n8n + Cheerio.
  • Computes content-hash diffs to drop duplicate content immediately before embedding or calling LLMs, saving token budget.

šŸ”Ž Researcher Agent (Context & Retrieval)

  • Executes hybrid search (Dense Vectors + BM25 Sparse) in Qdrant.
  • Applies cross-encoder reranking and temporal filtering (captured_at) to retrieve net-new context versus historical competitor behavior.

āš–ļø Critic / Validator Agent (Deterministic Verification)

  • Evaluates generated findings against raw source snippets using sentence-level entailment checks.
  • If confidence score drops below 0.7, it triggers a state feedback loop, incrementing the retry counter and re-querying the Researcher (capped at 2 retries to prevent infinite loops).

šŸŽÆ Strategist Agent (Actionable Synthesis)

  • Translates validated updates into structured intelligence: Threat Level, Market Opportunities, and Suggested Counter-Actions.

āœļø Editor Agent (Human-in-the-Loop Gate)

  • Constructs interactive Slack Block Kit payloads with Approve, Edit, or Reject actions before final dissemination.

šŸ› ļø Key Architectural Decisions

  • Shared Blackboard State Pattern: Agents do not pass huge context directly in payload strings. Instead, they read/append to a shared JSON state record stored in PostgreSQL, keyed by run_id. This guarantees atomic state transitions, observability, and easy debugging.
  • Cost & Token Optimization: Content-hash diffing drops unchanged HTML at step 1. Embeddings and local inference are offloaded to Ollama (nomic-embed-text), keeping embedding costs at zero.
  • Groundedness Safeguards: Forces factual entailment verification prior to Slack dispatch, drastically reducing hallucination rates in executive summaries.

šŸ’» Tech Stack

  • Orchestration & Workflows: n8n
  • Vector Store & Search: Qdrant (Dense + Sparse Hybrid)
  • Relational Database & State: PostgreSQL with pgvector
  • Local Inference: Ollama (llama3, nomic-embed-text)
  • Infrastructure: Docker & Docker Compose
  • Integrations: Slack Webhooks / Block Kit
  • Languages & Scripting: Python, Node.js (Cheerio)

šŸ“ Repository Structure

.
ā”œā”€ā”€ docker-compose.yml       # Production-ready multi-container orchestration
ā”œā”€ā”€ .env.example             # Template for required environment variables
ā”œā”€ā”€ postgres/
│   └── init/                # SQL scripts for Blackboard state & table schemas
ā”œā”€ā”€ workflows/
│   └── sentinel_iq.json     # Exported n8n workflow pipeline
└── README.md                # System documentation

šŸš€ Quick Start Guide

Prerequisites

  • Docker Desktop (v20.10+) installed.
  • Git installed.

1. Clone the Repository

git clone https://github.com/YourUsername/SentinelIQ.git
cd SentinelIQ

2. Configure Environment Variables

Copy .env.example to .env and adjust your credentials:

cp .env.example .env

3. Launch Services via Docker Compose

Start PostgreSQL, Qdrant, Ollama, and n8n in detached mode:

docker-compose up -d

Verify all containers are running:

docker-compose ps

4. Pull Ollama Embedding & LLM Models

docker exec -it sentinel_ollama ollama pull nomic-embed-text
docker exec -it sentinel_ollama ollama pull llama3

5. Import Workflow into n8n

  1. Open n8n in your browser: http://localhost:5678
  2. Create your admin account on first run.
  3. Navigate to Workflows → Import from File.
  4. Select workflows/sentinel_iq.json from this repository.
  5. Activate the workflow!

šŸ”’ Security & Privacy Note

All scraping, state management, vector embeddings, and LLM evaluations run locally or within containerized environments. No proprietary or confidential corporate data is sent to external LLM APIs unless explicitly configured.


šŸ‘Øā€šŸ’» Author

Syed Muhammad Farrukh Aijaz
Embedded & Applied AI Systems Engineer
M.S. Student in Electrical & Electronics Engineering (AI & Robotics) @ Middle East Technical University (METU)

  • LinkedIn: Syed Muhammad Farrukh Aijaz
  • GitHub: @FarrukhAijaz
  • Email: [email protected]

šŸ“œ License

This project is licensed under the MIT License - see the LICENSE file for details.

About

No description, website, or topics provided.

Resources

Readme
Activity

Stars

1 star

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800Ɨ600. No cookies required.