Sarah Lea<p>LLMs don’t know your PDF.<br>They don’t know your company wiki either. Or your research papers.</p><p>What they can do with RAG is look through your documents in the background and answer using what they find.</p><p>But how does that actually work? Here’s the basic idea behind RAG:<br>:blobcoffee: Chunking: The document is split into small, overlapping parts so the LLM can handle them. This keeps structure and context.<br>:blobcoffee: Embeddings & Search: Each part is turned into a vector (a numerical representation of meaning). Your question is also turned into a vector, and the system compares them to find the best matches.<br>:blobcoffee: Retriever + LLM: The top matches are sent to the LLM, which uses them to generate an answer based on that context.</p><p><a href="https://techhub.social/tags/llm" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>llm</span></a> <a href="https://techhub.social/tags/largelanguagemodel" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>largelanguagemodel</span></a> <a href="https://techhub.social/tags/ai" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>ai</span></a> <a href="https://techhub.social/tags/ki" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>ki</span></a> <a href="https://techhub.social/tags/rag" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>rag</span></a> <a href="https://techhub.social/tags/tech" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>tech</span></a> <a href="https://techhub.social/tags/technology" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>technology</span></a> <a href="https://techhub.social/tags/vector" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>vector</span></a> <a href="https://techhub.social/tags/datascience" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>datascience</span></a> <a href="https://techhub.social/tags/vectorsearch" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>vectorsearch</span></a> <a href="https://techhub.social/tags/vector" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>vector</span></a> <a href="https://techhub.social/tags/machinelearning" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>machinelearning</span></a></p>