ShadAI Framework
  1. advanced
ShadAI Framework
  • Index
  • README
  • Pricing
    • Pricing Plan
  • advanced
    • Best Practices
    • Tool Orchestration
    • Performance Optimization
    • Custom Tools
  • examples
    • Advanced Patterns
    • Custom Agent Examples
    • Market Research Examples
    • Multi-Document Analysis
    • Basic Query Examples
  • api-reference
    • Exceptions Reference
    • Engine Tool API
    • Shadai Client API Reference
    • Query Tool API
    • Summarize Tool API
    • Agent Tool API
    • Web Search Tool API
  • use-cases
    • Knowledge Synthesis
    • Research Assistant
    • Custom Workflows
    • Document Q&A
  • core-concepts
    • Architecture
    • Intelligent Agent
    • RAG System
    • Tools Overview
  • guides
    • Memory & Context
    • Streaming Responses
    • File Ingestion
    • Error Handling
    • Session Management
  • getting-started
    • Authentication
    • Your First Query
    • Quick Start
    • Installation
  1. advanced

Performance Optimization

Optimize your Shadai applications for speed and efficiency.

Client-Side Optimization#

1. Session Reuse#

2. Parallel Queries#

3. Disable Memory When Not Needed#

4. Stream Processing#

Memory Management#

Clear History Periodically#

Monitor History Size#

Best Practices#

Reuse sessions when possible
Disable memory for independent queries
Process streams in real-time
Clear history periodically
Use parallel processing for multiple queries

See Also#

Best Practices
Streaming Responses
Modified at 2025-10-17 17:45:30
Previous
Tool Orchestration
Next
Custom Tools
Built with