vertex-showcase API
Endpoints for vertex-showcase operations.
Endpoints
- POST /api/vertex-showcase/chat
- POST /api/vertex-showcase/chat/stream
- POST /api/vertex-showcase/rag/query
- POST /api/vertex-showcase/rag/upload
- GET /api/vertex-showcase/rag/documents
- GET /api/vertex-showcase/demo/rag-before-after
- GET /api/vertex-showcase/demo/capabilities
- GET /api/vertex-showcase/health
POST /api/vertex-showcase/chat
Chat With Vertex
Chat with Google Vertex AI (Gemini Pro)
Demonstrates:
- Vertex AI chat completion
- Conversation context management
- Response formatting
Request Body
{}Responses
200: Successful Response
422: Validation Error
Examples
curl -X POST "https://api.altsportsdata.com/api/vertex-showcase/chat" \
-H "Content-Type: application/json" \
-d '{}'POST /api/vertex-showcase/chat/stream
Chat With Vertex Stream
Stream chat responses from Vertex AI
Demonstrates:
- Server-sent events (SSE)
- Streaming responses
- Token-by-token generation
Request Body
{}Responses
200: Successful Response
422: Validation Error
Examples
curl -X POST "https://api.altsportsdata.com/api/vertex-showcase/chat/stream" \
-H "Content-Type: application/json" \
-d '{}'POST /api/vertex-showcase/rag/query
Query Rag
Query the Vertex AI RAG system
Demonstrates:
- RAG retrieval
- Document citations
- Contextual answers
Request Body
{}Responses
200: Successful Response
422: Validation Error
Examples
curl -X POST "https://api.altsportsdata.com/api/vertex-showcase/rag/query" \
-H "Content-Type: application/json" \
-d '{}'POST /api/vertex-showcase/rag/upload
Upload Document To Rag
Upload a document to Vertex AI RAG corpus
Demonstrates:
- Document ingestion
- GCS storage
- RAG indexing
- Background processing
Request Body
{}Responses
200: Successful Response
422: Validation Error
Examples
curl -X POST "https://api.altsportsdata.com/api/vertex-showcase/rag/upload" \
-H "Content-Type: application/json" \
-d '{}'GET /api/vertex-showcase/rag/documents
List Rag Documents
List all documents in the RAG system
Demonstrates:
- Document registry
- Upload history
- System status
Responses
200: Successful Response
Examples
curl -X GET "https://api.altsportsdata.com/api/vertex-showcase/rag/documents" \
-H "Content-Type: application/json"GET /api/vertex-showcase/demo/rag-before-after
Demo Rag Before After
Demonstrate RAG before and after document upload
Shows:
- Query result with no documents
- Upload a document
- Query result with the new document
Responses
200: Successful Response
Examples
curl -X GET "https://api.altsportsdata.com/api/vertex-showcase/demo/rag-before-after" \
-H "Content-Type: application/json"GET /api/vertex-showcase/demo/capabilities
List Vertex Capabilities
List all available Vertex AI capabilities
Responses
200: Successful Response
Examples
curl -X GET "https://api.altsportsdata.com/api/vertex-showcase/demo/capabilities" \
-H "Content-Type: application/json"