TypeScript SDK Documentation
Column Types
Type
Purpose
Example
How It Works
1
2
3
4
Available Models
// List all chat models
const chatModels = await jamai.llm.modelNames({
capabilities: ["chat"],
});
console.log(chatModels.slice(0, 5)); // ['openai/gpt-4o', 'openai/gpt-4o-mini', ...]
// List embedding models
const embedModels = await jamai.llm.modelNames({
capabilities: ["embed"],
});
console.log(embedModels); // ['ellm/BAAI/bge-m3', ...]
// Get full model info
const models = await jamai.llm.modelInfo();
for (const m of models.data.slice(0, 3)) {
console.log(`${m.id}: context=${m.context_length || "N/A"}`);
}Row Structure
QUICK REFERENCE
1. SETUP
Install
Get Credentials
1
2
3
4
Initialize Client
Parameter
Type
Required
Description
Example Usage
Example .env File
2. TABLE TYPES
Type
Use Case
Create Method
3. ACTION TABLES (Most Common)
Create
Column Reference Syntax
How LLM Columns Work
1
2
3
4
LLM Generation Settings
Parameter
Description
RAG (Retrieval Augmented Generation)
1
2
3
4
5
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
Basic Update
Regenerate Rows (Non-Streaming)
Regenerate Rows (Streaming)
7. DELETE ROWS
8. TABLE OPERATIONS
List Tables
Get Schema
Delete Table
Duplicate Table
Rename Table
Column Management
Hybrid Search
Import/Export Data
Progress Tracking for Long Operations
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 URLs
12. DIRECT API (No Tables)
Chat Completions (Non-Streaming)
Chat Completions (Streaming)
Embeddings
Model Info
13. ORGANIZATIONS & PROJECTS
Organizations
Usage & Billing Metrics
Projects
14. USERS & AUTHENTICATION
15. SECRETS MANAGEMENT
16. TEMPLATES
17. CONVERSATIONS
18. COMPLETE EXAMPLE
QUICK COPY-PASTE
Was this helpful?