Welcome to Applied AI Tech
What this blog covers, who it is for, and how new articles are published.
· 1 min read
By Srinivasa Rao G · · 1 min read
Retrieval-augmented generation (RAG) lets a language model answer using your data instead of only what it learned during training. The idea is simple; doing it well takes care.
def answer(question: str) -> str:
chunks = index.search(embed(question), top_k=5)
context = "\n\n".join(c.text for c in chunks)
prompt = f"Answer using only this context:\n{context}\n\nQuestion: {question}"
return llm.complete(prompt)
Start with a simple pipeline, measure it, and add complexity (hybrid search, re-ranking) only where the measurements justify it.
What this blog covers, who it is for, and how new articles are published.
· 1 min read
A practical overview of the hub-and-spoke network pattern and how to start small without painting yourself into a corner.
· 1 min read