Skip to main content

Knowledge Overview

Knowledge allows your agents to answer questions using your own documents - PDFs, text files, web pages, and more.

How It Works

  1. Add documents → Chunked and indexed
  2. Ask questions → Agent retrieves relevant context
  3. Get answers → With source citations

Quick Start

That’s it! The agent can now answer questions using your documents.

When to Use

Knowledge vs Memory vs RAG

What Knowledge.search() returns

Knowledge.search() returns a typed SearchResult from praisonaiagents.knowledge.models.
A SearchResult is a dataclass, so it is always truthy — even when empty. Check .results instead of the object.
Each SearchResultItem can be passed directly into RAG context utilities like build_context and deduplicate_chunks. See Search Results for the full field reference.

Next Steps

Quick Start

Get started in 5 minutes

Storage Options

Configure vector stores

Chat with PDFs

Build a PDF chat agent

RAG

Advanced retrieval