How cranish07/lad works
LAD collects live logs, buffers them through Fluentd, then tails the buffer and uses vector similarity plus a retrieval-augmented prompt to assess each line. It also supports ingesting sample logs into a searchable collection. The graph includes the documented daemon role and major runtime stages; daemon internals and the RAG-chain implementation were not sampled, so their detailed links are omitted or marked unverified.
Main entry points: main.py Live Log Reader · log_ingestion.py Log Ingestion · client.py Qdrant Setup · vectorstore.py Vector Store
Components 15
Log Collection
- Fluentd Collector
daemon/fluent.conf - Fluentd Buffer
daemon/logs - Log Daemon
daemon/daemon.py
Anomaly Analysis
- Live Log Reader
scripts/main.py - Similarity Retrieval
scripts/main.py - Context Builder
scripts/text_utils.py - RAG Classifier
scripts/rag_chain.py
Embedding and Storage
- Qdrant Setup
scripts/client.py - Vector Store
scripts/vectorstore.py - Qdrant
Historical Ingestion
- Sample Logs
data/sample_logs - Log Ingestion
scripts/log_ingestion.py - Text Chunker
scripts/text_utils.py
Other components
- Log Sources
- Google Gemini
Connections 16
- Log Sources → Fluentd Collector: collects
README.md - Fluentd Collector → Fluentd Buffer: buffers
README.md - Log Daemon → Fluentd Buffer: tails or forwards
- Fluentd Buffer → Live Log Reader: reads
scripts/main.py - Live Log Reader → Qdrant Setup: initializes
scripts/main.py - Live Log Reader → Vector Store: searches
scripts/main.py - Live Log Reader → Context Builder: formats results
scripts/main.py - Live Log Reader → RAG Classifier: invokes
scripts/main.py - Qdrant Setup → Qdrant: connects and creates collection
scripts/client.py - Vector Store → Qdrant: queries collection
scripts/vectorstore.py - Qdrant Setup → Google Gemini: embeds test query
scripts/client.py - Vector Store → Google Gemini: embeds text
scripts/vectorstore.py - Sample Logs → Log Ingestion: reads
scripts/log_ingestion.py - Log Ingestion → Qdrant Setup: initializes collection
scripts/log_ingestion.py - Log Ingestion → Text Chunker: chunks logs
scripts/log_ingestion.py - Log Ingestion → Vector Store: stores chunks
scripts/log_ingestion.py