The Chat API provides AI-powered Vadalog code assistance and answers questions about the platform. It is available at https://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)
Request Format:
Response Format: Streaming text response in AI SDK format:
Example Usage:

/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
Request Format:
Response Format:
Example Usage:

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
Documentation Integration (RAG)
  • 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
AI-Powered Assistance
  • Powered by Azure OpenAI (gpt-4o)
  • Context-aware responses
  • Iterative conversation support
  • Syntax error prevention

Response Types

Rate Limits

Error Handling

Error Response Format:
Common Error Codes:

Best Practices

  1. Use conversation context: Include previous messages for better responses
  2. Be specific: Ask detailed questions about Vadalog syntax
  3. Match question complexity:
    • For syntax questions: “How do I use the and() function?”
    • For complete programs: “Show me a complete PostgreSQL connection example”
  4. Handle streaming: Implement proper streaming for real-time responses
  5. Error handling: Implement retry logic for rate limits

Examples

Database Connections

Data Processing with Aggregations

Advanced AI Features


Integration

Frontend Integration

Use the streaming endpoint with AI SDK components for real-time chat interfaces.

Backend Integration

Use the JSON endpoint for programmatic access, automation, and service integration.

Documentation Bot

Embed the chat functionality directly in your documentation using the provided components. The Chat API provides comprehensive Vadalog assistance powered by AI and integrated with the complete Prometheux documentation.