Power Guard AI
  1. Getting Started
Power Guard AI
  • Getting Started
    • hello-powerguard (starts here!)
    • ai-controller-guide
    • chat-controller-guide
    • health-controller-guide
    • models-controller-guide
    • usage-controller-guide
  • AI
    • Generate AI responses for form fields
      POST
    • Generate AI text completion
      POST
    • Generate embeddings for input text
      POST
  • Chat
    • Process chat completions
      POST
    • Process chat completions
      POST
  • Health
    • Check API health status
      GET
  • Models
    • List all available models
      GET
    • Get specific model information
      GET
  • Usage
    • Get API usage statistics
      GET
  • Esquemas
    • Schemas
      • CompletionRequest
      • ChatCompletionChoice
      • EmbeddingRequest
      • ChatCompletionFunction
      • FunctionParameters
      • ChatCompletionMessage
      • Message
      • ChatCompletionResponse
      • QuestionModel
      • ChatCompletionToolCall
      • ChatCompletionUsage
      • QuestionRequest
      • QuestionValidationRules
      • Choice
      • Tool
      • ChoiceMessage
      • ToolFunction
      • CompletionResponse
      • DataItem
      • EmbeddingResponse
      • HealthResponseModel
      • ModelCapabilities
      • ModelInfo
      • ResponseModel
      • Role
      • SingleReadOnlyMemory
      • SingleReadOnlySpan
      • Usage
      • UsageModel
  1. Getting Started

ai-controller-guide

🧠 AI Controller Guide#

When OpenAI's API isn't enough, we've got you covered.
The AI Controller is your Swiss Army knife for AI operations that go beyond simple chat. It provides form completions, embeddings, and structured outputs through specialized endpoints.

🎯 When to Use This Controller#

Complex form completions with validation
Embedding generation for semantic search
Custom AI workflows that need structure

🚀 Endpoints#

POST /api/AI/CompleteForm#

The form wizard that understands context and compliance.

POST /api/AI/Completion#

Raw AI power with compliance guardrails.

POST /api/AI/Embedding#

Turn text into vectors, securely.

📋 Response Schemas#

CompleteForm Response#

Completion Response#

Embedding Response#

📋 Schema Deep Dive#

QuestionRequest Schema#

🎨 Real-World Examples#

Compliance Form Automation#

Smart Document Analysis#

Semantic Search Implementation#

🛡️ Compliance Features SOON#

Automatic PII Detection#

Industry-Specific Compliance SOON#

🎯 Best Practices#

1. Use Structured Outputs#

2. Leverage Validation Rules#

3. Batch for Efficiency#

🚨 Error Handling#

📊 Monitoring & Analytics SOON#

🎁 Pro Tips#

1.
Pre-validate with embeddings: Check if user input is relevant before processing
2.
Use question hints: Better hints = better AI completions
3.
Model selection matters: GPT-4 for complex reasoning, GPT-3.5 for speed
4.
Cache embeddings: They're deterministic for the same input
5.
Stream large forms: Use server-sent events for real-time updates

🔗 Related Resources#

OpenAI Migration Guide
Compliance Modes Explained
API Rate Limits
Webhook Integration

Remember: The AI Controller isn't just about AI - it's about AI that passes audits. Every request is logged, every output is checked, and your compliance team can sleep at night.
*Questions? Join our Email
Modificado em 2025-07-16 20:16:34
Página anterior
hello-powerguard (starts here!)
Próxima página
chat-controller-guide
Built with