Schema Registry
RagQueryRequest

RagQueryRequest

RAG query request model

Properties

PropertyTypeRequiredDescription
querystringβœ… YesQuestion to ask the RAG system
top_kinteger❌ NoNumber of results
include_citationsboolean❌ NoInclude source citations

Example

{
  "query": "example",
  "top_k": 1,
  "include_citations": false
}

Used In

Code Examples

TypeScript

interface RagQueryRequest {
  query: string;
  top_k?: number;
  include_citations?: boolean;
}
 
// Usage example
const data: RagQueryRequest = {
  "query": "example",
  "top_k": 1,
  "include_citations": false
};

Python

from data_layer.schemas import RagQueryRequest
 
# Create instance
data = RagQueryRequest(
    # 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",   "top_k": 1,   "include_citations": false }'

Validation Rules

Required Fields: query

top_k: Minimum value 1

top_k: Maximum value 20

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