ShadAI Framework
  1. api-reference
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. api-reference

Query Tool API

Query your knowledge base with RAG-powered search.

Method Signature#

Parameters#

query (str, required): Question to ask
use_memory (bool, optional): Enable conversation context (default: True)

Returns#

Async iterator yielding response chunks (strings)

Examples#

Basic Query#

Without Memory#

Collecting Full Response#

See Also#

Shadai Client
Memory Guide
Modified at 2025-10-17 17:46:10
Previous
Shadai Client API Reference
Next
Summarize Tool API
Built with