Skip to content

frack113/sigmahqrag

Repository files navigation

SigmaHQ RAG

A local RAG system for Sigma detection rules.

WIP

This project is under active development. Some features may be incomplete.

Architecture

  • Backend: FastAPI + Jinja2 templates
  • Database: DuckDB (metadata, worker state, config)
  • Vector Store: Qdrant (auto-managed subprocess)
  • LLM: llama.cpp (runs on 127.0.0.1:8080)
  • RAG Pipeline: LlamaIndex
  • Embeddings: sentence-transformers/all-MiniLM-L6-v2 (384-dim)

Quick Start

# Start server (auto-initializes on first run)
uv run python main.py

Server starts on http://localhost:7860 .

Configuration

  • Config managed via the web UI Config page (stored in DuckDB)

Testing

uv run pytest              # Run all tests
uv run pytest tests/path -v # Single test
uv run ruff check .        # Lint
uv run mypy .              # Typecheck

Icon

Use Icône de Pense créatif l'inspiration ampoule by Sumit Saengthong on Icon-Icons.com

About

a RAG for sigma Rules

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors