惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

H
Heimdal Security Blog
P
Privacy International News Feed
S
Schneier on Security
P
Proofpoint News Feed
L
Lohrmann on Cybersecurity
Spread Privacy
Spread Privacy
P
Privacy & Cybersecurity Law Blog
D
Darknet – Hacking Tools, Hacker News & Cyber Security
Scott Helme
Scott Helme
K
Kaspersky official blog
大猫的无限游戏
大猫的无限游戏
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
aimingoo的专栏
aimingoo的专栏
Simon Willison's Weblog
Simon Willison's Weblog
S
Securelist
Help Net Security
Help Net Security
B
Blog
H
Hackread – Cybersecurity News, Data Breaches, AI and More
Security Archives - TechRepublic
Security Archives - TechRepublic
云风的 BLOG
云风的 BLOG
The GitHub Blog
The GitHub Blog
N
News and Events Feed by Topic
Hacker News: Ask HN
Hacker News: Ask HN
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
M
MIT News - Artificial intelligence
雷峰网
雷峰网
博客园 - 司徒正美
V
V2EX
AWS News Blog
AWS News Blog
Know Your Adversary
Know Your Adversary
N
News | PayPal Newsroom
T
Tor Project blog
Cisco Talos Blog
Cisco Talos Blog
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
PCI Perspectives
PCI Perspectives
Google DeepMind News
Google DeepMind News
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
U
Unit 42
C
Cybersecurity and Infrastructure Security Agency CISA
P
Palo Alto Networks Blog
G
Google Developers Blog
T
Threat Research - Cisco Blogs
博客园 - Franky
I
InfoQ
D
DataBreaches.Net
爱范儿
爱范儿
Y
Y Combinator Blog
博客园 - 叶小钗
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报

Hacker News: Show HN

PurrrrrFocus: Pomodoro Timer App - App Store Workflow Engine — Multi-Step Orchestration for Bun RapidPhoto: Pro Photo Editor App - App Store GitHub - DheerG/swarms: Achieve extraordinary results with claude code across a variety of tasks SPICE simulation → oscilloscope → verification with Claude Code — Lucas Gerads Show HN: VCoding – A 5 MB native Windows IDE with no dynamic dependencies Show HN: LLMs don't hallucinate because they're bad at math, it's the format GitHub - Agent-FM/agentfm-core: AgentFM is a peer-to-peer network that turns everyday computers into a decentralized AI supercomputer. AgentFM lets you run massive AI workloads directly across a global mesh of idle CPUs and GPUs. Show HN: Tracking Top US Science Olympiad Alumni over Last 25 Years GitHub - Potarix/agent-hub: One place to talk to all your agents Show HN: Runtime security for AI agents(injection,tool abuse, data exfiltration) GitHub - dubeyKartikay/lazyspotify: Terminal Spotify client for macOS and Linux GitHub - the-banana-tool/king-louie: Easy to use GUI Personal AI Assistant. Win/Linux/Mac. Show HN I made my vacation rental bookable by AI agents–no Airbnb, 0% commission GitHub - basteez/jsf-autoreload: maven plugin to enable hot reload on jsf projects uvm32/hosts/host-gdbstub at main · ringtailsoftware/uvm32 GitHub - labsai/EDDI: Config-driven engine that turns JSON into production-grade AI agents. Multi-agent orchestration, 12+ LLM providers, MCP/A2A protocols, RAG, persistent memory, and enterprise compliance (EU AI Act, GDPR, HIPAA). Built on Quarkus. GitHub - glitchnsec/fortyone-oss: AI Executive Assistant Platform Quickstart | Alien GitHub - muxshed/shed: One stream in, or many. Every destination, simultaneously. No cloud middleman, no per-channel fees, no limits. GitHub - ocrbase-hq/ocrbase: 📄 PDF/IMG ->.MD/JSON Document OCR API for PaddleOCR and GLMOCR. Self-hostable. GitHub - impactjo/home-memory: MCP server that lets your AI assistant remember everything about your home. GitHub - Sets88/dbcls: DbCls is a powerful terminal database client that supports various databases GitHub - neptun2000/heor-agent-mcp GitHub - SeanFDZ/macmind: Single-layer transformer in HyperTalk for the classic Macintosh RollQuation: Math Puzzles - Apps on Google Play GitHub - dropbox/witchcraft Show HN: Agent-cache – Multi-tier LLM/tool/session caching for Valkey and Redis GitHub - opentalon/opentalon: OpenTalon is an open-source platform built from the ground up in Go as a robust alternative to OpenClaw LinkedIn™ 职位抓取工具 - Chrome 应用商店 GitHub - EdoardoBambini/Agent-Armor-Iaga: AI agents are getting tool access — shell, file system, databases, APIs, secrets. But **nobody is governing what they actually do with it**. Frameworks like LangChain, CrewAI, AutoGen, and Claude Code give agents the power to execute. Agent Armor gives you the power to control, audit, and approve every single action before it happens. HN Vibes — Week 15, Apr 7–13 2026 GitHub - chojs23/ec: Easy terminal-native 3-way git mergetool vim-like workflow GitHub - SethPyle376/hiraeth: Local AWS emulator focused on fast integration testing, with SQS support, SQLite-backed state, and a debug-friendly web UI. GitHub - JakOb-dotcom/cloud-sandbox-security-analysis: Technical analysis and Proof of Concept (PoC) regarding environment variable exfiltration in containerized cloud sandboxes via side-channel data leaks. Springboards - Flint Alpha Show HN: A simpler coding agent harness GitHub - audiodude/sudomake-friends GitHub - 256thFission/mini-mythos: OSS clone of Anthropic’s Mythos harness to locate C/C++ memory vulnerabilities Show HN: OpenParallax: OS-level privilege separation for AI agent execution Hacker News Sorted - Chrome 应用商店 Show HN: How to Install Docker on Ubuntu 24.04 LTS: Complete 2026 Guide GitHub - himanshudongre/smriti GitHub - sverrirsig/claude-control: macOS desktop dashboard for monitoring and managing multiple Claude Code sessions GitHub - ory/dockertest: Write better integration tests! Dockertest helps you boot up ephermal docker images for your Go tests with minimal work. Chiral - Chrome 应用商店 Show HN: Two Claudes collaborating through shared memory on a $100 mini-PC GitHub - pmichaillat/latex-cv: Minimalist LaTeX template for academic CVs GitHub - oguzbilgic/posse: A web UI for Anthropic Managed Agents. GitHub - sshiraz/depsly: Dependency risk analysis tool for npm packages ABI Add safari/agent-harness — Safari browser automation via safari-mcp by achiya-automation · Pull Request #212 · HKUDS/CLI-Anything GitHub - Halfblood-Prince/trustcheck: Verify PyPI package attestations and improve Python supply-chain security GitHub - oguzbilgic/kern-ai: Agents that do the work and show it. GitHub - bruits/satteri: High-performance Markdown and MDX processing for the JavaScript ecosystem GitHub - tylergibbs1/feedstock: High-performance web crawler and scraper for TypeScript, powered by Bun and Playwright GitHub - Grimm67123/grimmbot: The self-improving sandboxed and open-source AI agent. With persistent memory and scheduling. GitHub - whitevanillaskies/whitebloom: Local whiteboard that blooms. GitHub - hwdsl2/docker-whisper: Docker image for a self-hosted Whisper speech-to-text server with speaker diarization and OpenAI-compatible transcription and translation APIs. Powered by faster-whisper. Supports all Whisper models, NVIDIA GPU (CUDA) acceleration, JSON/SRT/VTT output, SSE streaming, offline mode, and multi-arch (amd64, arm64). GitHub - yisding/reviewwiggum GitHub - MarwanAlsoltany/serrors: Structured errors for Go: sentinel hierarchies, typed data, custom formatting, and slog integration. GitHub - soatok/age-php GitHub - Luthiraa/markitme GitHub - stagas/rtdiff: realtime git diff gui and AI-assisted commits GitHub - tombedor/excalicharts GitHub - wh1le/excalidraw-edit: Open and edit .excalidraw files from the terminal. Offline, auto-saves to disk. MalExt Sentry - Malicious Extension Scanner - Chrome 应用商店 GitHub - syi0808/asciianimesvg: Generate animated ASCII art SVGs from text. CLI, Rust library, WASM, and web editor. GitHub - zaina-ml/ml_forge: A visual-based graph node editor for training computer vision models. GitHub - anakin87/llm-rl-environments-lil-course: 🌱 A little course on Reinforcement Learning Environments for evaluating and training Language Models GitHub - takaakit/superpowers-uml: Superpowers-UML modifies Superpowers to ensure a software development workflow in which AI agents design through UML modeling. AdriByte Studio - Sviluppo Web e Soluzioni Digitali GitHub - chouligi/angel-copilot: Your personalized Angel Investment Advisor Show HN: MoodSense AI (ML and FastAPI and Gradio, Deployed on Hugging Face) Moodsense Ai - a Hugging Face Space by aman179102 GitHub - agenteractai/lodmem: Level Of Detail Context Management for Agents GitHub - ostefani/subnetlens: A fast, concurrent network scanner with a TUI and plain-text CLI, built in Go. It discovers live hosts on your network, scans their open ports, resolves hostnames, and fingerprints operating systems—delivered. Cyber Pulse: Agentic Intel - Apps on Google Play Whisper API: Self-Hostable Speech to Text Transcription The Agent-Web Protocol Stack: A Research Thesis GitHub - msmarkgu/RelayFreeLLM: A restful API designed to route user prompts to various AI model providers. Show HN: Provepy – A Python decorator that proves your code using Lean and LLMs Show HN: Pardonned.com – A searchable database of US Pardons GitHub - patrickdappollonio/dux: Dux is a terminal UI that lets you run multiple AI coding agents side by side, each in its own git worktree, with full companion terminals, macros, commit generation, and a command palette that knows more tricks than you do. kMC Crystal Simulator Show HN: HyperFlow – A self-improving agent framework built on LangGraph GitHub - stef41/vibescore: 🎵 Grade your vibe-coded project. One command, instant letter grade across security, quality, dependencies, and testing. GitHub - stef41/lmscan: 🔍 Detect AI-generated text and fingerprint which LLM wrote it. Open-source GPTZero alternative. Zero dependencies, works offline. imgur.com GitHub - visionscaper/collabmem: Enabling long-term collaboration with Agentic AI - building up episodic and world model memory over time with in-context awareness 在 Steam 上购买 FriedrichAI: Offline AI 立省 10% GitHub - atripati/ark: AI Runtime Kernel — a context operating system for AI agents. Eliminates tool bloat, loads only what’s needed, and gives LLMs their reasoning space back. GitHub - nowork-studio/toprank: Open-source Claude Code skills for SEO, SEM, Google Ads GitHub - tacomanator/sash: Lightweight macOS menu bar app for reliably cycling through windows of the current application. Appents | Social Media Management for Product-First Teams GitHub - pnhoang/youtube-spam-blocker: Automatically detects and hides spam messages in YouTube Live chat. Set rate limits, keyword filters, and block repeat offenders. GitHub - decisionnode/DecisionNode: CLI + Local MCP - A shared structured memory store across Claude Code, Cursor, Windsurf, Antigravity, and every MCP client. Semantically queryable. GitHub - AvaCodeSolutions/django-email-learning: An open source Django app for creating email-based learning platforms with IMAP integration and React frontend components. The $100K Gap in Kubernetes Security Tooling Function Calling Harness: From 6.75% to 100%
GitHub - HarinezumIgel/RAG-LCC: A hands‑on RAG experimentation lab. Largely configurable with debug insights. Classification‑driven corpus construction, filter chains, document loading, chat interaction, Open WebUI integration. Experimental by design and not production‑ready.
HarinezumIge · 2026-05-15 · via Hacker News: Show HN

