[KongchangAI]

#RAG

303 related articles

When Word Styles Can't Be Trusted: Practical Lessons from DOCX-to-Markdown Conversion
·2 min

When Word Styles Can't Be Trusted: Practical Lessons from DOCX-to-Markdown Conversion

A developer shares lessons from DOCX-to-Markdown conversion: Word styles are often bypassed, requiring heuristic fallbacks to detect manually formatted headings—key for RAG and Agent parsing.

Read more →
How to Choose a RAG Chunking Strategy: A Practical Guide from Fixed Splitting to Late Chunking
·4 min

How to Choose a RAG Chunking Strategy: A Practical Guide from Fixed Splitting to Late Chunking

How to choose a RAG chunking strategy? This article analyzes the applicable scenarios and pitfalls of fixed splitting, recursive splitting, semantic chunking, structure-aware chunking, parent document retrieval, and late chunking, combining Chroma's research report and an ACL 2025 paper to help you avoid the common problem of RAG retrieving the answer but answering incompletely.

Read more →
RAG Without Writing Code? An Offbeat Use of Gemini Workspace Integration
·2 min

RAG Without Writing Code? An Offbeat Use of Gemini Workspace Integration

No vector database needed — Gemini's Google Workspace integration enables folder-scoped context retrieval and writing style imitation. This article breaks down this "user-level RAG" approach: its actual usage, token overhead mechanics, and key differences from standard RAG in retrieval principles.

Read more →
RAG Systems: The LLM Isn't the Hard Part—Retrieval Quality Is
·5 min

RAG Systems: The LLM Isn't the Hard Part—Retrieval Quality Is

RAG failures often stem from retrieval quality, not model capability. This article analyzes retrieval relevance, chunking, hybrid search, multi-document issues, evaluation, and lifecycle management to reveal what's truly hard in RAG engineering.

Read more →
Metrics First, Dashboard Second: A Guide to Choosing Metrics for LLM Evaluation
·3 min

Metrics First, Dashboard Second: A Guide to Choosing Metrics for LLM Evaluation

A polished LLM evaluation dashboard is useless if you pick the wrong metrics. This guide breaks down metric selection by feature type: F1 and AUC for classifiers, caution with perplexity for generators, faithfulness for RAG—with F1/AUC code examples on a labeled held-out set and a complete checklist.

Read more →
From Substack Newsletters to a RAG Knowledge Base: A Clean Markdown Pipeline in Practice
·2 min

From Substack Newsletters to a RAG Knowledge Base: A Clean Markdown Pipeline in Practice

A complete pipeline for building a RAG knowledge base from Substack newsletters: paginated archive API fetching, body scraping, targeted HTML-to-Markdown cleaning with turndown, heading-aware chunking, incremental updates, and respecting paywalls. Includes ready-made tools and code references.

Read more →
Building a Production-Grade AI Agent from Scratch: A Practical Guide to RAG and MCP
·4 min

Building a Production-Grade AI Agent from Scratch: A Practical Guide to RAG and MCP

Based on the Edureka hands-on tutorial, this guide explains the complete build process for a production-grade AI Agent: four-layer architecture design, RAG retrieval-augmented generation, MCP protocol tool calling, ChromaDB vector database, model selection, and cost optimization, with local deployment verification steps.

Read more →
Why MCP Retrieval Service Citations Get Lost: A Deep Dive into CSR Benchmarking
·3 min

Why MCP Retrieval Service Citations Get Lost: A Deep Dive into CSR Benchmarking

A CSR benchmark built on FastAPI docs reveals citation format drift vs. genuine loss in MCP retrieval; the OpenAI Agents SDK's default Responses API causes 40% of answers to ignore citation format, and server-side short IDs can fix it.

Read more →
PDF to Markdown: Fixing Reading Order and Tables Before RAG Chunking
·5 min

PDF to Markdown: Fixing Reading Order and Tables Before RAG Chunking

