PromptisePromptise
PlatformSoonEnterprise
DocsGitHub
Talk to usGet started
Promptise - AI Framework LogoPromptise

The full-stack framework for agentic systems. Build with the framework. Run it on the platform. Launch it with our engineers.

pip install promptise

[01] Product

  • Framework
  • Platform (coming soon)
  • Enterprise
  • How it works
  • Contact

[02] Framework

  • The Agent
  • The Interface
  • The Harness

[03] Resources

  • Documentation
  • GitHub
  • Why Promptise
  • Use cases
  • Roadmap
  • Guides
  • Learning Paths
  • Questions

[04] Company

  • About
  • Terms of Service
  • Privacy Policy
  • Cookie Policy
  • Subprocessors

© 2026 Promptise by Manser Ventures. All rights reserved.

hello@promptise.com
← Guides> Library> Topic

RAG: retrieval-augmented generation

Retrieval-augmented generation (RAG) answers questions from your own documents. Instead of relying on what the model learned in training, the system searches a collection of text, usually with embeddings in a vector index, and puts the most relevant passages into the prompt. The model answers from those passages and can cite them.

RAG works well when the retrieved text is relevant and the prompt makes the model stick to it; it fails quietly when retrieval returns the wrong chunks. These guides start with a tiny RAG pipeline in Python, then cover placing and compressing retrieved text in long prompts, breaking multi-hop questions into searchable parts, agentic RAG where the agent decides when to search, and securing RAG against poisoned documents.

12
guides
3
Beginner
6
Intermediate
3
Advanced
2 h
of reading

Start here

What Is Agentic RAG? How It Differs from Classic RAG

What agentic RAG is: an agent decides when and what to search, searches again if needed and cites sources. How it works, an example, RAG vs agentic RAG.

Beginner · 7 minRead the guide →

11 guides

  1. 01RAG for Beginners: Build a Tiny RAG Pipeline in PythonBuild a tiny RAG pipeline in Python: chunk Markdown files, embed and retrieve passages, cite sources and admit when the docs don't cover it. Real output.Beginner · 7 minPrompt EngineeringBeginner · 7 minPrompt Engineering→
  2. 02Grounding LLM Answers: Give the Model the Right ContextGround LLM answers in your own text: paste the source, fence it with delimiters, require citations and handle gaps. Real return-policy example.Beginner · 7 minPrompt EngineeringBeginner · 7 minPrompt Engineering→
  3. 03Microsoft Agent Framework Alternatives (2026), ComparedMicrosoft Agent Framework alternatives compared: LangGraph, OpenAI Agents SDK, Pydantic AI, Google ADK, CrewAI and Promptise, plus LangGraph in Foundry.Intermediate · 18 minFrameworks and comparisonsIntermediate · 18 minFrameworks and comparisons→
  4. 04Vectorless RAG: Tree Search Over Long DocumentsVectorless RAG explained: how tree search over a document outline replaces vector search, when it beats embeddings and when not, with a runnable agent.Intermediate · 18 minMemory, context and RAGIntermediate · 18 minMemory, context and RAG→
  5. 05How to Test AI Agent Memory: Recall Evals in PythonHow to test AI agent memory with recall evals in Python: retrieval recall@k, then end-to-end cases for updates, dates, abstention and isolation.Intermediate · 20 minMemory, context and RAGIntermediate · 20 minMemory, context and RAG→
  6. 06Agentic RAG in Python: Give Your AI Agent a Search ToolBuild a RAG AI agent in Python: index your docs, give the agent a search tool, cite sources, and make it say "I don't know". Real code, real output.Intermediate · 21 minMemory, context and RAGIntermediate · 21 minMemory, context and RAG→
  7. 07Why LLMs Get Niche Facts Wrong: Popularity and Training DataWhy LLMs know popular facts but invent niche ones: accuracy tracks how often a fact appears in training data. When to retrieve instead. Real example.Intermediate · 5 minPrompt EngineeringIntermediate · 5 minPrompt Engineering→
  8. 08Long-Context Prompting: Placement, Structure and RAGLong-context prompting tactics: where to put documents and the question, how to tag sources, quote-then-answer, and when to retrieve instead of stuffing.Intermediate · 8 minPrompt EngineeringIntermediate · 8 minPrompt Engineering→
  9. 09RAG Security: Stop Poisoned Documents and Prompt InjectionSecure a RAG pipeline: stop poisoned documents and indirect prompt injection, filter retrieval by permission, mark context, check answers. Real examples.Advanced · 10 minLLM SecurityAdvanced · 10 minLLM Security→
  10. 10Prompt Compression: LLMLingua and Lost in the MiddlePrompt compression techniques compared: selection, LLMLingua, summaries. Fix lost in the middle with reordering. Real example: 15,900 tokens cut to 1,400.Advanced · 9 minCost control and rate limitsAdvanced · 9 minCost control and rate limits→
  11. 11Self-Ask Prompting, Auto-CoT and Decomposition PromptsSelf-Ask prompting and Auto-CoT explained: split multi-hop questions into follow-ups, plug in search, and know when reasoning models need it. Real output.Advanced · 8 minPrompt EngineeringAdvanced · 8 minPrompt Engineering→

Related topics

  • Context Engineering12
  • Grounding and Citations9
  • Hallucinations18
  • Agent Memory9
  • AI Agent Frameworks13
  • Authentication and Access Control20
  • Chain-of-Thought5
  • Cost Control29

Topic hubs

  • Memory, context and RAG→
  • Cost control and rate limits→
  • Frameworks and comparisons→

By category and level

  • AI Engineering guides147
  • Prompt Engineering guides54
  • LLM Security guides10
  • Beginner guides75
  • Intermediate guides140
  • Advanced guides38

Search every guide.

The library lists all guides with filters for topic, level, category and reading time.

All guidesLearning paths