PromptisePromptise
Docs
GitHub
Promptise - AI Framework LogoPromptise

The foundation layer for agentic intelligence. Build, secure and operate autonomous AI systems with Promptise Foundry.

pip install promptise

[01] Foundry

  • MCPcast
  • The Promptise Agent
  • Reasoning Engine
  • MCP
  • Agent Runtime
  • Prompt Engineering
  • Execution Engine
  • Agent Identity

[02] Resources

  • Documentation
  • GitHub
  • Guides
  • Learning Paths
  • Questions

[03] Company

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

© 2026 Promptise by Manser Ventures. All rights reserved.

Open source · Python

← 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.

[n.01/02]> 9 guides
  1. 01What Is Agentic RAG? How It Differs from Classic RAGWhat 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 minOct 18, 2026
  2. 02RAG 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 minOct 18, 2026
  3. 03Grounding 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 minOct 18, 2026
  4. 04Agentic 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 minOct 11, 2026
  5. 05Why 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 minOct 18, 2026
  6. 06Long-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 minOct 18, 2026
  7. 07RAG 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 minOct 18, 2026
  8. 08Prompt 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 minOct 18, 2026
  9. 09Self-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 minOct 18, 2026
[n.02/02]> go further

Related topics

  • Context Engineering6
  • Grounding and Citations6
  • Hallucinations11
  • Authentication and Access Control7
  • Chain-of-Thought5
  • Cost Control9
  • How LLMs Work8
  • LLM Mental Models19

Topic hubs

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

By category and level

  • AI Engineering guides71
  • Prompt Engineering guides54
  • LLM Security guides10
  • Beginner guides36
  • Intermediate guides80
  • Advanced guides24

Search every guide.

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

All guidesLearning paths