RAG API
2 endpoints
Retrieval-augmented generation endpoints.
Get specific model information / export async function get(collectionId: string, modelId: string): Promise<AIModel> { co
Get specific model information / export async function get(collectionId: string, modelId: string): Promise<AIModel> { co
Endpoint
/admin/collection/{collectionId}/ai/configureAssistantParameters
collectionIdpath
string
Required
bodybody
ConfigureAssistantRequest
Required
See ConfigureAssistantRequest schema
Responses
200
Success{
"schema": "ConfigureAssistantResponse"
}400
Bad request401
Unauthorized404
Not foundList available AI models / export async function list(collectionId: string): Promise<{ object: 'list'; data: AIModel[] }
List available AI models / export async function list(collectionId: string): Promise<{ object: 'list'; data: AIModel[] }
Endpoint
/admin/collection/{collectionId}/ai/indexDocumentParameters
collectionIdpath
string
Required
bodybody
IndexDocumentRequest
Required
See IndexDocumentRequest schema
Responses
200
Success{
"schema": "IndexDocumentResponse"
}400
Bad request401
Unauthorized404
Not found