---
title: "Discussion on \"RAG Explained: How Chunking and Embeddings Decide Answer Quality\" | Hashnode"
description: "Discussion on \"RAG Explained: How Chunking and Embeddings Decide Answer Quality\". A practical look at RAG chunking and embeddings, using code from a real FastAPI, LangChain and ChromaDB project, with its limits."
url: "https://hashnode.com/posts/rag-chunking-embeddings-explained/6afb2f3383f238307fab4313"
---

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

Discussion

# [RAG Explained: How Chunking and Embeddings Decide Answer Quality](https://janardhan-ai.hashnode.dev/rag-chunking-embeddings-explained?utm_source=hashnode&utm_medium=feed)

A practical look at RAG chunking and embeddings, using code from a real FastAPI, LangChain and ChromaDB project, with its limits.

Nov 16 · 6 min read · janardhan-ai.hashnode.dev  
Read the article

-   [#rag](https://hashnode.com/tag/rag)
-   [#generative-ai](https://hashnode.com/tag/generative-ai)
-   [#langchain](https://hashnode.com/tag/langchain)
-   [#chromadb](https://hashnode.com/tag/chromadb)
-   [#python](https://hashnode.com/tag/python)

## Written by

[Janardhan Venkat](https://hashnode.com/@janardhanai)

@janardhanai · Hyderabad, India

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

AI Consultant | Generative AI | RAG | Agentic AI | Python

AI Consultant with 16+ years in enterprise software. I design and build practical Generative AI, RAG and Agentic AI applications in Python, with a focus on production-ready, secure systems. From AI concepts to production-ready intelligent applications.

## Responses 1

Markdown supported · ⌘↵ to post

[Ahmet Özel](https://hashnode.com/@ahmetozel)

[Nov 16](https://hashnode.com/posts/rag-chunking-embeddings-explained/6afb2f3383f238307fab4313/comment/6afb718191b1c666ea4e1cda)

Recording the embedding model and dimension in the Chroma collection is a useful safeguard, particularly because both your lexical hash adapter and MiniLM produce 384-dimensional vectors. I would include the provider identity and preprocessing revision in that check so matching dimensions cannot allow those two representations to mix.

For the first retrieval fixture, one synonym-only question would distinguish the semantic provider from the lexical test adapter immediately. Keeping that case outside the lightweight unit tests would make it clear which tests establish application plumbing and which actually exercise semantic retrieval.