🧪 RAG‑LCC — Experimental RAG Under Constraints

RAG-LCC Logo

**RAG‑LCC is an experimental Retrieval‑Augmented Generation (RAG) lab focused on understanding and controlling retrieval and context assembly under real‑world constraints**: limited context windows, modest GPUs, large documents, and multi‑turn chat.

Instead of pushing ever‑larger context sizes, RAG‑LCC treats classification, chunking, retrieval strategies, and staged loading as first‑class architectural tools.


🎯 Who this is for

  • 🔬 Researchers and practitioners exploring why RAG pipelines succeed or fail
  • 🧠 Engineers working with large or conflicting documents
  • 💬 Anyone debugging chat‑context failures in RAG systems
  • 💻 Users running RAG on constrained or commodity hardware
  • 🧪 People who want to experiment beyond “embed + cosine + top‑k”

🧠 Core idea

Most RAG examples optimize for scale.

RAG‑LCC optimizes for constraints and correctness.

Documents are analyzed, reduced, filtered, and assembled before being shown to an LLM — so that the model reasons over coherent, non‑contradictory context, not an arbitrary pile of chunks.


🧭 Quick mental model

Raw documents
        │
        ▼
┌──────────────────────────────────┐
│  DocClassify                     │
│  keyword extraction · LLM labels │
│  → semantic compression          │
└──────────────────────────────────┘
        │  (optional CSV filter
        |   using SQLite query)
        ▼
