qanswer_sdk 3.1213.0__py3-none-any.whl → 3.1245.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- qanswer_sdk/__init__.py +66 -43
- qanswer_sdk/api/__init__.py +7 -4
- qanswer_sdk/api/admin_api.py +590 -7695
- qanswer_sdk/api/ai_assistant_access_rights_api.py +72 -73
- qanswer_sdk/api/ai_assistant_api.py +567 -46
- qanswer_sdk/api/branding_api.py +4578 -0
- qanswer_sdk/api/chatbot_api.py +72 -87
- qanswer_sdk/api/{tag_api.py → connector_imap_connector_api.py} +415 -997
- qanswer_sdk/api/connector_rdf_api.py +30 -31
- qanswer_sdk/api/connectors_api.py +183 -166
- qanswer_sdk/api/connectors_data_api.py +345 -1
- qanswer_sdk/api/dataset_config_api.py +0 -245
- qanswer_sdk/api/llm_api.py +30 -30
- qanswer_sdk/api/payment_api.py +17 -16
- qanswer_sdk/api/speech_to_text_api.py +2 -2
- qanswer_sdk/api/task_chat_api.py +8 -7
- qanswer_sdk/api/task_rdf_linker_api.py +35 -36
- qanswer_sdk/api/task_rdf_sparql_endpoint_api.py +16 -16
- qanswer_sdk/api/task_report_copilot_api.py +895 -281
- qanswer_sdk/api/task_search_api.py +8 -7
- qanswer_sdk/api/tool_embedder_api.py +4040 -0
- qanswer_sdk/api/{user_api.py → tool_llm_api.py} +735 -2749
- qanswer_sdk/api/unit_organizations_api.py +4547 -0
- qanswer_sdk/api/unit_teams_api.py +3906 -0
- qanswer_sdk/api/{organizations_teams_api.py → unit_user_api.py} +1345 -1394
- qanswer_sdk/api_client.py +1 -1
- qanswer_sdk/configuration.py +1 -1
- qanswer_sdk/models/__init__.py +58 -38
- qanswer_sdk/models/aggregation.py +2 -2
- qanswer_sdk/models/ai_assistant_filter_dto.py +105 -0
- qanswer_sdk/models/{user_profile_paginated.py → ai_assistant_list.py} +18 -18
- qanswer_sdk/models/{embedding_model.py → available_aggregation.py} +13 -11
- qanswer_sdk/models/available_connectors_response.py +2 -2
- qanswer_sdk/models/{branding_data.py → branding_app_title.py} +4 -4
- qanswer_sdk/models/{api_response.py → branding_system_message.py} +8 -8
- qanswer_sdk/models/chat_task_settings.py +12 -12
- qanswer_sdk/models/chat_task_update.py +13 -5
- qanswer_sdk/models/chatbot_chat_payload.py +19 -2
- qanswer_sdk/models/chatbot_conversation_model.py +10 -0
- qanswer_sdk/models/chatbot_response.py +22 -2
- qanswer_sdk/models/{user_chatbot_setting_payload.py → chatbot_setting_dto.py} +12 -13
- qanswer_sdk/models/chatbot_setting_request.py +96 -0
- qanswer_sdk/models/{question_completion.py → clip_connector_file_structure.py} +9 -9
- qanswer_sdk/models/clip_connector_structure.py +97 -0
- qanswer_sdk/models/connector_model.py +2 -2
- qanswer_sdk/models/conversation_message.py +4 -12
- qanswer_sdk/models/{cost_summary.py → cost_summary_dto.py} +4 -4
- qanswer_sdk/models/create_connector_request.py +4 -2
- qanswer_sdk/models/create_imap_connector_request.py +105 -0
- qanswer_sdk/models/create_pinecone_connector_request.py +3 -1
- qanswer_sdk/models/create_sharepoint_connector_from_certificate_request.py +3 -1
- qanswer_sdk/models/create_sharepoint_connector_request.py +3 -1
- qanswer_sdk/models/dataset_detail_kg.py +27 -1
- qanswer_sdk/models/dataset_schema.py +4 -2
- qanswer_sdk/models/dataset_update_object.py +3 -1
- qanswer_sdk/models/delete_connector_model.py +2 -2
- qanswer_sdk/models/delete_connectors_response.py +2 -4
- qanswer_sdk/models/{json_nullable_source_metadata.py → duplicate_report_template_response.py} +11 -9
- qanswer_sdk/models/{json_nullable_file_failure_reason.py → email_folder.py} +12 -8
- qanswer_sdk/models/{embedding_endpoint.py → embedder_detailed_dto.py} +16 -8
- qanswer_sdk/models/{tag_payload.py → embedder_dto.py} +11 -7
- qanswer_sdk/models/{pageable_object.py → embedder_list_dto.py} +20 -20
- qanswer_sdk/models/embedding_endpoint_create.py +3 -1
- qanswer_sdk/models/embedding_endpoint_update.py +4 -2
- qanswer_sdk/models/{sort_object.py → entity_description.py} +16 -12
- qanswer_sdk/models/{dataset_description.py → entity_description_dto.py} +9 -7
- qanswer_sdk/models/file_model.py +2 -2
- qanswer_sdk/models/imap_add_payload.py +103 -0
- qanswer_sdk/models/imap_additional_fields.py +101 -0
- qanswer_sdk/models/imap_file_metadata.py +114 -0
- qanswer_sdk/models/imap_search_response.py +113 -0
- qanswer_sdk/models/llm.py +129 -0
- qanswer_sdk/models/llm_consumption.py +118 -0
- qanswer_sdk/models/{pageable.py → llm_context_ranges.py} +14 -13
- qanswer_sdk/models/{llm_cost.py → llm_cost_filter.py} +11 -7
- qanswer_sdk/models/llm_cost_list.py +101 -0
- qanswer_sdk/models/llm_detailed_dto.py +179 -0
- qanswer_sdk/models/{llm_details.py → llm_dto.py} +14 -18
- qanswer_sdk/models/llm_endpoint.py +8 -2
- qanswer_sdk/models/llm_endpoint_read_input.py +173 -0
- qanswer_sdk/models/llm_endpoint_read_output.py +173 -0
- qanswer_sdk/models/llm_filter_dto.py +99 -0
- qanswer_sdk/models/llm_list_detailed_dto.py +101 -0
- qanswer_sdk/models/llm_list_dto.py +101 -0
- qanswer_sdk/models/modify_connector_request.py +5 -11
- qanswer_sdk/models/{o_auth_service.py → o_auth_service_dto.py} +4 -4
- qanswer_sdk/models/organization_admin.py +95 -0
- qanswer_sdk/models/organization_filter_dto.py +97 -0
- qanswer_sdk/models/organization_list_dto.py +101 -0
- qanswer_sdk/models/organization_llm.py +103 -0
- qanswer_sdk/models/{plan.py → plan_dto.py} +4 -4
- qanswer_sdk/models/prompt_token_count_details.py +3 -3
- qanswer_sdk/models/rag_payload.py +4 -4
- qanswer_sdk/models/rag_response.py +4 -2
- qanswer_sdk/models/relation_extraction_task_settings.py +12 -10
- qanswer_sdk/models/relation_extraction_task_update.py +14 -4
- qanswer_sdk/models/report_copilot_slot_task_settings.py +12 -10
- qanswer_sdk/models/report_copilot_slot_task_update.py +13 -3
- qanswer_sdk/models/report_copilot_task_settings.py +12 -10
- qanswer_sdk/models/report_copilot_task_update.py +14 -4
- qanswer_sdk/models/{report_copilot_template.py → report_template.py} +17 -7
- qanswer_sdk/models/{report_copilot_create_payload.py → report_template_create_payload.py} +4 -4
- qanswer_sdk/models/{report_copilot_template_simplified.py → report_template_simplified.py} +11 -7
- qanswer_sdk/models/{report_copilot_export_template_as_docx_payload_simplified.py → report_template_simplified_payload.py} +4 -4
- qanswer_sdk/models/{report_copilot_update_payload.py → report_template_update_payload.py} +15 -9
- qanswer_sdk/models/search_task_settings.py +12 -12
- qanswer_sdk/models/search_task_update.py +13 -3
- qanswer_sdk/models/{set_logo1_request.py → set_logo2_request.py} +4 -4
- qanswer_sdk/models/shared_organization_access.py +7 -3
- qanswer_sdk/models/shared_team_access.py +10 -4
- qanswer_sdk/models/slot.py +5 -1
- qanswer_sdk/models/slot_update.py +5 -1
- qanswer_sdk/models/socket_conversation_message.py +3 -11
- qanswer_sdk/models/socket_file_metadata.py +17 -11
- qanswer_sdk/models/source_metadata.py +109 -0
- qanswer_sdk/models/{tag_qa_list_payload.py → subscription_response.py} +22 -21
- qanswer_sdk/models/{team_with_count.py → team_admin.py} +8 -8
- qanswer_sdk/models/{team_filter.py → team_filter_dto.py} +16 -6
- qanswer_sdk/models/team_list_dto.py +101 -0
- qanswer_sdk/models/{available_endpoints_response.py → template_clip_structure_input.py} +14 -14
- qanswer_sdk/models/{available_embedding_models_response.py → template_clip_structure_output.py} +14 -14
- qanswer_sdk/models/test_imap_connection_payload.py +95 -0
- qanswer_sdk/models/text2_sparql_payload.py +4 -4
- qanswer_sdk/models/text2_sparql_task_settings.py +12 -10
- qanswer_sdk/models/text2_sparql_task_update.py +14 -4
- qanswer_sdk/models/{user_chatbot_setting_response.py → user_chatbot_setting.py} +24 -24
- qanswer_sdk/models/user_dataset.py +38 -2
- qanswer_sdk/models/{qa_metadata_payload.py → user_dataset_shared.py} +27 -37
- qanswer_sdk/models/{user_filter.py → user_filter_dto.py} +4 -4
- qanswer_sdk/models/{user_profile.py → user_profile_dto.py} +10 -10
- qanswer_sdk/models/user_profile_list_dto.py +3 -3
- qanswer_sdk/models/widget_configs.py +4 -2
- {qanswer_sdk-3.1213.0.dist-info → qanswer_sdk-3.1245.0.dist-info}/METADATA +2 -2
- {qanswer_sdk-3.1213.0.dist-info → qanswer_sdk-3.1245.0.dist-info}/RECORD +135 -112
- qanswer_sdk/api/llm_consumption_controller_api.py +0 -310
- qanswer_sdk/models/organization_filter.py +0 -87
- qanswer_sdk/models/page_organization.py +0 -123
- qanswer_sdk/models/page_team_with_count.py +0 -123
- qanswer_sdk/models/tag_qa_payload.py +0 -91
- {qanswer_sdk-3.1213.0.dist-info → qanswer_sdk-3.1245.0.dist-info}/WHEEL +0 -0
@@ -16,7 +16,7 @@ from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
|
|
16
16
|
from typing import Any, Dict, List, Optional, Tuple, Union
|
17
17
|
from typing_extensions import Annotated
|
18
18
|
|
19
|
-
from pydantic import StrictBytes, StrictInt, StrictStr
|
19
|
+
from pydantic import StrictBool, StrictBytes, StrictInt, StrictStr
|
20
20
|
from typing import Any, Dict, List, Optional, Union
|
21
21
|
from qanswer_sdk.models.access_pdf_payload_model import AccessPdfPayloadModel
|
22
22
|
from qanswer_sdk.models.allowed_file_extensions import AllowedFileExtensions
|
@@ -1218,6 +1218,333 @@ class ConnectorsDataApi:
|
|
1218
1218
|
|
1219
1219
|
|
1220
1220
|
|
1221
|
+
@validate_call
|
1222
|
+
def get_data_info(
|
1223
|
+
self,
|
1224
|
+
username: StrictStr,
|
1225
|
+
dataset: StrictStr,
|
1226
|
+
conversation_id: Optional[StrictStr] = None,
|
1227
|
+
assistant_and_clip: Optional[StrictBool] = None,
|
1228
|
+
q_answer_api_key: Optional[StrictStr] = None,
|
1229
|
+
_request_timeout: Union[
|
1230
|
+
None,
|
1231
|
+
Annotated[StrictFloat, Field(gt=0)],
|
1232
|
+
Tuple[
|
1233
|
+
Annotated[StrictFloat, Field(gt=0)],
|
1234
|
+
Annotated[StrictFloat, Field(gt=0)]
|
1235
|
+
]
|
1236
|
+
] = None,
|
1237
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
1238
|
+
_content_type: Optional[StrictStr] = None,
|
1239
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1240
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
1241
|
+
) -> bool:
|
1242
|
+
"""To Get Info about the data in assistant and/or clip data
|
1243
|
+
|
1244
|
+
|
1245
|
+
:param username: (required)
|
1246
|
+
:type username: str
|
1247
|
+
:param dataset: (required)
|
1248
|
+
:type dataset: str
|
1249
|
+
:param conversation_id:
|
1250
|
+
:type conversation_id: str
|
1251
|
+
:param assistant_and_clip:
|
1252
|
+
:type assistant_and_clip: bool
|
1253
|
+
:param q_answer_api_key:
|
1254
|
+
:type q_answer_api_key: str
|
1255
|
+
:param _request_timeout: timeout setting for this request. If one
|
1256
|
+
number provided, it will be total request
|
1257
|
+
timeout. It can also be a pair (tuple) of
|
1258
|
+
(connection, read) timeouts.
|
1259
|
+
:type _request_timeout: int, tuple(int, int), optional
|
1260
|
+
:param _request_auth: set to override the auth_settings for an a single
|
1261
|
+
request; this effectively ignores the
|
1262
|
+
authentication in the spec for a single request.
|
1263
|
+
:type _request_auth: dict, optional
|
1264
|
+
:param _content_type: force content-type for the request.
|
1265
|
+
:type _content_type: str, Optional
|
1266
|
+
:param _headers: set to override the headers for a single
|
1267
|
+
request; this effectively ignores the headers
|
1268
|
+
in the spec for a single request.
|
1269
|
+
:type _headers: dict, optional
|
1270
|
+
:param _host_index: set to override the host_index for a single
|
1271
|
+
request; this effectively ignores the host_index
|
1272
|
+
in the spec for a single request.
|
1273
|
+
:type _host_index: int, optional
|
1274
|
+
:return: Returns the result object.
|
1275
|
+
""" # noqa: E501
|
1276
|
+
|
1277
|
+
_param = self._get_data_info_serialize(
|
1278
|
+
username=username,
|
1279
|
+
dataset=dataset,
|
1280
|
+
conversation_id=conversation_id,
|
1281
|
+
assistant_and_clip=assistant_and_clip,
|
1282
|
+
q_answer_api_key=q_answer_api_key,
|
1283
|
+
_request_auth=_request_auth,
|
1284
|
+
_content_type=_content_type,
|
1285
|
+
_headers=_headers,
|
1286
|
+
_host_index=_host_index
|
1287
|
+
)
|
1288
|
+
|
1289
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
1290
|
+
'200': "bool",
|
1291
|
+
}
|
1292
|
+
response_data = self.api_client.call_api(
|
1293
|
+
*_param,
|
1294
|
+
_request_timeout=_request_timeout
|
1295
|
+
)
|
1296
|
+
response_data.read()
|
1297
|
+
return self.api_client.response_deserialize(
|
1298
|
+
response_data=response_data,
|
1299
|
+
response_types_map=_response_types_map,
|
1300
|
+
).data
|
1301
|
+
|
1302
|
+
|
1303
|
+
@validate_call
|
1304
|
+
def get_data_info_with_http_info(
|
1305
|
+
self,
|
1306
|
+
username: StrictStr,
|
1307
|
+
dataset: StrictStr,
|
1308
|
+
conversation_id: Optional[StrictStr] = None,
|
1309
|
+
assistant_and_clip: Optional[StrictBool] = None,
|
1310
|
+
q_answer_api_key: Optional[StrictStr] = None,
|
1311
|
+
_request_timeout: Union[
|
1312
|
+
None,
|
1313
|
+
Annotated[StrictFloat, Field(gt=0)],
|
1314
|
+
Tuple[
|
1315
|
+
Annotated[StrictFloat, Field(gt=0)],
|
1316
|
+
Annotated[StrictFloat, Field(gt=0)]
|
1317
|
+
]
|
1318
|
+
] = None,
|
1319
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
1320
|
+
_content_type: Optional[StrictStr] = None,
|
1321
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1322
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
1323
|
+
) -> ApiResponse[bool]:
|
1324
|
+
"""To Get Info about the data in assistant and/or clip data
|
1325
|
+
|
1326
|
+
|
1327
|
+
:param username: (required)
|
1328
|
+
:type username: str
|
1329
|
+
:param dataset: (required)
|
1330
|
+
:type dataset: str
|
1331
|
+
:param conversation_id:
|
1332
|
+
:type conversation_id: str
|
1333
|
+
:param assistant_and_clip:
|
1334
|
+
:type assistant_and_clip: bool
|
1335
|
+
:param q_answer_api_key:
|
1336
|
+
:type q_answer_api_key: str
|
1337
|
+
:param _request_timeout: timeout setting for this request. If one
|
1338
|
+
number provided, it will be total request
|
1339
|
+
timeout. It can also be a pair (tuple) of
|
1340
|
+
(connection, read) timeouts.
|
1341
|
+
:type _request_timeout: int, tuple(int, int), optional
|
1342
|
+
:param _request_auth: set to override the auth_settings for an a single
|
1343
|
+
request; this effectively ignores the
|
1344
|
+
authentication in the spec for a single request.
|
1345
|
+
:type _request_auth: dict, optional
|
1346
|
+
:param _content_type: force content-type for the request.
|
1347
|
+
:type _content_type: str, Optional
|
1348
|
+
:param _headers: set to override the headers for a single
|
1349
|
+
request; this effectively ignores the headers
|
1350
|
+
in the spec for a single request.
|
1351
|
+
:type _headers: dict, optional
|
1352
|
+
:param _host_index: set to override the host_index for a single
|
1353
|
+
request; this effectively ignores the host_index
|
1354
|
+
in the spec for a single request.
|
1355
|
+
:type _host_index: int, optional
|
1356
|
+
:return: Returns the result object.
|
1357
|
+
""" # noqa: E501
|
1358
|
+
|
1359
|
+
_param = self._get_data_info_serialize(
|
1360
|
+
username=username,
|
1361
|
+
dataset=dataset,
|
1362
|
+
conversation_id=conversation_id,
|
1363
|
+
assistant_and_clip=assistant_and_clip,
|
1364
|
+
q_answer_api_key=q_answer_api_key,
|
1365
|
+
_request_auth=_request_auth,
|
1366
|
+
_content_type=_content_type,
|
1367
|
+
_headers=_headers,
|
1368
|
+
_host_index=_host_index
|
1369
|
+
)
|
1370
|
+
|
1371
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
1372
|
+
'200': "bool",
|
1373
|
+
}
|
1374
|
+
response_data = self.api_client.call_api(
|
1375
|
+
*_param,
|
1376
|
+
_request_timeout=_request_timeout
|
1377
|
+
)
|
1378
|
+
response_data.read()
|
1379
|
+
return self.api_client.response_deserialize(
|
1380
|
+
response_data=response_data,
|
1381
|
+
response_types_map=_response_types_map,
|
1382
|
+
)
|
1383
|
+
|
1384
|
+
|
1385
|
+
@validate_call
|
1386
|
+
def get_data_info_without_preload_content(
|
1387
|
+
self,
|
1388
|
+
username: StrictStr,
|
1389
|
+
dataset: StrictStr,
|
1390
|
+
conversation_id: Optional[StrictStr] = None,
|
1391
|
+
assistant_and_clip: Optional[StrictBool] = None,
|
1392
|
+
q_answer_api_key: Optional[StrictStr] = None,
|
1393
|
+
_request_timeout: Union[
|
1394
|
+
None,
|
1395
|
+
Annotated[StrictFloat, Field(gt=0)],
|
1396
|
+
Tuple[
|
1397
|
+
Annotated[StrictFloat, Field(gt=0)],
|
1398
|
+
Annotated[StrictFloat, Field(gt=0)]
|
1399
|
+
]
|
1400
|
+
] = None,
|
1401
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
1402
|
+
_content_type: Optional[StrictStr] = None,
|
1403
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1404
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
1405
|
+
) -> RESTResponseType:
|
1406
|
+
"""To Get Info about the data in assistant and/or clip data
|
1407
|
+
|
1408
|
+
|
1409
|
+
:param username: (required)
|
1410
|
+
:type username: str
|
1411
|
+
:param dataset: (required)
|
1412
|
+
:type dataset: str
|
1413
|
+
:param conversation_id:
|
1414
|
+
:type conversation_id: str
|
1415
|
+
:param assistant_and_clip:
|
1416
|
+
:type assistant_and_clip: bool
|
1417
|
+
:param q_answer_api_key:
|
1418
|
+
:type q_answer_api_key: str
|
1419
|
+
:param _request_timeout: timeout setting for this request. If one
|
1420
|
+
number provided, it will be total request
|
1421
|
+
timeout. It can also be a pair (tuple) of
|
1422
|
+
(connection, read) timeouts.
|
1423
|
+
:type _request_timeout: int, tuple(int, int), optional
|
1424
|
+
:param _request_auth: set to override the auth_settings for an a single
|
1425
|
+
request; this effectively ignores the
|
1426
|
+
authentication in the spec for a single request.
|
1427
|
+
:type _request_auth: dict, optional
|
1428
|
+
:param _content_type: force content-type for the request.
|
1429
|
+
:type _content_type: str, Optional
|
1430
|
+
:param _headers: set to override the headers for a single
|
1431
|
+
request; this effectively ignores the headers
|
1432
|
+
in the spec for a single request.
|
1433
|
+
:type _headers: dict, optional
|
1434
|
+
:param _host_index: set to override the host_index for a single
|
1435
|
+
request; this effectively ignores the host_index
|
1436
|
+
in the spec for a single request.
|
1437
|
+
:type _host_index: int, optional
|
1438
|
+
:return: Returns the result object.
|
1439
|
+
""" # noqa: E501
|
1440
|
+
|
1441
|
+
_param = self._get_data_info_serialize(
|
1442
|
+
username=username,
|
1443
|
+
dataset=dataset,
|
1444
|
+
conversation_id=conversation_id,
|
1445
|
+
assistant_and_clip=assistant_and_clip,
|
1446
|
+
q_answer_api_key=q_answer_api_key,
|
1447
|
+
_request_auth=_request_auth,
|
1448
|
+
_content_type=_content_type,
|
1449
|
+
_headers=_headers,
|
1450
|
+
_host_index=_host_index
|
1451
|
+
)
|
1452
|
+
|
1453
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
1454
|
+
'200': "bool",
|
1455
|
+
}
|
1456
|
+
response_data = self.api_client.call_api(
|
1457
|
+
*_param,
|
1458
|
+
_request_timeout=_request_timeout
|
1459
|
+
)
|
1460
|
+
return response_data.response
|
1461
|
+
|
1462
|
+
|
1463
|
+
def _get_data_info_serialize(
|
1464
|
+
self,
|
1465
|
+
username,
|
1466
|
+
dataset,
|
1467
|
+
conversation_id,
|
1468
|
+
assistant_and_clip,
|
1469
|
+
q_answer_api_key,
|
1470
|
+
_request_auth,
|
1471
|
+
_content_type,
|
1472
|
+
_headers,
|
1473
|
+
_host_index,
|
1474
|
+
) -> RequestSerialized:
|
1475
|
+
|
1476
|
+
_host = None
|
1477
|
+
|
1478
|
+
_collection_formats: Dict[str, str] = {
|
1479
|
+
}
|
1480
|
+
|
1481
|
+
_path_params: Dict[str, str] = {}
|
1482
|
+
_query_params: List[Tuple[str, str]] = []
|
1483
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
1484
|
+
_form_params: List[Tuple[str, str]] = []
|
1485
|
+
_files: Dict[
|
1486
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
1487
|
+
] = {}
|
1488
|
+
_body_params: Optional[bytes] = None
|
1489
|
+
|
1490
|
+
# process the path parameters
|
1491
|
+
# process the query parameters
|
1492
|
+
if username is not None:
|
1493
|
+
|
1494
|
+
_query_params.append(('username', username))
|
1495
|
+
|
1496
|
+
if dataset is not None:
|
1497
|
+
|
1498
|
+
_query_params.append(('dataset', dataset))
|
1499
|
+
|
1500
|
+
if conversation_id is not None:
|
1501
|
+
|
1502
|
+
_query_params.append(('conversationId', conversation_id))
|
1503
|
+
|
1504
|
+
if assistant_and_clip is not None:
|
1505
|
+
|
1506
|
+
_query_params.append(('assistantAndClip', assistant_and_clip))
|
1507
|
+
|
1508
|
+
# process the header parameters
|
1509
|
+
if q_answer_api_key is not None:
|
1510
|
+
_header_params['QAnswer-Api-Key'] = q_answer_api_key
|
1511
|
+
# process the form parameters
|
1512
|
+
# process the body parameter
|
1513
|
+
|
1514
|
+
|
1515
|
+
# set the HTTP header `Accept`
|
1516
|
+
if 'Accept' not in _header_params:
|
1517
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
1518
|
+
[
|
1519
|
+
'*/*'
|
1520
|
+
]
|
1521
|
+
)
|
1522
|
+
|
1523
|
+
|
1524
|
+
# authentication setting
|
1525
|
+
_auth_settings: List[str] = [
|
1526
|
+
'QAnswer-Api-Key',
|
1527
|
+
'Bearer'
|
1528
|
+
]
|
1529
|
+
|
1530
|
+
return self.api_client.param_serialize(
|
1531
|
+
method='GET',
|
1532
|
+
resource_path='/api/connectors-data/info',
|
1533
|
+
path_params=_path_params,
|
1534
|
+
query_params=_query_params,
|
1535
|
+
header_params=_header_params,
|
1536
|
+
body=_body_params,
|
1537
|
+
post_params=_form_params,
|
1538
|
+
files=_files,
|
1539
|
+
auth_settings=_auth_settings,
|
1540
|
+
collection_formats=_collection_formats,
|
1541
|
+
_host=_host,
|
1542
|
+
_request_auth=_request_auth
|
1543
|
+
)
|
1544
|
+
|
1545
|
+
|
1546
|
+
|
1547
|
+
|
1221
1548
|
@validate_call
|
1222
1549
|
def get_document_content(
|
1223
1550
|
self,
|
@@ -2480,6 +2807,7 @@ class ConnectorsDataApi:
|
|
2480
2807
|
sort_by: Optional[StrictStr] = None,
|
2481
2808
|
sort_order: Optional[StrictStr] = None,
|
2482
2809
|
connector_id: Optional[StrictInt] = None,
|
2810
|
+
template_id: Optional[StrictInt] = None,
|
2483
2811
|
q_answer_api_key: Optional[StrictStr] = None,
|
2484
2812
|
_request_timeout: Union[
|
2485
2813
|
None,
|
@@ -2513,6 +2841,8 @@ class ConnectorsDataApi:
|
|
2513
2841
|
:type sort_order: str
|
2514
2842
|
:param connector_id:
|
2515
2843
|
:type connector_id: int
|
2844
|
+
:param template_id:
|
2845
|
+
:type template_id: int
|
2516
2846
|
:param q_answer_api_key:
|
2517
2847
|
:type q_answer_api_key: str
|
2518
2848
|
:param _request_timeout: timeout setting for this request. If one
|
@@ -2546,6 +2876,7 @@ class ConnectorsDataApi:
|
|
2546
2876
|
sort_by=sort_by,
|
2547
2877
|
sort_order=sort_order,
|
2548
2878
|
connector_id=connector_id,
|
2879
|
+
template_id=template_id,
|
2549
2880
|
q_answer_api_key=q_answer_api_key,
|
2550
2881
|
_request_auth=_request_auth,
|
2551
2882
|
_content_type=_content_type,
|
@@ -2578,6 +2909,7 @@ class ConnectorsDataApi:
|
|
2578
2909
|
sort_by: Optional[StrictStr] = None,
|
2579
2910
|
sort_order: Optional[StrictStr] = None,
|
2580
2911
|
connector_id: Optional[StrictInt] = None,
|
2912
|
+
template_id: Optional[StrictInt] = None,
|
2581
2913
|
q_answer_api_key: Optional[StrictStr] = None,
|
2582
2914
|
_request_timeout: Union[
|
2583
2915
|
None,
|
@@ -2611,6 +2943,8 @@ class ConnectorsDataApi:
|
|
2611
2943
|
:type sort_order: str
|
2612
2944
|
:param connector_id:
|
2613
2945
|
:type connector_id: int
|
2946
|
+
:param template_id:
|
2947
|
+
:type template_id: int
|
2614
2948
|
:param q_answer_api_key:
|
2615
2949
|
:type q_answer_api_key: str
|
2616
2950
|
:param _request_timeout: timeout setting for this request. If one
|
@@ -2644,6 +2978,7 @@ class ConnectorsDataApi:
|
|
2644
2978
|
sort_by=sort_by,
|
2645
2979
|
sort_order=sort_order,
|
2646
2980
|
connector_id=connector_id,
|
2981
|
+
template_id=template_id,
|
2647
2982
|
q_answer_api_key=q_answer_api_key,
|
2648
2983
|
_request_auth=_request_auth,
|
2649
2984
|
_content_type=_content_type,
|
@@ -2676,6 +3011,7 @@ class ConnectorsDataApi:
|
|
2676
3011
|
sort_by: Optional[StrictStr] = None,
|
2677
3012
|
sort_order: Optional[StrictStr] = None,
|
2678
3013
|
connector_id: Optional[StrictInt] = None,
|
3014
|
+
template_id: Optional[StrictInt] = None,
|
2679
3015
|
q_answer_api_key: Optional[StrictStr] = None,
|
2680
3016
|
_request_timeout: Union[
|
2681
3017
|
None,
|
@@ -2709,6 +3045,8 @@ class ConnectorsDataApi:
|
|
2709
3045
|
:type sort_order: str
|
2710
3046
|
:param connector_id:
|
2711
3047
|
:type connector_id: int
|
3048
|
+
:param template_id:
|
3049
|
+
:type template_id: int
|
2712
3050
|
:param q_answer_api_key:
|
2713
3051
|
:type q_answer_api_key: str
|
2714
3052
|
:param _request_timeout: timeout setting for this request. If one
|
@@ -2742,6 +3080,7 @@ class ConnectorsDataApi:
|
|
2742
3080
|
sort_by=sort_by,
|
2743
3081
|
sort_order=sort_order,
|
2744
3082
|
connector_id=connector_id,
|
3083
|
+
template_id=template_id,
|
2745
3084
|
q_answer_api_key=q_answer_api_key,
|
2746
3085
|
_request_auth=_request_auth,
|
2747
3086
|
_content_type=_content_type,
|
@@ -2769,6 +3108,7 @@ class ConnectorsDataApi:
|
|
2769
3108
|
sort_by,
|
2770
3109
|
sort_order,
|
2771
3110
|
connector_id,
|
3111
|
+
template_id,
|
2772
3112
|
q_answer_api_key,
|
2773
3113
|
_request_auth,
|
2774
3114
|
_content_type,
|
@@ -2824,6 +3164,10 @@ class ConnectorsDataApi:
|
|
2824
3164
|
|
2825
3165
|
_query_params.append(('connectorId', connector_id))
|
2826
3166
|
|
3167
|
+
if template_id is not None:
|
3168
|
+
|
3169
|
+
_query_params.append(('templateId', template_id))
|
3170
|
+
|
2827
3171
|
# process the header parameters
|
2828
3172
|
if q_answer_api_key is not None:
|
2829
3173
|
_header_params['QAnswer-Api-Key'] = q_answer_api_key
|
@@ -20,7 +20,6 @@ from pydantic import StrictStr
|
|
20
20
|
from typing import List, Optional
|
21
21
|
from qanswer_sdk.models.add_synonyms import AddSynonyms
|
22
22
|
from qanswer_sdk.models.add_synonyms_resp import AddSynonymsResp
|
23
|
-
from qanswer_sdk.models.available_embedding_models_response import AvailableEmbeddingModelsResponse
|
24
23
|
from qanswer_sdk.models.available_logs_visibility_policy import AvailableLogsVisibilityPolicy
|
25
24
|
from qanswer_sdk.models.available_storage_preference import AvailableStoragePreference
|
26
25
|
from qanswer_sdk.models.dataset_default_values_model import DatasetDefaultValuesModel
|
@@ -1932,247 +1931,3 @@ class DatasetConfigApi:
|
|
1932
1931
|
)
|
1933
1932
|
|
1934
1933
|
|
1935
|
-
|
1936
|
-
|
1937
|
-
@validate_call
|
1938
|
-
def get_available_embedding_models(
|
1939
|
-
self,
|
1940
|
-
_request_timeout: Union[
|
1941
|
-
None,
|
1942
|
-
Annotated[StrictFloat, Field(gt=0)],
|
1943
|
-
Tuple[
|
1944
|
-
Annotated[StrictFloat, Field(gt=0)],
|
1945
|
-
Annotated[StrictFloat, Field(gt=0)]
|
1946
|
-
]
|
1947
|
-
] = None,
|
1948
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
1949
|
-
_content_type: Optional[StrictStr] = None,
|
1950
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
1951
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
1952
|
-
) -> AvailableEmbeddingModelsResponse:
|
1953
|
-
"""Embedding models that can be used at creation time for a dataset
|
1954
|
-
|
1955
|
-
|
1956
|
-
:param _request_timeout: timeout setting for this request. If one
|
1957
|
-
number provided, it will be total request
|
1958
|
-
timeout. It can also be a pair (tuple) of
|
1959
|
-
(connection, read) timeouts.
|
1960
|
-
:type _request_timeout: int, tuple(int, int), optional
|
1961
|
-
:param _request_auth: set to override the auth_settings for an a single
|
1962
|
-
request; this effectively ignores the
|
1963
|
-
authentication in the spec for a single request.
|
1964
|
-
:type _request_auth: dict, optional
|
1965
|
-
:param _content_type: force content-type for the request.
|
1966
|
-
:type _content_type: str, Optional
|
1967
|
-
:param _headers: set to override the headers for a single
|
1968
|
-
request; this effectively ignores the headers
|
1969
|
-
in the spec for a single request.
|
1970
|
-
:type _headers: dict, optional
|
1971
|
-
:param _host_index: set to override the host_index for a single
|
1972
|
-
request; this effectively ignores the host_index
|
1973
|
-
in the spec for a single request.
|
1974
|
-
:type _host_index: int, optional
|
1975
|
-
:return: Returns the result object.
|
1976
|
-
""" # noqa: E501
|
1977
|
-
|
1978
|
-
_param = self._get_available_embedding_models_serialize(
|
1979
|
-
_request_auth=_request_auth,
|
1980
|
-
_content_type=_content_type,
|
1981
|
-
_headers=_headers,
|
1982
|
-
_host_index=_host_index
|
1983
|
-
)
|
1984
|
-
|
1985
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
1986
|
-
'200': "AvailableEmbeddingModelsResponse",
|
1987
|
-
}
|
1988
|
-
response_data = self.api_client.call_api(
|
1989
|
-
*_param,
|
1990
|
-
_request_timeout=_request_timeout
|
1991
|
-
)
|
1992
|
-
response_data.read()
|
1993
|
-
return self.api_client.response_deserialize(
|
1994
|
-
response_data=response_data,
|
1995
|
-
response_types_map=_response_types_map,
|
1996
|
-
).data
|
1997
|
-
|
1998
|
-
|
1999
|
-
@validate_call
|
2000
|
-
def get_available_embedding_models_with_http_info(
|
2001
|
-
self,
|
2002
|
-
_request_timeout: Union[
|
2003
|
-
None,
|
2004
|
-
Annotated[StrictFloat, Field(gt=0)],
|
2005
|
-
Tuple[
|
2006
|
-
Annotated[StrictFloat, Field(gt=0)],
|
2007
|
-
Annotated[StrictFloat, Field(gt=0)]
|
2008
|
-
]
|
2009
|
-
] = None,
|
2010
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
2011
|
-
_content_type: Optional[StrictStr] = None,
|
2012
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
2013
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
2014
|
-
) -> ApiResponse[AvailableEmbeddingModelsResponse]:
|
2015
|
-
"""Embedding models that can be used at creation time for a dataset
|
2016
|
-
|
2017
|
-
|
2018
|
-
:param _request_timeout: timeout setting for this request. If one
|
2019
|
-
number provided, it will be total request
|
2020
|
-
timeout. It can also be a pair (tuple) of
|
2021
|
-
(connection, read) timeouts.
|
2022
|
-
:type _request_timeout: int, tuple(int, int), optional
|
2023
|
-
:param _request_auth: set to override the auth_settings for an a single
|
2024
|
-
request; this effectively ignores the
|
2025
|
-
authentication in the spec for a single request.
|
2026
|
-
:type _request_auth: dict, optional
|
2027
|
-
:param _content_type: force content-type for the request.
|
2028
|
-
:type _content_type: str, Optional
|
2029
|
-
:param _headers: set to override the headers for a single
|
2030
|
-
request; this effectively ignores the headers
|
2031
|
-
in the spec for a single request.
|
2032
|
-
:type _headers: dict, optional
|
2033
|
-
:param _host_index: set to override the host_index for a single
|
2034
|
-
request; this effectively ignores the host_index
|
2035
|
-
in the spec for a single request.
|
2036
|
-
:type _host_index: int, optional
|
2037
|
-
:return: Returns the result object.
|
2038
|
-
""" # noqa: E501
|
2039
|
-
|
2040
|
-
_param = self._get_available_embedding_models_serialize(
|
2041
|
-
_request_auth=_request_auth,
|
2042
|
-
_content_type=_content_type,
|
2043
|
-
_headers=_headers,
|
2044
|
-
_host_index=_host_index
|
2045
|
-
)
|
2046
|
-
|
2047
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
2048
|
-
'200': "AvailableEmbeddingModelsResponse",
|
2049
|
-
}
|
2050
|
-
response_data = self.api_client.call_api(
|
2051
|
-
*_param,
|
2052
|
-
_request_timeout=_request_timeout
|
2053
|
-
)
|
2054
|
-
response_data.read()
|
2055
|
-
return self.api_client.response_deserialize(
|
2056
|
-
response_data=response_data,
|
2057
|
-
response_types_map=_response_types_map,
|
2058
|
-
)
|
2059
|
-
|
2060
|
-
|
2061
|
-
@validate_call
|
2062
|
-
def get_available_embedding_models_without_preload_content(
|
2063
|
-
self,
|
2064
|
-
_request_timeout: Union[
|
2065
|
-
None,
|
2066
|
-
Annotated[StrictFloat, Field(gt=0)],
|
2067
|
-
Tuple[
|
2068
|
-
Annotated[StrictFloat, Field(gt=0)],
|
2069
|
-
Annotated[StrictFloat, Field(gt=0)]
|
2070
|
-
]
|
2071
|
-
] = None,
|
2072
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
2073
|
-
_content_type: Optional[StrictStr] = None,
|
2074
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
2075
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
2076
|
-
) -> RESTResponseType:
|
2077
|
-
"""Embedding models that can be used at creation time for a dataset
|
2078
|
-
|
2079
|
-
|
2080
|
-
:param _request_timeout: timeout setting for this request. If one
|
2081
|
-
number provided, it will be total request
|
2082
|
-
timeout. It can also be a pair (tuple) of
|
2083
|
-
(connection, read) timeouts.
|
2084
|
-
:type _request_timeout: int, tuple(int, int), optional
|
2085
|
-
:param _request_auth: set to override the auth_settings for an a single
|
2086
|
-
request; this effectively ignores the
|
2087
|
-
authentication in the spec for a single request.
|
2088
|
-
:type _request_auth: dict, optional
|
2089
|
-
:param _content_type: force content-type for the request.
|
2090
|
-
:type _content_type: str, Optional
|
2091
|
-
:param _headers: set to override the headers for a single
|
2092
|
-
request; this effectively ignores the headers
|
2093
|
-
in the spec for a single request.
|
2094
|
-
:type _headers: dict, optional
|
2095
|
-
:param _host_index: set to override the host_index for a single
|
2096
|
-
request; this effectively ignores the host_index
|
2097
|
-
in the spec for a single request.
|
2098
|
-
:type _host_index: int, optional
|
2099
|
-
:return: Returns the result object.
|
2100
|
-
""" # noqa: E501
|
2101
|
-
|
2102
|
-
_param = self._get_available_embedding_models_serialize(
|
2103
|
-
_request_auth=_request_auth,
|
2104
|
-
_content_type=_content_type,
|
2105
|
-
_headers=_headers,
|
2106
|
-
_host_index=_host_index
|
2107
|
-
)
|
2108
|
-
|
2109
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
2110
|
-
'200': "AvailableEmbeddingModelsResponse",
|
2111
|
-
}
|
2112
|
-
response_data = self.api_client.call_api(
|
2113
|
-
*_param,
|
2114
|
-
_request_timeout=_request_timeout
|
2115
|
-
)
|
2116
|
-
return response_data.response
|
2117
|
-
|
2118
|
-
|
2119
|
-
def _get_available_embedding_models_serialize(
|
2120
|
-
self,
|
2121
|
-
_request_auth,
|
2122
|
-
_content_type,
|
2123
|
-
_headers,
|
2124
|
-
_host_index,
|
2125
|
-
) -> RequestSerialized:
|
2126
|
-
|
2127
|
-
_host = None
|
2128
|
-
|
2129
|
-
_collection_formats: Dict[str, str] = {
|
2130
|
-
}
|
2131
|
-
|
2132
|
-
_path_params: Dict[str, str] = {}
|
2133
|
-
_query_params: List[Tuple[str, str]] = []
|
2134
|
-
_header_params: Dict[str, Optional[str]] = _headers or {}
|
2135
|
-
_form_params: List[Tuple[str, str]] = []
|
2136
|
-
_files: Dict[
|
2137
|
-
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
2138
|
-
] = {}
|
2139
|
-
_body_params: Optional[bytes] = None
|
2140
|
-
|
2141
|
-
# process the path parameters
|
2142
|
-
# process the query parameters
|
2143
|
-
# process the header parameters
|
2144
|
-
# process the form parameters
|
2145
|
-
# process the body parameter
|
2146
|
-
|
2147
|
-
|
2148
|
-
# set the HTTP header `Accept`
|
2149
|
-
if 'Accept' not in _header_params:
|
2150
|
-
_header_params['Accept'] = self.api_client.select_header_accept(
|
2151
|
-
[
|
2152
|
-
'*/*'
|
2153
|
-
]
|
2154
|
-
)
|
2155
|
-
|
2156
|
-
|
2157
|
-
# authentication setting
|
2158
|
-
_auth_settings: List[str] = [
|
2159
|
-
'QAnswer-Api-Key',
|
2160
|
-
'Bearer'
|
2161
|
-
]
|
2162
|
-
|
2163
|
-
return self.api_client.param_serialize(
|
2164
|
-
method='GET',
|
2165
|
-
resource_path='/api/dataset/config/models-available',
|
2166
|
-
path_params=_path_params,
|
2167
|
-
query_params=_query_params,
|
2168
|
-
header_params=_header_params,
|
2169
|
-
body=_body_params,
|
2170
|
-
post_params=_form_params,
|
2171
|
-
files=_files,
|
2172
|
-
auth_settings=_auth_settings,
|
2173
|
-
collection_formats=_collection_formats,
|
2174
|
-
_host=_host,
|
2175
|
-
_request_auth=_request_auth
|
2176
|
-
)
|
2177
|
-
|
2178
|
-
|