Chat API
The Chat API provides AI-powered Vadalog code assistance and answers questions about the platform. It is available athttps://chat-docs.prometheux.ai and can be integrated into your applications.
Overview
The Chat API provides:- Vadalog code generation tailored to your specific question
- Syntax assistance and debugging help
- Documentation search integration via Algolia
- Context-aware responses based on Prometheux documentation
- Grammar-compliant code following Vadalog best practices
- Intelligent examples — simple questions get focused snippets, complex questions get full programs
Endpoints
/api/docsChat (Streaming)
Optimized for chat interfaces and streaming responses.
- URL:
https://chat-docs.prometheux.ai/api/docsChat - Method:
POST - Content-Type:
application/json - Response: Streaming text (AI SDK format)
- JavaScript
- Python
- cURL
/api/vadalog (Standard JSON)
Standard REST API for programmatic integration.
- URL:
https://chat-docs.prometheux.ai/api/vadalog - Method:
POST - Content-Type:
application/json - Response: Standard JSON
- JavaScript
- Python
- cURL
Features
Vadalog Code Generation- Focused, relevant code examples matched to your question
- Proper syntax with appropriate annotations (only when needed)
- Database connection examples for data source questions
- Full data processing workflows for integration scenarios
- Simple syntax examples for concept/logic questions
- Grammar-compliant code
- Uses Retrieval Augmented Generation (RAG) via Algolia
- Dynamically searches documentation based on your query
- Retrieves top 3 most relevant sections
- Always up-to-date — automatically includes new documentation
- No manual prompt updates needed when docs change
- Powered by Azure OpenAI (gpt-4o)
- Context-aware responses
- Iterative conversation support
- Syntax error prevention
Response Types
| Endpoint | Best For | Format | Use Case |
|---|---|---|---|
/api/docsChat | Chat interfaces, real-time applications | AI SDK compatible streaming | Frontend chat components |
/api/vadalog | Programmatic integration, APIs, automation | Standard JSON with structured data | Backend services, integrations |
Rate Limits
| Limit | Value |
|---|---|
| Requests per minute | 180 |
| Tokens per minute | 30,000,000 |
| Response token limit | 1,500 |
| Concurrent requests | Supported |
Error Handling
Error Response Format:| Code | Description | Solution |
|---|---|---|
| 400 | Bad Request | Check request format |
| 429 | Rate Limited | Reduce request frequency |
| 503 | Service Unavailable | Retry after delay |
| 500 | Internal Error | Contact support |
Best Practices
- Use conversation context: Include previous messages for better responses
- Be specific: Ask detailed questions about Vadalog syntax
- Match question complexity:
- For syntax questions: “How do I use the and() function?”
- For complete programs: “Show me a complete PostgreSQL connection example”
- Handle streaming: Implement proper streaming for real-time responses
- Error handling: Implement retry logic for rate limits

