---
title: "Discussion on \"Chunking vs Retrieval: A RAG Case Study on a Real Codebase\" | Hashnode"
description: "Discussion on \"Chunking vs Retrieval: A RAG Case Study on a Real Codebase\". Introduction\nMost RAG discussions treat chunking and retrieval as separate concerns. Pick a chunk size, pick a retriever, tune k, done. What is less discussed is how much these decisions interact - sp"
url: "https://hashnode.com/posts/chunking-vs-retrieval-a-rag-case-study-on-a-real-codebase/6a2e5667a3619d2068078ae1"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Chunking vs Retrieval: A RAG Case Study on a Real Codebase](https://blog.divyampatro.dev/chunking-vs-retrieval-a-rag-case-study-on-a-real-codebase?utm_source=hashnode&utm_medium=feed)

Introduction Most RAG discussions treat chunking and retrieval as separate concerns. Pick a chunk size, pick a retriever, tune k, done. What is less discussed is how much these decisions interact - sp

Jun 14 · 7 min read · blog.divyampatro.dev  
Read the article

-   [#rag](https://hashnode.com/tag/rag)
-   [#langchain](https://hashnode.com/tag/langchain)
-   [#python](https://hashnode.com/tag/python)
-   [#ai](https://hashnode.com/tag/ai)
-   [#llm](https://hashnode.com/tag/llm)
-   [#codesearch](https://hashnode.com/tag/codesearch)
-   [#embeddings](https://hashnode.com/tag/embeddings)

## Written by

[Divyam Patro](https://hashnode.com/@divyamp)

@divyamp · Seattle, USA

  
[View profile](https://hashnode.com/@divyamp)

No fluff. Fullstack, system design, and AI — explained precisely

Fullstack Software Engineer specialising in cloud architecture, system design, and AI. I write deep dives on building production systems — the decisions, the tradeoffs, and the reasoning behind them. No fluff, no tutorials you've seen a hundred times.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