RAG giving inaccurate answers to PDF questions? The problem often lies in extraction. This article analyzes how two-column reading order, table structure, and heading hierarchy get destroyed by plain text extraction, compares open-source libraries like pypdf, pdfplumber, Docling, and Marker, and provides a runnable PDF-to-Markdown Python script to fix chunking quality at the source.

Read more →
LangChain4J in Practice: Building Enterprise-Grade Agents and RAG Applications from Scratch
·3 min

LangChain4J in Practice: Building Enterprise-Grade Agents and RAG Applications from Scratch

A hands-on LangChain4J tutorial for beginners: explore Components, Chains, and Agents, and learn how to build privately deployed enterprise Agents in Java, covering RAG vector stores and TextToSQL to connect LLMs with enterprise private data.

Read more →
Building HNSW by Hand in TypeScript: Measuring the efSearch–Recall Tradeoff
·3 min

Building HNSW by Hand in TypeScript: Measuring the efSearch–Recall Tradeoff

Implement HNSW from scratch in TypeScript, index 50K vectors in Node, and measure recall@10 vs. latency as efSearch goes from 10 to 200—plus pgvector and Qdrant production parameters and filtering pitfalls.

Read more →
Refusal Capability in RAG Applications: Teaching AI to Say 'I Don't Know'
·2 min

Refusal Capability in RAG Applications: Teaching AI to Say 'I Don't Know'

How can RAG applications learn to refuse? A developer explores teaching RAG systems to recognize missing answers in documents, avoiding confident unsupported responses.

Read more →
Building Semantic Search and RAG with pgvector + Java: No Separate Vector Store Needed
·6 min

Building Semantic Search and RAG with pgvector + Java: No Separate Vector Store Needed

pgvector turns PostgreSQL into a vector store: build semantic search and RAG with Java and Spring Boot, no separate vector database. Covers HNSW indexes, JDBC vector queries, RAG pipelines, tenant isolation, and recall evaluation.

Read more →
3 Agent Patterns Behind Successful AI Products: The Real Key Beyond the Framework Wars
·2 min

3 Agent Patterns Behind Successful AI Products: The Real Key Beyond the Framework Wars

Successful AI Agent products rely on three patterns—plan-then-execute, retrieval-reasoning separation, and explicit handoffs—not new frameworks. Plus RAG chunking pitfalls and the road ahead.

Read more →
Inside Loreflow's Architecture: Making Three Classes of AI Data Leaks Structurally Impossible
·3 min

Inside Loreflow's Architecture: Making Three Classes of AI Data Leaks Structurally Impossible

Loreflow uses pure-function evidence projection, fixed evidence budgets, and field-by-field enumeration to make cross-tenant leaks, prompt injection exfiltration, and silent field leaks structurally impossible.

Read more →
AI Keeps Making the Same Mistake? 7 Engineering Solutions That Fix It at the Root
·4 min

AI Keeps Making the Same Mistake? 7 Engineering Solutions That Fix It at the Root

AI keeps making the same mistakes? This article explains 7 engineering approaches—context management, permanent rules, error logs, RAG retrieval, and automated verification—to help AI truly learn from errors.

Read more →
Bilibili's 748-Episode AI Large Model Zero-to-Hero Course: A Full Breakdown from RAG to Agent in Practice
·3 min

Bilibili's 748-Episode AI Large Model Zero-to-Hero Course: A Full Breakdown from RAG to Agent in Practice

Full breakdown of Bilibili's 748-episode AI large model course: from fundamentals to prompt engineering, then RAG, LangChain, and Agent development with three enterprise projects.

Read more →
XERJ: A New Way to Search Data for AI, Reducing Token Consumption by 40x
·2 min

XERJ: A New Way to Search Data for AI, Reducing Token Consumption by 40x

XERJ is an open-source AI data search tool on GitHub that uses autoindex to automatically index code, docs, logs, and PDFs, cutting token consumption by 40x vs grep. Compatible with Elasticsearch, supporting RAG and agent memory scenarios.

Read more →