• _hello
  • _about-me
  • _projects
  • _blog
  • _support
_contact-me
find me in:
@faeztgh
cd ../topics

Backend

// 1 article on Backend by Faez Tgh — practical React, Next.js, TypeScript and web-performance write-ups.

01
general

A Practical Primer on Retrieval-Augmented Generation (RAG)

Jul 2, 2026· 6 min·1,201 words

An LLM only knows what it was trained on and what you paste into the prompt. RAG is how you give it your own knowledge — your docs, your data — without retraining anything. Here's the pipeline, end to end.

  • AI
  • RAG
  • LLM
read-postopen

# other-topics

  • TypeScript20
  • JavaScript11
  • React8
  • AI6
  • Next.js6
  • Performance6
  • Generics4
  • SEO3
  • Type Safety3
  • Utility Types3
  • Architecture2
  • LLM2
  • Tooling2
  • Type System2
  • Union Types2
  • Web Standards2
  • Advanced Types1
  • Autocomplete1
  • Chrome Extension1
  • Code Organization1
  • Conditional Types1
  • CSS1
  • Decorators1
  • Developer Experience1
  • Frontend1
  • Function Overloading1
  • Hooks1
  • Infer1
  • MCP1
  • Metaprogramming1
  • Namespaces1
  • Omit1
  • Pick1
  • RAG1
  • Responsive Design1
  • Structured Data1
  • Template Literal Types1
  • Type Guards1
  • Type Inference1
  • URL Parameters1
  • useEffect1
  • useLayoutEffect1
  • Web Vitals1
  • YouTube1