Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.praison.ai/llms.txt

Use this file to discover all available pages before exploring further.

Query functionality for agent knowledge bases.

Quick Start

1

Query Knowledge

use praisonai::{Agent, Knowledge};

let knowledge = Knowledge::new()
    .add_file("docs/")
    .build()?;

let agent = Agent::new()
    .name("Assistant")
    .knowledge(knowledge)
    .build()?;

// Query returns relevant information
agent.chat("What is the refund policy?").await?;

Knowledge

Knowledge base

Retrieval

Retrieval strategies