Ragpi (0.2.x)
Download OpenAPI specification:Download
Ragpi is an AI assistant specialized in retrieving and synthesizing technical information to provide relevant answers to queries.
Response samples
- 200
- 422
- 500
- 503
Content type
application/json
[- {
- "id": "string",
- "name": "string",
- "description": "string",
- "num_docs": 0,
- "last_task_id": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "connector": {
- "type": "sitemap",
- "sitemap_url": "string",
- "include_pattern": "string",
- "exclude_pattern": "string"
}
}
]
Create Source
Authorizations:
APIKeyHeader
Request Body schema: application/jsonrequired
name required | string (Name) [ 3 .. 50 ] characters |
description required | string (Description) |
required | any (Connector) |
Responses
Request samples
- Payload
Content type
application/json
{- "name": "string",
- "description": "string",
- "connector": {
- "type": "sitemap",
- "sitemap_url": "string",
- "include_pattern": "string",
- "exclude_pattern": "string"
}
}
Response samples
- 202
- 409
- 422
- 500
- 503
Content type
application/json
{- "task_id": "string",
- "source": {
- "id": "string",
- "name": "string",
- "description": "string",
- "num_docs": 0,
- "last_task_id": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "connector": {
- "type": "sitemap",
- "sitemap_url": "string",
- "include_pattern": "string",
- "exclude_pattern": "string"
}
}, - "message": "string"
}
Get Source
Authorizations:
APIKeyHeader
path Parameters
source_name required | string (Source Name) |
Responses
Response samples
- 200
- 404
- 422
- 500
- 503
Content type
application/json
{- "id": "string",
- "name": "string",
- "description": "string",
- "num_docs": 0,
- "last_task_id": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "connector": {
- "type": "sitemap",
- "sitemap_url": "string",
- "include_pattern": "string",
- "exclude_pattern": "string"
}
}
Update Source
Authorizations:
APIKeyHeader
path Parameters
source_name required | string (Source Name) |
Request Body schema: application/jsonrequired
sync | boolean (Sync) Default: true |
Description (string) or Description (null) (Description) | |
Connector (any) or Connector (null) (Connector) |
Responses
Request samples
- Payload
Content type
application/json
{- "sync": true,
- "description": "string",
- "connector": {
- "type": "sitemap",
- "sitemap_url": "string",
- "include_pattern": "string",
- "exclude_pattern": "string"
}
}
Response samples
- 202
- 404
- 422
- 423
- 500
- 503
Content type
application/json
{- "task_id": "string",
- "source": {
- "id": "string",
- "name": "string",
- "description": "string",
- "num_docs": 0,
- "last_task_id": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "connector": {
- "type": "sitemap",
- "sitemap_url": "string",
- "include_pattern": "string",
- "exclude_pattern": "string"
}
}, - "message": "string"
}
Get Source Documents
Authorizations:
APIKeyHeader
path Parameters
source_name required | string (Source Name) |
query Parameters
limit | integer (Limit) Default: 100 |
offset | integer (Offset) Default: 0 |
Responses
Response samples
- 200
- 404
- 422
- 500
- 503
Content type
application/json
[- {
- "id": "string",
- "content": "string",
- "title": "string",
- "url": "string",
- "created_at": "2019-08-24T14:15:22Z"
}
]
Search Source
Authorizations:
APIKeyHeader
path Parameters
source_name required | string (Source Name) |
query Parameters
query required | string (Query) |
top_k | integer (Top K) Default: 10 |
Responses
Response samples
- 200
- 404
- 422
- 500
- 503
Content type
application/json
[- {
- "id": "string",
- "content": "string",
- "title": "string",
- "url": "string",
- "created_at": "2019-08-24T14:15:22Z"
}
]
Chat
Authorizations:
APIKeyHeader
Request Body schema: application/jsonrequired
Array of Sources (strings) or Sources (null) (Sources) | |
model | string (Model) Default: "gpt-4o" |
required | Array of objects (Messages) |
Responses
Request samples
- Payload
Content type
application/json
{- "sources": [
- "string"
], - "model": "gpt-4o",
- "messages": [
- {
- "role": "user",
- "content": "string"
}
]
}
Response samples
- 200
- 404
- 422
- 500
- 503
Content type
application/json
{- "message": "string",
- "retrieved_documents": [
- {
- "id": "string",
- "content": "string",
- "title": "string",
- "url": "string",
- "created_at": "2019-08-24T14:15:22Z"
}
]
}