Python SDK Documentation
Column Types
Type
Purpose
Example
How It Works
1
2
3
4
Available Models
# List all chat models
chat_models = jamai.model_ids(capabilities=["chat"])
print(chat_models[:5]) # ['openai/gpt-5.2', 'openai/gpt-5.2-mini', 'anthropic/claude-3-5-sonnet', ...]
# List embedding models
embed_models = jamai.model_ids(capabilities=["embed"])
print(embed_models) # ['ellm/BAAI/bge-m3', ...]
# Get full model info
models = jamai.model_info()
for m in models.data[:3]:
print(f"{m.id}: context={getattr(m, 'context_length', 'N/A')}")Row Structure
QUICK REFERENCE
1. SETUP
Install
Get Credentials
1
2
3
4
Initialize Client
.env File
2. TABLE TYPES
Type
Use Case
Create Method
3. ACTION TABLES (Most Common)
Create
Column Reference Syntax
How LLM Columns Work
LLM Generation Settings
Parameter
Description
RAG (Retrieval Augmented Generation)
Multi-turn Chat in Action Tables
Prompting Tips
4. ADD ROWS
Non-Streaming (Wait for Complete Response)
Streaming (Real-time Output)
With File Upload
Get Row ID After Adding (Non-Streaming)
Get Row ID After Adding (Streaming)
5. READ ROWS
Basic List
With WHERE Filter
Select Specific Columns
Full-Text Search
Pagination (REQUIRED for >100 rows)
Get Single Row
6. UPDATE ROWS
7. DELETE ROWS
8. TABLE OPERATIONS
List Tables
Get Schema
Delete Table
Duplicate Table
Check If Table Exists
Safe Table Creation (Delete if Exists)
9. KNOWLEDGE TABLES (RAG)
Create
Add Data
Embed File
Create RAG Action Table
10. CHAT TABLES
Create
Chat (Streaming)
How Chat History Works
11. FILE OPERATIONS
Upload
Get Presigned URL (for display)
12. PYTHON COLUMNS
Basic Concept
Syntax
Preinstalled Libraries
Library
Use Case
Column Data Types
dtype
Description
Working with Images
Working with Audio
Making Web Requests
Example: Name Matching
13. DIRECT API (No Tables)
Chat Completions
Embeddings
Model Info
14. VALUE EXTRACTION (CRITICAL)
JSON with Confidence Scores
15. ERROR HANDLING
Common Errors Table
Error
Solution
Error Handling Pattern
Handle Empty LLM Response
Streaming Error Handling
16. ASYNC OPERATIONS
Async Client
Parallel Processing with Async
17. REQUEST TYPES
Current vs Deprecated Methods
Current (Use This)
Deprecated (Avoid)
18. COMPLETE EXAMPLE
QUICK COPY-PASTE
Last updated
Was this helpful?