Process and analyze documents
Load Documents
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?;
.pdf
.txt
.md
.docx
.html