---
title: "Sam Borges (@samborges) | Hashnode"
description: "shadowy super coder. Read the latest articles by Sam Borges on Hashnode."
url: "https://hashnode.com/@samborges"
---

@samborges

# Sam Borges

@samborges · Joined January 2024

shadowy super coder

## Comments

[That's a great question. The LLM does not interact with the vector database. The query is more contextualize before going to the LLM. The original query gets augmented/changed but appending the additional context BEFORE it gets to the LLM. Here's a quick example: Original query: "what is my sick leave policy?" RAG query: "using the provided context, answer the question. Question: what is my sick leave policy? Context: <TEXT RETRIEVED FROM DOCUMENTS IN RAG>" Then this RAG query is sent to the LLM. Hope that helps! Let me know if you have any other questions.](https://hashnode.com/posts/what-the-heck-is-rag-and-how-to-build-it/65dd65495dd6217ce265cb00/comment/65ddf122925513713f7b2f17#reply-65ddfbd1cb70ca8db92f2b34)

Reply · Article · Feb 27, 2024 · [What the Heck is RAG? And How to Build It](https://hashnode.com/posts/what-the-heck-is-rag-and-how-to-build-it/65dd65495dd6217ce265cb00)
