Practical Discussion: How to Build a RAG Pipeline for Massive PHP Codebases

Historical_Ad4384 · reddit · 2026-08-08

A team faces the challenge of querying across 50 individual PHP codebases using AI. Directly attaching code to prompts causes issues like massive context, difficult cross-referencing, and excessive token consumption.

To solve this, they plan to feed the codebases into a RAG (Retrieval-Augmented Generation) pipeline monthly to build a permanent internal knowledge graph. The core pain point currently is: how to correctly chunk PHP code to ensure accurate LLM queries? The post solicits best chunking strategies and practical experiences from the community.

Original post →

More from coding & agent

coding & agent channel →