┌──────────────────────────────────┐
│  RAGLoad                         │
│  banned-phrase filter chains     │
│  chunking strategies             │
│  → ChromaDB · BM25 index         │
│  → entity co-occurrence graph    │
└──────────────────────────────────┘
        │
        ▼
┌──────────────────────────────────────────────────────┐
│  RAGChat  (one turn)                                 │
│                                                      │
│  user query                                          │
│      │  (optional translation · query rewrite)       │
│      ▼                                               │
│  ┌─────────┐  ┌─────────┐  ┌─────────────────────┐   │
│  │ Vector  │  │  BM25   │  │  Graph              │   │
│  │ search  │  │ keyword │  │  entity co-occur.   │   │
│  └────┬────┘  └────┬────┘  └──────────┬──────────┘   │
│       └────────────┴──────────────────┘              │
│                    │  weighted RRF fusion            │
│                    ▼                                 │
│            threshold filter                          │
│                    │                                 │
│                    ▼                                 │
│            cross-encoder reranker                    │
│                    │                                 │
│                    ▼                                 │
│            chunk selection strategy                  │
│            (score-ranked · per-file-cap · narrow)    │
│                    │                                 │
│                    ▼                                 │
│            context assembly                          │
│                    │                                 │
│                    ▼                                 │
│               LLM reasoning                          │
└──────────────────────────────────────────────────────┘

The goal is not to feed the model more text — but to feed it better, safer context.


🗣️ Why chat context breaks RAG

Many RAG failures are not retrieval failures.

They happen when:

  • semantically similar chunks enter the same context
  • referents clash across turns (e.g. “they”, “this result”)
  • old and new facts coexist without ordering or scoping

In these cases, the LLM is forced to silently resolve ambiguity it was never designed to handle.

RAG‑LCC treats chunking, retrieval strategies, and filtering as context‑management mechanisms, not preprocessing checkboxes.


📊 Presentation

A slide deck is available as RAG-LCC_Presentation.pptx. It provides a quick visual overview of the architecture, the four applications, the retrieval pipeline, and the key design decisions — useful as a starting point before diving into the detailed documentation.

A demo video is available on YouTube: https://youtu.be/CQW3B5FeNtA


✨ Key features

🧩 Classify‑then‑Load workflow

  • Documents are classified before context construction
  • Classification acts as semantic compression, not metadata decoration
  • Large documents are reduced to meaning‑dense signals early
  • Token usage is minimized before retrieval and chat

This workflow is the architectural core of RAG‑LCC.


🧱 Context‑safe chunking strategies

  • Chunking is treated as a semantic boundary problem, not a token problem
  • Designed to reduce:
    • referential ambiguity (they / it / this)
    • entity collisions across documents
    • logically incompatible chunks in the same context

Chunkers exist to preserve discourse coherence, especially in chat.


🔗 Configurable retrieval & filter chains

  • Retrieval is staged, not monolithic
  • Combine lexical, semantic, graph, and heuristic signals
  • Typical chains:
    • BM25 → KeyBERT → embedding similarity
    • BM25 + Graph → RRF fusion → rules
    • Vector + Graph + BM25 → weighted RRF → threshold
    • Regex / rules → similarity ranking
  • Each stage can be inspected and reasoned about

Retrieval here is about conflict avoidance, not just relevance scores.


🔄 Multi-mode lexical, vector, and graph retrieval

Six retrieval modes are supported:

Mode Stores queried Fusion
VECTOR ChromaDB (dense embeddings)
BM25 BM25 keyword index
GRAPH Entity co-occurrence graph
VECTOR_BM25 ChromaDB + BM25 RRF
VECTOR_GRAPH ChromaDB + Graph RRF
BM25_GRAPH BM25 + Graph RRF
ALL ChromaDB + BM25 + Graph RRF

Multi-store modes merge results via Reciprocal Rank Fusion (RRF). The graph retriever uses spaCy (en_core_web_sm, MIT, Explosion AI) for both named-entity recognition and noun-phrase extraction, so entity-graph retrieval works on encyclopedic content (animals, products, places) without domain-specific NER models.

  • Lexical retrievers preserve discourse anchors
  • Vector search generalizes meaning
  • Graph traversal pulls in co-occurrence clusters
  • Combined modes reduce:
    • pronoun drift
    • dominance of large documents
    • accidental contradiction in chat contexts

