model | string |
name | string |
page | integer A page number within the paginated result set. |
page_size | integer Number of results to return per page. |
tag | string |
{- "meta": {
- "page": 0,
- "page_size": 0,
- "total_pages": 0,
- "count": 0,
}, - "results": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "created_at": "2019-08-24T14:15:22Z",
- "status": "pending",
- "name": "string",
- "model": "string",
- "chunk_count": 0,
- "tags": [
- "string"
], - "error_message": "string"
}
]
}
id required | string <uuid> A UUID string identifying this document. |
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "created_at": "2019-08-24T14:15:22Z",
- "status": "pending",
- "name": "string",
- "model": "string",
- "chunk_count": 0,
- "tags": [
- "string"
], - "content": "string",
- "error_message": "string"
}
id required | string <uuid> A UUID string identifying this document. |
name required | string <= 255 characters |
tags | Array of strings |
{- "name": "string",
- "tags": [
- "string"
]
}
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "created_at": "2019-08-24T14:15:22Z",
- "status": "pending",
- "name": "string",
- "model": "string",
- "chunk_count": 0,
- "tags": [
- "string"
], - "content": "string",
- "error_message": "string"
}
ドキュメント配下のチャンク一覧/単体取得用 ViewSet。
document_pk required | string |
page | integer A page number within the paginated result set. |
page_size | integer Number of results to return per page. |
{- "meta": {
- "page": 0,
- "page_size": 0,
- "total_pages": 0,
- "count": 0,
}, - "results": [
- {
- "document": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "created_at": "2019-08-24T14:15:22Z",
- "status": "pending",
- "name": "string",
- "model": "string",
- "chunk_count": 0,
- "tags": [
- "string"
], - "content": "string",
- "error_message": "string"
}, - "chunk_index": 0,
- "content": "string",
- "metadata": "string"
}
]
}
ドキュメント配下のチャンク一覧/単体取得用 ViewSet。
document_pk required | string |
index required | string^\d+$ |
{- "document": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "created_at": "2019-08-24T14:15:22Z",
- "status": "pending",
- "name": "string",
- "model": "string",
- "chunk_count": 0,
- "tags": [
- "string"
], - "content": "string",
- "error_message": "string"
}, - "chunk_index": 0,
- "content": "string",
- "metadata": "string"
}
{- "answer": "string",
- "sources": [
- {
- "document": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "created_at": "2019-08-24T14:15:22Z",
- "status": "pending",
- "name": "string",
- "model": "string",
- "chunk_count": 0,
- "tags": [
- "string"
], - "content": "string",
- "error_message": "string"
}, - "chunk_index": 0,
- "distance": 0,
- "content": "string",
- "metadata": {
- "property1": null,
- "property2": null
}
}
]
}
model | string |
name | string |
tag | string |
model | string <= 255 characters Default: "multilingual-e5-large" |
query required | string <= 1000 characters |
tags | Array of strings[ items <= 255 characters ] |
top_k | integer [ 1 .. 100 ] Default: 3 |
threshold | number <double> [ 0 .. 1 ] Default: 0.3 |
{- "model": "multilingual-e5-large",
- "query": "string",
- "tags": [
- "string"
], - "top_k": 3,
- "threshold": 0.3
}
{- "results": [
- {
- "document": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "created_at": "2019-08-24T14:15:22Z",
- "status": "pending",
- "name": "string",
- "model": "string",
- "chunk_count": 0,
- "tags": [
- "string"
], - "content": "string",
- "error_message": "string"
}, - "chunk_index": 0,
- "distance": 0,
- "content": "string",
- "metadata": {
- "property1": null,
- "property2": null
}
}
]
}
file required | string <uri> |
name | string <= 255 characters |
tags | Array of strings |
model | string (ModelEnum) Value: "multilingual-e5-large"
|
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "status": "pending",
- "content": "string",
- "name": "string",
- "tags": [
- "string"
], - "model": "multilingual-e5-large"
}