---
title: "Discussion on \"I Built a RAG Application to Chat With Documents\" | Hashnode"
description: "Discussion on \"I Built a RAG Application to Chat With Documents\". Understanding document processing, embeddings, vector search, and AI-powered question answering."
url: "https://hashnode.com/posts/i-built-a-rag-application-to-chat-with-documents/6ad4488932882ddf38cc3219"
---

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

Discussion

# [I Built a RAG Application to Chat With Documents](https://karthickbuilds.hashnode.dev/i-built-a-rag-application-to-chat-with-documents?utm_source=hashnode&utm_medium=feed)

Understanding document processing, embeddings, vector search, and AI-powered question answering.

Oct 18 · 7 min read · karthickbuilds.hashnode.dev  
Read the article

-   [#rag](https://hashnode.com/tag/rag)
-   [#artificial-intelligence](https://hashnode.com/tag/artificial-intelligence)
-   [#llm](https://hashnode.com/tag/llm)
-   [#python](https://hashnode.com/tag/python)
-   [#machine-learning](https://hashnode.com/tag/machine-learning)

## Written by

[karthick](https://hashnode.com/@karthickdev)

@karthickdev · Chennai, India

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

Learn. Build. Break. Fix. Share.

I'm a developer interested in full-stack development, AI engineering, and open-source technologies. I enjoy creating practical applications, exploring new tools, solving technical challenges, and sharing my knowledge with the developer community.

## Responses 2

Markdown supported · ⌘↵ to post

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

[Oct 20](https://hashnode.com/posts/i-built-a-rag-application-to-chat-with-documents/6ad4488932882ddf38cc3219/comment/6ad72d005a265b0317872431)

The annual-leave example has a useful qualifier to carry into your evaluation set: the passage says eligible employees receive 20 days, while the question asks about employees generally. A fluent answer can quote the number correctly and still broaden who it applies to.

I would include a case where eligibility is unspecified and require the answer to retain that condition or ask for the missing detail. Pair it with a passage that explicitly defines the eligible group. That tests whether the generation step preserves the policy's scope, beyond finding a semantically similar paragraph and repeating its main number.

[Yunus Emre Vurgun](https://hashnode.com/@yunusemrevurgun)

[Oct 18](https://hashnode.com/posts/i-built-a-rag-application-to-chat-with-documents/6ad4488932882ddf38cc3219/comment/6ad4d6cdf3f7728906d87105)

Splitting it into an ingestion workflow and a question-answering workflow is a good way to explain it, since most bugs end up living in the first one. A practical tip for the chunking step: store the source page number and section heading as metadata with each chunk, so the answer can cite where it came from and you can tell at a glance whether a bad answer came from retrieval or from the LLM. Which chunk size and overlap did you end up using for PDFs with tables?