📉 Context‑ and hardware‑aware by design

  • Explicitly designed for limited context windows
  • Practical on modest GPUs and CPUs
  • Encourages architectural efficiency over brute‑force scaling

🔍 Transparent & inspectable pipeline

  • Retrieval decisions remain observable
  • Intermediate results can be reviewed
  • Designed to support reasoning about RAG behavior, not just outputs

📚 Background & related write‑ups

Some design decisions in RAG‑LCC are motivated by concrete failure analyses:

These are not tutorials — they document observed failure modes that this lab explores programmatically.


⚠️ Project status

🧪 Experimental / lab software

RAG‑LCC is intended for:

  • architectural exploration
  • controlled experimentation
  • learning and research

It is not a plug‑and‑play production framework.


⭐ Citation & visibility

If this project helps you reason about retrieval, chunking, and context assembly failures in RAG systems, a ⭐ helps other practitioners find it.

A CITATION.cff file is included for academic or technical reference.


🗺️ Documentation Map

This README is the landing page. The detailed material has been split into focused documents so each topic stays readable:

Document What's inside
🚀 INSTALL.md Prerequisites · cloning · dependencies · Ollama / Open WebUI / Argos / NLTK / Tesseract / spaCy / GPU setup · running the test suite · first-run walkthrough
📚 CONFIGURATION.md Per-file reference for every Config_*.py (Global, Models, RAGChat, RAGLoad, DocClassify, Banned, Internet) · CLI overrides · translation config · troubleshooting · performance tuning
📸 EXAMPLES.md End-to-end terminal sessions for RAGLoad, RAGChat, DocClassify, RAGChatService; class diagrams; project structure
🏗️ ARCHITECTURE.md Pipeline internals · compliance chain · chunking architecture · query rewrite · graph index
🧭 HANDS_ON_TOUR.md Curated hands-on session and suggested experiments
⚖️ LEGAL.md · 🔐 SECURITY.md Definitions, governance, security policy and limitations
🧹 banlist_pipeline_final_with_tldr.md Long-form write-up on the multi-layer banlist pipeline

TL;DR — try it locally

git clone <this-repo>; cd RAG-LCC
python -m venv .venv; .\.venv\Scripts\Activate.ps1   # or source .venv/bin/activate
pip install -r requirements.txt
# Review and copy example configs (see INSTALL.md § "Review the example config files")
python ./src/Apps/RAGLoad.py  --doc-dir TestDocs
python ./src/Apps/RAGChat.py  --doc-dir TestDocs

Read INSTALL.md before running anything — model licenses must be accepted on first start.


Overview

RAG‑LCC (Local Corpus & Classification) is an experimental research environment focused on:

  • Local and offline‑first operation Local and offline‑capable operation After the initial setup phase, the system can operate locally without requiring continuous network access, depending on your configuration and environment.

  • Configurable ingestion and detection pipelines Apply custom heuristics, filters, and classifiers during document processing.

  • Query‑Driven Document Routing The system can classify and select relevant documents based on the user’s prompt. Then selectively load (SQLite query) those documents into a local vector store for downstream retrieval.

  • Hybrid Retrieval Stack Combine filter algorithms, LLM prompt checking, dense embeddings, rerankers inside a unified chain.

  • OpenWebUI Integration RAGChatService.py exposes the RAG pipeline through an OpenAI‑compatible REST API, allowing OpenWebUI to use RAG‑LCC as a retrieval backend.

  • Operator‑Visible and Operator‑Controlled Every step in the pipeline is transparent, adjustable, and intended for iterative experimentation.

This project is intended for research, prototyping, and educational use. It does not claim performance guarantees, production readiness, or novel scientific breakthroughs. Instead, it provides a flexible sandbox to explore retrieval strategies and classification workflows in a controlled local environment.

📥 RAGLoad · Document Ingestion  |  💬 RAGChat · Retrieval & Chat  |  🌐 RAGChatService · OpenWebUI REST API  |  🏷️ DocClassify · Batch Classification

For the definition of "Compliance" as used in this project, see LEGAL.md.

✨ High‑Level Features

All outputs and classifications are heuristic and probabilistic.


🔗 Filter Chain (Detection Pipeline)

