Schema Registry
RagQueryResponse

RagQueryResponse

RAG query response model

Properties

PropertyTypeRequiredDescription
querystringβœ… Yes-
answerstringβœ… Yes-
citationsarrayβœ… Yes-
documents_foundintegerβœ… Yes-
processing_time_msintegerβœ… Yes-
timestampstringβœ… Yes-

Example

{
  "query": "example",
  "answer": "example",
  "citations": [],
  "documents_found": 0,
  "processing_time_ms": 0,
  "timestamp": "example"
}

Used In

Code Examples

TypeScript

interface RagQueryResponse {
  query: string;
  answer: string;
  citations: Record<string, any>[];
  documents_found: number;
  processing_time_ms: number;
  timestamp: string;
}
 
// Usage example
const data: RagQueryResponse = {
  "query": "example",
  "answer": "example",
  "citations": [],
  "documents_found": 0,
  "processing_time_ms": 0,
  "timestamp": "example"
};

Python

from data_layer.schemas import RagQueryResponse
 
# Create instance
data = RagQueryResponse(
    # Add your field values here
)

cURL

curl -X POST "https://altsportsleagues-backend-2qcdjegnaa-uc.a.run.app/api/endpoint" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -d '{   "query": "example",   "answer": "example",   "citations": [],   "documents_found": 0,   "processing_time_ms": 0,   "timestamp": "example" }'

Validation Rules

Required Fields: query, answer, citations, documents_found, processing_time_ms, timestamp

Additional Information

  • Type: object
  • Source: Generated from Pydantic models in data_layer/schemas/
  • Auto-validated: All fields are validated by FastAPI

This documentation is auto-generated from the OpenAPI specification.

Platform

Documentation

Community

Support

partnership@altsportsdata.comdev@altsportsleagues.ai

2025 Β© AltSportsLeagues.ai. Powered by AI-driven sports business intelligence.

πŸ€– AI-Enhancedβ€’πŸ“Š Data-Drivenβ€’βš‘ Real-Time