База знаний
Полнотекстовый и векторный поиск, граф знаний.
curl -X POST "https://loading/api/v1/knowledge/analytics/compute"{
"property1": null,
"property2": null
}curl -X GET "https://loading/api/v1/knowledge/bases"[
{
"createdAt": "string",
"createdBy": "string",
"description": "string",
"folderId": "string",
"id": "string",
"name": "string",
"teamId": "string",
"property1": null,
"property2": null
}
]Создать базу знаний
В: header
Тело запроса
application/json
TypeScript-определения
Используйте тип request body в TypeScript.
Тело ответа
application/json
curl -X POST "https://loading/api/v1/knowledge/bases" \ -H "Content-Type: application/json" \ -d '{ "name": "string" }'{
"createdAt": "string",
"createdBy": "string",
"description": "string",
"folderId": "string",
"id": "string",
"name": "string",
"teamId": "string",
"property1": null,
"property2": null
}Получить базу знаний
В: header
Параметры пути
Идентификатор базы знаний
Тело ответа
application/json
application/problem+json
curl -X GET "https://loading/api/v1/knowledge/bases/string"{
"createdAt": "string",
"createdBy": "string",
"description": "string",
"folderId": "string",
"id": "string",
"name": "string",
"teamId": "string",
"property1": null,
"property2": null
}{
"code": "string",
"detail": "string",
"errors": [
{
"name": "string",
"pointer": "string",
"reason": "string",
"rule": "string"
}
],
"instance": "string",
"request_id": "string",
"status": 0,
"title": "string",
"trace_id": "string",
"type": "http://example.com",
"property1": null,
"property2": null
}Обновить базу знаний
В: header
Параметры пути
Идентификатор базы знаний
Тело запроса
application/json
TypeScript-определения
Используйте тип request body в TypeScript.
Тело ответа
application/json
curl -X PATCH "https://loading/api/v1/knowledge/bases/string" \ -H "Content-Type: application/json" \ -d '{}'{
"createdAt": "string",
"createdBy": "string",
"description": "string",
"folderId": "string",
"id": "string",
"name": "string",
"teamId": "string",
"property1": null,
"property2": null
}Удалить базу знаний
В: header
Параметры пути
Идентификатор базы знаний
Тело ответа
application/json
curl -X DELETE "https://loading/api/v1/knowledge/bases/string"{
"ok": true
}Список источников базы знаний
В: header
Параметры пути
Идентификатор базы знаний
Тело ответа
application/json
curl -X GET "https://loading/api/v1/knowledge/bases/string/sources"[
{
"chunkCount": 0,
"createdAt": "string",
"errorMessage": "string",
"fileSize": 0,
"id": "string",
"knowledgeBaseId": "string",
"mimeType": "string",
"name": "string",
"processedAt": "string",
"status": "string",
"type": "string",
"url": "string",
"property1": null,
"property2": null
}
]Добавить источник из файла
В: header
Параметры пути
Идентификатор базы знаний
Тело запроса
multipart/form-data
TypeScript-определения
Используйте тип request body в TypeScript.
Тело ответа
application/json
application/problem+json
curl -X POST "https://loading/api/v1/knowledge/bases/string/sources/file" \ -F file="string"{
"chunkCount": 0,
"createdAt": "string",
"errorMessage": "string",
"fileSize": 0,
"id": "string",
"knowledgeBaseId": "string",
"mimeType": "string",
"name": "string",
"processedAt": "string",
"status": "string",
"type": "string",
"url": "string",
"property1": null,
"property2": null
}{
"code": "string",
"detail": "string",
"errors": [
{
"name": "string",
"pointer": "string",
"reason": "string",
"rule": "string"
}
],
"instance": "string",
"request_id": "string",
"status": 0,
"title": "string",
"trace_id": "string",
"type": "http://example.com",
"property1": null,
"property2": null
}Добавить несколько источников из файлов
В: header
Параметры пути
Идентификатор базы знаний
Тело запроса
multipart/form-data
TypeScript-определения
Используйте тип request body в TypeScript.
Тело ответа
application/json
application/problem+json
curl -X POST "https://loading/api/v1/knowledge/bases/string/sources/files" \ -F files="[ \"string\" ]"{
"errors": [
{
"error": "string",
"name": "string"
}
],
"sources": [
{
"chunkCount": 0,
"createdAt": "string",
"errorMessage": "string",
"fileSize": 0,
"id": "string",
"knowledgeBaseId": "string",
"mimeType": "string",
"name": "string",
"processedAt": "string",
"status": "string",
"type": "string",
"url": "string",
"property1": null,
"property2": null
}
]
}{
"code": "string",
"detail": "string",
"errors": [
{
"name": "string",
"pointer": "string",
"reason": "string",
"rule": "string"
}
],
"instance": "string",
"request_id": "string",
"status": 0,
"title": "string",
"trace_id": "string",
"type": "http://example.com",
"property1": null,
"property2": null
}Добавить источник из текста
В: header
Параметры пути
Идентификатор базы знаний
Тело запроса
application/json
TypeScript-определения
Используйте тип request body в TypeScript.
Тело ответа
application/json
curl -X POST "https://loading/api/v1/knowledge/bases/string/sources/text" \ -H "Content-Type: application/json" \ -d '{ "name": "string", "text": "string" }'{
"chunkCount": 0,
"createdAt": "string",
"errorMessage": "string",
"fileSize": 0,
"id": "string",
"knowledgeBaseId": "string",
"mimeType": "string",
"name": "string",
"processedAt": "string",
"status": "string",
"type": "string",
"url": "string",
"property1": null,
"property2": null
}Добавить источник по URL
В: header
Параметры пути
Идентификатор базы знаний
Тело запроса
application/json
TypeScript-определения
Используйте тип request body в TypeScript.
Тело ответа
application/json
curl -X POST "https://loading/api/v1/knowledge/bases/string/sources/url" \ -H "Content-Type: application/json" \ -d '{ "name": "string", "url": "http://example.com" }'{
"chunkCount": 0,
"createdAt": "string",
"errorMessage": "string",
"fileSize": 0,
"id": "string",
"knowledgeBaseId": "string",
"mimeType": "string",
"name": "string",
"processedAt": "string",
"status": "string",
"type": "string",
"url": "string",
"property1": null,
"property2": null
}curl -X GET "https://loading/api/v1/knowledge/communities"[
{
"id": "string",
"summary": "string",
"property1": null,
"property2": null
}
]curl -X POST "https://loading/api/v1/knowledge/communities/detect"[
{
"id": "string",
"summary": "string",
"property1": null,
"property2": null
}
]Text-to-Cypher запрос (вопрос на естественном языке)
В: header
Тело запроса
application/json
TypeScript-определения
Используйте тип request body в TypeScript.
Вопрос к графу знаний на естественном языке
Тело ответа
application/json
application/problem+json
curl -X POST "https://loading/api/v1/knowledge/cypher" \ -H "Content-Type: application/json" \ -d '{ "question": "string" }'{
"property1": null,
"property2": null
}{
"code": "string",
"detail": "string",
"errors": [
{
"name": "string",
"pointer": "string",
"reason": "string",
"rule": "string"
}
],
"instance": "string",
"request_id": "string",
"status": 0,
"title": "string",
"trace_id": "string",
"type": "http://example.com",
"property1": null,
"property2": null
}curl -X GET "https://loading/api/v1/knowledge/graph"{
"edges": [
{
"property1": null,
"property2": null
}
],
"nodes": [
{
"property1": null,
"property2": null
}
],
"property1": null,
"property2": null
}Поиск по базе знаний
В: header
Тело запроса
application/json
TypeScript-определения
Используйте тип request body в TypeScript.
Тело ответа
application/json
curl -X POST "https://loading/api/v1/knowledge/search" \ -H "Content-Type: application/json" \ -d '{ "query": "string" }'{
"results": [
{
"property1": null,
"property2": null
}
],
"property1": null,
"property2": null
}Получить источник
В: header
Параметры пути
Идентификатор источника
Тело ответа
application/json
application/problem+json
curl -X GET "https://loading/api/v1/knowledge/sources/string"{
"chunkCount": 0,
"createdAt": "string",
"errorMessage": "string",
"fileSize": 0,
"id": "string",
"knowledgeBaseId": "string",
"mimeType": "string",
"name": "string",
"processedAt": "string",
"status": "string",
"type": "string",
"url": "string",
"property1": null,
"property2": null
}{
"code": "string",
"detail": "string",
"errors": [
{
"name": "string",
"pointer": "string",
"reason": "string",
"rule": "string"
}
],
"instance": "string",
"request_id": "string",
"status": 0,
"title": "string",
"trace_id": "string",
"type": "http://example.com",
"property1": null,
"property2": null
}Удалить источник
В: header
Параметры пути
Идентификатор источника
Тело ответа
application/json
curl -X DELETE "https://loading/api/v1/knowledge/sources/string"{
"ok": true
}Получить чанки источника
В: header
Параметры пути
Идентификатор источника
Тело ответа
application/json
curl -X GET "https://loading/api/v1/knowledge/sources/string/chunks"[
{
"id": "string",
"text": "string",
"property1": null,
"property2": null
}
]Переобработать источник
В: header
Параметры пути
Идентификатор источника
Тело ответа
application/json
curl -X POST "https://loading/api/v1/knowledge/sources/string/reprocess"{
"chunkCount": 0,
"createdAt": "string",
"errorMessage": "string",
"fileSize": 0,
"id": "string",
"knowledgeBaseId": "string",
"mimeType": "string",
"name": "string",
"processedAt": "string",
"status": "string",
"type": "string",
"url": "string",
"property1": null,
"property2": null
}