The framework includes configurable filter chains that apply algorithms such as:

  • Jaccard similarity
  • BM25 scoring
  • Regex + Levenshtein matching
  • KeyBERT keyword extraction
  • Optional embedding‑based similarity

Algorithms contribute independent scores which are evaluated using consensus rules (depth and breadth thresholds).

Detection results:

  • do not constitute legal or regulatory determinations
  • do not guarantee prevention or correctness
  • must always be reviewed by a human before action

📂 Classify‑then‑Load Workflow

RAGLoad can optionally consume the classification output produced by DocClassify so that only documents classified as relevant are ingested into the vector store.

When a classify CSV path is provided, RAGLoad reads the classification CSV that DocClassify wrote and limits ingestion to the file paths listed therein. An optional SQL WHERE clause (CLASSIFY_CSV_QUERY) can further narrow the allow‑set by filtering the CSV rows through an in‑memory SQLite table — for example, ingesting only documents where Animal LIKE '%cat%' or Mammal LIKE '%Yes%' AND Language = 'English'.

DocClassify CSV output — per-document classification used as the RAGLoad allow-set

🧩 Chunking Strategies

RAG‑LCC ships with six chunking strategies:

Strategy Description
Semantic Splits on topic boundaries using embeddings
Fixed‑Size Equal‑length token or character chunks
Heading Splits on document headings; section path stored in HeadingPath metadata. Placement of the breadcrumb inside the chunk text is configurable via _CHUNKERS.HEADING.BREADCRUMB_MODE (prefix / suffix (default) / off)
Slide Presentation slide boundaries
Sliding Window Overlapping fixed‑size windows
Sentence Window Sentence‑level chunks with surrounding context

Each file type can be routed to a different strategy via the strategy selection pattern.


📋 Human Review and Logs

Documents flagged by detection pipelines are logged to .csv and .xlsx files for human review.

Audit and log files:

  • are provided for experimental and diagnostic purposes only
  • are not guaranteed to be complete or tamper‑proof
  • must not be relied upon as legally authoritative records

🏠 Local Operation and Internet Access

RAG‑LCC is designed to run locally.

  • Internet access is disabled by default
  • Network access must be explicitly enabled by the operator
  • No telemetry is collected
  • RAGChatService.py will start a network listener to serve RAG Queries (see Internet Access in INSTALL.md)

Actual behavior depends on configuration, environment, and third‑party components.


✏️ Query Rewrite (Coreference Resolution)

Follow-up queries with pronouns ("are they mammals?") are rewritten into self-contained questions before retrieval.

  • A dedicated lightweight LLM resolves pronouns using conversation history
  • The embedding model receives explicit entity names instead of unresolved references
  • Every skip or rewrite path logs a diagnostic message with the reason (disabled, no history, LLM error, unchanged, or rewritten)
  • Rewrite model is selected independently via _ACTIVE_LLM_REWRITE_PROMPT
  • Parameters are configured in _QUERY_REWRITE in Config_RAGChat.py
  • Non-English user queries are normalised to English before retrieval by the m2m100 translation backend (Compliance.HfTranslator wrapping facebook/m2m100_1.2B, MIT, ~5 GB, lazy-loaded); a second translation pass runs after the rewrite step in case foreign-language entities were pulled from chat history. The original language is remembered so the final LLM still answers in the user's language.

Topic (context) switch

RAGChat detects context switches. Here is an example: Context switch

Hera two prompts were the first was caught by the filter chain algos and the second by the prompt validation LLM:

User prompts blocked by filter algo chain and LLM used for prompt compliance check

If you want to start a completely new topic without clearing the chat history or disabling use_chat_context, prefix your query with new: (or new topic:):

new: tell me about fish
new topic: what is photosynthesis?

Filter chain (banned word list)

The prefix is stripped before translation and retrieval — the rewriter LLM is skipped for that turn only, so the next turn resumes normal coreference resolution. This is the recommended workaround when the rewriter over-substitutes entities from a previous topic.

See ARCHITECTURE.md § Query Rewrite for the full rewrite-flow diagram, the m2m100 translation-quality caveat (and NLLB workaround), and worked first-turn / follow-up examples.


🔁 Incremental Processing and Human‑Review Exclusions

RAG‑LCC supports optional efficiency and review‑awareness features:

  • Skip unchanged documents — files whose content hash has not changed since the last run can be detected and skipped automatically.
  • Exclude flagged documents — files previously flagged for human review can be excluded from further processing.

🔍 Network Activity Observation (Optional)

