Documents
Process and analyze documents
Load and process documents for agent knowledge.
Quick Start
- Load Documents
rust use praisonai::{Agent, Knowledge}; let knowledge = Knowledge::new() .add_file("report.pdf") .add_file("notes.txt") .add_directory("docs/") .build()?; let agent = Agent::new() .name("Analyst") .knowledge(knowledge) .build()?; agent.chat("Summarize the report").await?;
Supported Formats
| Format | Extension |
|---|---|
.pdf | |
| Text | .txt |
| Markdown | .md |
| Word | .docx |
| HTML | .html |