ShadAI Framework
  1. Quick Started
ShadAI Framework
  • Quick Started
    • Using python client
    • Javacript Client
  • Features
    • Supported Data Types by File Extension
    • ShadAI Agents
    • Supported Models
  • Pricing
    • Pricing Plan
  1. Quick Started

Using python client

A Python client for interacting with the SHADAI API. This client provides a simple interface for document processing, querying, and session management.

Generate an API KEY#

Go to app.shadai.ai
Sign in using gmail account
Generate a new API KEY
Set SHADAI_API_KEY as an environment variable in your python project

Setup#

Install our python client package using pip
pip install shadai

Requirements#

Python >= 3.9
Environment Variables:
SHADAI_API_KEY: Your SHADAI API key

Features#

Asynchronous API interactions
Automatic session management
File ingestion with progress tracking
Interactive query interface
Robust error handling and retries
Rich console output

Getting Started with SHADAI#

SHADAI Intelligence Client is a powerful tool for document processing, querying, and AI-assisted analysis. This guide will walk you through various use cases and show you how to leverage the full capabilities of the platform.

Session Configuration#

When working with SHADAI, you'll always start by creating a Session. Here are the configuration options available:
ParameterTypeDescriptionDefault
typestrProcessing type ("light", "standard", "deep")"standard"
llm_modelstrLanguage model to useAIModels.CLAUDE_3_5_HAIKU
llm_temperaturefloatModel temperature0.7
llm_max_tokensintMaximum tokens for response4096
query_modestrQuery processing modehybrid
languagestrResponse languagees
deleteboolAuto-delete session on exitTrue
KEY POINTS TO KNOW
In ShadAI framework agents can be called in a specific Session.
Sessions will contain data in their context and agents can interact with it.
You can create unlimited Sessions with different context of data.
image.png
TYPES OF SESSION
In ShadAI we define 3 different kind of sessions and you need to understand their use details:
LIGHTSTANDARDDEEP
Fastest ResponseQuick ResponseSlow Response
Text ProcessingSupport Images, AudioComplex files and Reasonning

Working with Documents#

Ingesting Documents#

The first step in most SHADAI workflows is ingesting documents. SHADAI can process various document formats and extract relevant information.

Managing Sessions#

SHADAI provides tools for managing your sessions, including creating, listing, retrieving, and deleting them.

Querying and Analysis#

Making a Single Query#

The most basic way to interact with your documents is through a single query:

Making Multiple Queries#

For more complex analysis, you might want to ask multiple related questions:

Getting a Session Summary#

SHADAI can generate concise summaries of the documents in your session:

Creating an Article#

SHADAI can generate comprehensive articles on topics related to the documents in your session:

Advanced Interactions#

Simple LLM Completion#

Sometimes you just need a direct answer from the language model:

Chat with Data and History#

For interactive conversations that maintain context:

Creating a Tool Agent#

For more complex AI-powered workflows, you can create a Tool Agent that combines document knowledge with custom functions:

Error Handling#

The SHADAI client includes comprehensive error handling for:
Configuration errors
API communication issues
File processing problems
Session management failures
SUPPORTED DATA TYPES
Support for 20+ file types (.pdf, .docx, .html, .xlsx, .csv, .pptx, spreadsheets, images, audio and more).
To see all the types go to: Click Here to see Ingest Data Types

Explore Use Cases:#

We have a public repository of some use cases in different industries such as Education, Financial, Logistics, Retail, Healhtech.
Click Here to see Use Cases
Modified at 2025-05-08 07:45:50
Previous
Quick Started
Next
Javacript Client
Built with