RAG‑LCC includes an optional Python‑level socket activity tracer that can log certain DNS and connection attempts when explicitly enabled.

This mechanism:

  • may assist in observing some Python‑level network activity
  • does not guarantee full visibility
  • does not prevent network access
  • is not a security control

See SECURITY.md for details and limitations.


📖 Documentation

  • Architecture overview: ARCHITECTURE.md
  • Legal and governance notes: LEGAL.md
  • Security considerations: SECURITY.md
  • Hands‑on examples: HANDS_ON_TOUR.md

📄 Text Extraction

The framework extracts text from common file types and applies Unicode normalization and masking to the extracted text before downstream processing.

📎 Microsoft Office document extraction

Text from Office formats (.doc(x), .ppt(x), .xls(x)) is extracted if a local Office installation is available. See Office Document Extraction in CONFIGURATION.md for configuration options.

Note: Microsoft Office is not included with or distributed by RAG‑LCC. Users must obtain and license Microsoft Office independently. The Python bridge library pywin32 (included in the project's dependency list) provides COM automation access to a locally installed Office suite but does not replace or include Office itself.


💾 Caching

For details, see Caching in ARCHITECTURE.md.


🌐 Translation

Banned-word lists can be translated to the document language for detection using Argos Translate (local, offline neural machine translation). For details see 7. Install Argos Translate in INSTALL.md.


🔄 Reverse Stemming

Extracted classification keys can be reverse-stemmed optionally (best effort).


📜 Model and License Consent

RAG‑LCC does not bundle or redistribute:

  • LLMs
  • embedding models
  • cross‑encoders
  • translation packages
  • OCR engines

All models and dependencies are obtained independently by the operator.

Where applicable, RAG‑LCC includes consent workflows that record that a license text was fetched and acknowledged.

Important: RAG‑LCC does not verify the legal validity, completeness, or applicability of any license text and does not guarantee that recorded consent is sufficient for any particular use case or jurisdiction.


📦 Third‑Party Dependencies

All third‑party software is obtained directly from upstream sources.

RAG‑LCC:

  • does not control dependency code or supply chains
  • does not audit third‑party security
  • does not guarantee license compatibility

Operators are solely responsible for reviewing, accepting, and complying with all third‑party licenses and obligations.


⚙️ Configuration and Experimentation

RAG‑LCC exposes extensive configuration options, including:

  • algorithm selection and thresholds
  • retrieval strategies
  • chunking strategies — six built-in chunkers (Semantic, Fixed‑Size, Heading, Slide, Sliding Window, Sentence Window) with per-file-type AUTO routing so each document format is split at its natural boundaries
  • model selection
  • masking rules

Configuration defaults reflect values used in this repository for experimentation and are not recommendations for any specific environment or risk profile.


RAG‑LCC — Disclaimer

⚠️ Experimental Research Framework

RAG‑LCC is an experimental research framework intended solely for laboratory use, evaluation, and learning. It is not production software and must not be used in operational, regulated, safety‑critical, or compliance‑critical environments.

🚫 No Support, No Warranty, No SLA

This project is provided as‑is with no:

  • support or assistance
  • issue response or troubleshooting
  • bug fixes, patches, or security updates
  • maintenance or compatibility commitments
  • service‑level objectives or availability guarantees

No warranty—express or implied—is provided regarding correctness, completeness, security, reliability, or fitness for any purpose.

🔐 Legal, Regulatory, and Security Responsibility

All legal, regulatory, operational, and security risks arising from the use of this software are assumed entirely by the operator.

This project is not a legal, security, governance, or compliance solution. Nothing in the source code, documentation, examples, or logs should be interpreted as legal or security advice.

For definitions, constraints, and further detail, review:

🎯 Intended Use

RAG‑LCC is intended for:

  • local experimentation with RAG pipelines
  • research into filter chains and scoring
  • teaching and learning RAG architectures
  • development and testing of custom detection algorithms

It is not intended for end users, enterprises, or regulated operational deployment.

📉 Limitations

Detection and validation mechanisms in this framework are probabilistic. False positives and false negatives will occur.

Scope includes: document ingestion, prompt validation, document classification, and LLM output validation as defined in ./src/Configuration/Config_*.py.

⚠️ Final Notice

Use of RAG‑LCC is entirely at the operator’s own risk. Nothing in this repository guarantees correctness, safety, regulatory conformity, or suitability for any specific environment or risk profile.