arbi 0.1.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.

Potentially problematic release.


This version of arbi might be problematic. Click here for more details.

Files changed (143) hide show
  1. arbi/__init__.py +90 -0
  2. arbi/_base_client.py +1995 -0
  3. arbi/_client.py +394 -0
  4. arbi/_compat.py +219 -0
  5. arbi/_constants.py +14 -0
  6. arbi/_exceptions.py +108 -0
  7. arbi/_files.py +123 -0
  8. arbi/_models.py +829 -0
  9. arbi/_qs.py +150 -0
  10. arbi/_resource.py +43 -0
  11. arbi/_response.py +830 -0
  12. arbi/_streaming.py +333 -0
  13. arbi/_types.py +219 -0
  14. arbi/_utils/__init__.py +57 -0
  15. arbi/_utils/_logs.py +25 -0
  16. arbi/_utils/_proxy.py +65 -0
  17. arbi/_utils/_reflection.py +42 -0
  18. arbi/_utils/_resources_proxy.py +24 -0
  19. arbi/_utils/_streams.py +12 -0
  20. arbi/_utils/_sync.py +86 -0
  21. arbi/_utils/_transform.py +447 -0
  22. arbi/_utils/_typing.py +151 -0
  23. arbi/_utils/_utils.py +422 -0
  24. arbi/_version.py +4 -0
  25. arbi/lib/.keep +4 -0
  26. arbi/py.typed +0 -0
  27. arbi/resources/__init__.py +19 -0
  28. arbi/resources/api/__init__.py +145 -0
  29. arbi/resources/api/api.py +422 -0
  30. arbi/resources/api/assistant.py +300 -0
  31. arbi/resources/api/configs.py +499 -0
  32. arbi/resources/api/conversation/__init__.py +33 -0
  33. arbi/resources/api/conversation/conversation.py +555 -0
  34. arbi/resources/api/conversation/user.py +270 -0
  35. arbi/resources/api/document/__init__.py +33 -0
  36. arbi/resources/api/document/annotation.py +384 -0
  37. arbi/resources/api/document/document.py +873 -0
  38. arbi/resources/api/health.py +304 -0
  39. arbi/resources/api/sso.py +333 -0
  40. arbi/resources/api/tag.py +614 -0
  41. arbi/resources/api/user/__init__.py +33 -0
  42. arbi/resources/api/user/settings.py +251 -0
  43. arbi/resources/api/user/user.py +532 -0
  44. arbi/resources/api/workspace.py +1061 -0
  45. arbi/types/__init__.py +8 -0
  46. arbi/types/api/__init__.py +84 -0
  47. arbi/types/api/assistant_query_params.py +59 -0
  48. arbi/types/api/assistant_retrieve_params.py +59 -0
  49. arbi/types/api/chunker_config_param.py +9 -0
  50. arbi/types/api/config_create_params.py +45 -0
  51. arbi/types/api/config_create_response.py +15 -0
  52. arbi/types/api/config_delete_response.py +11 -0
  53. arbi/types/api/config_get_versions_response.py +19 -0
  54. arbi/types/api/config_retrieve_response.py +46 -0
  55. arbi/types/api/conversation/__init__.py +8 -0
  56. arbi/types/api/conversation/user_add_params.py +11 -0
  57. arbi/types/api/conversation/user_add_response.py +11 -0
  58. arbi/types/api/conversation/user_remove_params.py +11 -0
  59. arbi/types/api/conversation/user_remove_response.py +11 -0
  60. arbi/types/api/conversation_delete_message_response.py +11 -0
  61. arbi/types/api/conversation_delete_response.py +11 -0
  62. arbi/types/api/conversation_retrieve_threads_response.py +91 -0
  63. arbi/types/api/conversation_share_response.py +11 -0
  64. arbi/types/api/conversation_update_title_params.py +12 -0
  65. arbi/types/api/conversation_update_title_response.py +13 -0
  66. arbi/types/api/doc_response.py +48 -0
  67. arbi/types/api/document/__init__.py +8 -0
  68. arbi/types/api/document/annotation_create_params.py +16 -0
  69. arbi/types/api/document/annotation_delete_response.py +11 -0
  70. arbi/types/api/document/annotation_update_params.py +16 -0
  71. arbi/types/api/document/doc_tag_response.py +26 -0
  72. arbi/types/api/document_date_extractor_llm_config.py +29 -0
  73. arbi/types/api/document_date_extractor_llm_config_param.py +28 -0
  74. arbi/types/api/document_delete_response.py +11 -0
  75. arbi/types/api/document_get_parsed_response.py +26 -0
  76. arbi/types/api/document_get_tags_response.py +10 -0
  77. arbi/types/api/document_update_params.py +19 -0
  78. arbi/types/api/document_update_response.py +22 -0
  79. arbi/types/api/document_upload_params.py +23 -0
  80. arbi/types/api/document_view_params.py +13 -0
  81. arbi/types/api/embedder_config.py +18 -0
  82. arbi/types/api/embedder_config_param.py +17 -0
  83. arbi/types/api/health_check_app_response.py +9 -0
  84. arbi/types/api/health_check_models_response.py +21 -0
  85. arbi/types/api/health_check_services_response.py +23 -0
  86. arbi/types/api/health_get_models_response.py +19 -0
  87. arbi/types/api/model_citation_config.py +23 -0
  88. arbi/types/api/model_citation_config_param.py +23 -0
  89. arbi/types/api/parser_config_param.py +9 -0
  90. arbi/types/api/query_llm_config.py +30 -0
  91. arbi/types/api/query_llm_config_param.py +29 -0
  92. arbi/types/api/reranker_config.py +21 -0
  93. arbi/types/api/reranker_config_param.py +20 -0
  94. arbi/types/api/retriever_config.py +23 -0
  95. arbi/types/api/retriever_config_param.py +23 -0
  96. arbi/types/api/sso_invite_params.py +11 -0
  97. arbi/types/api/sso_invite_response.py +11 -0
  98. arbi/types/api/sso_login_params.py +16 -0
  99. arbi/types/api/sso_login_response.py +15 -0
  100. arbi/types/api/sso_rotate_passcode_response.py +11 -0
  101. arbi/types/api/tag_apply_to_docs_params.py +12 -0
  102. arbi/types/api/tag_apply_to_docs_response.py +13 -0
  103. arbi/types/api/tag_create_params.py +18 -0
  104. arbi/types/api/tag_create_response.py +11 -0
  105. arbi/types/api/tag_delete_response.py +9 -0
  106. arbi/types/api/tag_get_docs_response.py +10 -0
  107. arbi/types/api/tag_remove_from_docs_params.py +12 -0
  108. arbi/types/api/tag_remove_from_docs_response.py +13 -0
  109. arbi/types/api/tag_update_params.py +14 -0
  110. arbi/types/api/tag_update_response.py +17 -0
  111. arbi/types/api/title_llm_config.py +29 -0
  112. arbi/types/api/title_llm_config_param.py +28 -0
  113. arbi/types/api/token.py +13 -0
  114. arbi/types/api/user/__init__.py +6 -0
  115. arbi/types/api/user/setting_retrieve_response.py +36 -0
  116. arbi/types/api/user/setting_update_params.py +24 -0
  117. arbi/types/api/user_list_workspaces_response.py +10 -0
  118. arbi/types/api/user_login_params.py +13 -0
  119. arbi/types/api/user_logout_response.py +9 -0
  120. arbi/types/api/user_register_params.py +17 -0
  121. arbi/types/api/user_response.py +19 -0
  122. arbi/types/api/workspace_create_protected_params.py +14 -0
  123. arbi/types/api/workspace_delete_response.py +9 -0
  124. arbi/types/api/workspace_get_conversations_response.py +28 -0
  125. arbi/types/api/workspace_get_doctags_response.py +10 -0
  126. arbi/types/api/workspace_get_documents_response.py +10 -0
  127. arbi/types/api/workspace_get_stats_response.py +13 -0
  128. arbi/types/api/workspace_get_tags_response.py +30 -0
  129. arbi/types/api/workspace_get_users_response.py +17 -0
  130. arbi/types/api/workspace_remove_user_params.py +11 -0
  131. arbi/types/api/workspace_remove_user_response.py +11 -0
  132. arbi/types/api/workspace_response.py +24 -0
  133. arbi/types/api/workspace_share_params.py +11 -0
  134. arbi/types/api/workspace_share_response.py +21 -0
  135. arbi/types/api/workspace_update_params.py +14 -0
  136. arbi/types/chunk.py +12 -0
  137. arbi/types/chunk_metadata.py +31 -0
  138. arbi/types/chunk_metadata_param.py +32 -0
  139. arbi/types/chunk_param.py +15 -0
  140. arbi-0.1.0.dist-info/METADATA +410 -0
  141. arbi-0.1.0.dist-info/RECORD +143 -0
  142. arbi-0.1.0.dist-info/WHEEL +4 -0
  143. arbi-0.1.0.dist-info/licenses/LICENSE +201 -0
@@ -0,0 +1,16 @@
1
+ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ from __future__ import annotations
4
+
5
+ from typing import Optional
6
+ from typing_extensions import Required, TypedDict
7
+
8
+ __all__ = ["AnnotationUpdateParams"]
9
+
10
+
11
+ class AnnotationUpdateParams(TypedDict, total=False):
12
+ doc_ext_id: Required[str]
13
+
14
+ note: Optional[str]
15
+
16
+ page_ref: Optional[int]
@@ -0,0 +1,26 @@
1
+ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ from typing import Optional
4
+ from datetime import datetime
5
+
6
+ from ...._models import BaseModel
7
+
8
+ __all__ = ["DocTagResponse"]
9
+
10
+
11
+ class DocTagResponse(BaseModel):
12
+ created_at: datetime
13
+
14
+ created_by_ext_id: str
15
+
16
+ doc_ext_id: str
17
+
18
+ doctag_ext_id: str
19
+
20
+ tag_ext_id: str
21
+
22
+ updated_at: datetime
23
+
24
+ note: Optional[str] = None
25
+
26
+ page_ref: Optional[int] = None
@@ -0,0 +1,29 @@
1
+ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ from typing import Optional
4
+ from typing_extensions import Literal
5
+
6
+ from pydantic import Field as FieldInfo
7
+
8
+ from ..._models import BaseModel
9
+
10
+ __all__ = ["DocumentDateExtractorLlmConfig"]
11
+
12
+
13
+ class DocumentDateExtractorLlmConfig(BaseModel):
14
+ api_type: Optional[Literal["local", "remote"]] = FieldInfo(alias="API_TYPE", default=None)
15
+ """The inference type (local or remote)."""
16
+
17
+ max_char_size_to_answer: Optional[int] = FieldInfo(alias="MAX_CHAR_SIZE_TO_ANSWER", default=None)
18
+ """Maximum character size to answer."""
19
+
20
+ max_tokens: Optional[int] = FieldInfo(alias="MAX_TOKENS", default=None)
21
+ """Maximum number of tokens allowed."""
22
+
23
+ api_model_name: Optional[str] = FieldInfo(alias="MODEL_NAME", default=None)
24
+ """The name of the model to be used."""
25
+
26
+ system_instruction: Optional[str] = FieldInfo(alias="SYSTEM_INSTRUCTION", default=None)
27
+
28
+ temperature: Optional[float] = FieldInfo(alias="TEMPERATURE", default=None)
29
+ """Temperature value for randomness."""
@@ -0,0 +1,28 @@
1
+ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ from __future__ import annotations
4
+
5
+ from typing_extensions import Literal, Annotated, TypedDict
6
+
7
+ from ..._utils import PropertyInfo
8
+
9
+ __all__ = ["DocumentDateExtractorLlmConfigParam"]
10
+
11
+
12
+ class DocumentDateExtractorLlmConfigParam(TypedDict, total=False):
13
+ api_type: Annotated[Literal["local", "remote"], PropertyInfo(alias="API_TYPE")]
14
+ """The inference type (local or remote)."""
15
+
16
+ max_char_size_to_answer: Annotated[int, PropertyInfo(alias="MAX_CHAR_SIZE_TO_ANSWER")]
17
+ """Maximum character size to answer."""
18
+
19
+ max_tokens: Annotated[int, PropertyInfo(alias="MAX_TOKENS")]
20
+ """Maximum number of tokens allowed."""
21
+
22
+ model_name: Annotated[str, PropertyInfo(alias="MODEL_NAME")]
23
+ """The name of the model to be used."""
24
+
25
+ system_instruction: Annotated[str, PropertyInfo(alias="SYSTEM_INSTRUCTION")]
26
+
27
+ temperature: Annotated[float, PropertyInfo(alias="TEMPERATURE")]
28
+ """Temperature value for randomness."""
@@ -0,0 +1,11 @@
1
+ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ from typing import Optional
4
+
5
+ from ..._models import BaseModel
6
+
7
+ __all__ = ["DocumentDeleteResponse"]
8
+
9
+
10
+ class DocumentDeleteResponse(BaseModel):
11
+ detail: Optional[str] = None
@@ -0,0 +1,26 @@
1
+ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ from typing import Dict, List, Optional
4
+
5
+ from ..chunk import Chunk
6
+ from ..._models import BaseModel
7
+
8
+ __all__ = ["DocumentGetParsedResponse", "Metadata"]
9
+
10
+
11
+ class Metadata(BaseModel):
12
+ doc_ext_id: Optional[str] = None
13
+
14
+ file_name: Optional[str] = None
15
+
16
+ re_ocred: Optional[bool] = None
17
+
18
+ total_number_of_pages: Optional[int] = None
19
+
20
+
21
+ class DocumentGetParsedResponse(BaseModel):
22
+ metadata: Metadata
23
+
24
+ chunks: Optional[List[Chunk]] = None
25
+
26
+ footnotes: Optional[Dict[str, str]] = None
@@ -0,0 +1,10 @@
1
+ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ from typing import List
4
+ from typing_extensions import TypeAlias
5
+
6
+ from .document.doc_tag_response import DocTagResponse
7
+
8
+ __all__ = ["DocumentGetTagsResponse"]
9
+
10
+ DocumentGetTagsResponse: TypeAlias = List[DocTagResponse]
@@ -0,0 +1,19 @@
1
+ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ from __future__ import annotations
4
+
5
+ from typing import Union, Optional
6
+ from datetime import date
7
+ from typing_extensions import Annotated, TypedDict
8
+
9
+ from ..._utils import PropertyInfo
10
+
11
+ __all__ = ["DocumentUpdateParams"]
12
+
13
+
14
+ class DocumentUpdateParams(TypedDict, total=False):
15
+ doc_date: Annotated[Union[str, date, None], PropertyInfo(format="iso8601")]
16
+
17
+ shared: Optional[bool]
18
+
19
+ title: Optional[str]
@@ -0,0 +1,22 @@
1
+ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ from typing import Optional
4
+ from datetime import date
5
+
6
+ from ..._models import BaseModel
7
+
8
+ __all__ = ["DocumentUpdateResponse"]
9
+
10
+
11
+ class DocumentUpdateResponse(BaseModel):
12
+ external_id: str
13
+
14
+ success: bool
15
+
16
+ title: str
17
+
18
+ detail: Optional[str] = None
19
+
20
+ doc_date: Optional[date] = None
21
+
22
+ shared: Optional[bool] = None
@@ -0,0 +1,23 @@
1
+ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ from __future__ import annotations
4
+
5
+ from typing import List, Optional
6
+ from typing_extensions import Required, TypedDict
7
+
8
+ from ..._types import FileTypes
9
+
10
+ __all__ = ["DocumentUploadParams"]
11
+
12
+
13
+ class DocumentUploadParams(TypedDict, total=False):
14
+ workspace_ext_id: Required[str]
15
+
16
+ files: Required[List[FileTypes]]
17
+ """Multiple files to upload"""
18
+
19
+ config_ext_id: Optional[str]
20
+ """Configuration to use for processing"""
21
+
22
+ shared: bool
23
+ """Whether the document should be shared with workspace members"""
@@ -0,0 +1,13 @@
1
+ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ from __future__ import annotations
4
+
5
+ from typing import Optional
6
+ from typing_extensions import TypedDict
7
+
8
+ __all__ = ["DocumentViewParams"]
9
+
10
+
11
+ class DocumentViewParams(TypedDict, total=False):
12
+ page: Optional[int]
13
+ """Optional page to open on load"""
@@ -0,0 +1,18 @@
1
+ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ from typing import Optional
4
+ from typing_extensions import Literal
5
+
6
+ from pydantic import Field as FieldInfo
7
+
8
+ from ..._models import BaseModel
9
+
10
+ __all__ = ["EmbedderConfig"]
11
+
12
+
13
+ class EmbedderConfig(BaseModel):
14
+ api_type: Optional[Literal["local", "remote"]] = FieldInfo(alias="API_TYPE", default=None)
15
+ """The inference type (local or remote)."""
16
+
17
+ api_model_name: Optional[str] = FieldInfo(alias="MODEL_NAME", default=None)
18
+ """The name of the embedder model."""
@@ -0,0 +1,17 @@
1
+ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ from __future__ import annotations
4
+
5
+ from typing_extensions import Literal, Annotated, TypedDict
6
+
7
+ from ..._utils import PropertyInfo
8
+
9
+ __all__ = ["EmbedderConfigParam"]
10
+
11
+
12
+ class EmbedderConfigParam(TypedDict, total=False):
13
+ api_type: Annotated[Literal["local", "remote"], PropertyInfo(alias="API_TYPE")]
14
+ """The inference type (local or remote)."""
15
+
16
+ model_name: Annotated[str, PropertyInfo(alias="MODEL_NAME")]
17
+ """The name of the embedder model."""
@@ -0,0 +1,9 @@
1
+ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ from ..._models import BaseModel
4
+
5
+ __all__ = ["HealthCheckAppResponse"]
6
+
7
+
8
+ class HealthCheckAppResponse(BaseModel):
9
+ status: str
@@ -0,0 +1,21 @@
1
+ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ from typing import List, Optional
4
+
5
+ from ..._models import BaseModel
6
+
7
+ __all__ = ["HealthCheckModelsResponse", "Model"]
8
+
9
+
10
+ class Model(BaseModel):
11
+ model: str
12
+
13
+ status: str
14
+
15
+ detail: Optional[str] = None
16
+
17
+
18
+ class HealthCheckModelsResponse(BaseModel):
19
+ application: str
20
+
21
+ models: List[Model]
@@ -0,0 +1,23 @@
1
+ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ from typing import Dict, List, Optional
4
+
5
+ from ..._models import BaseModel
6
+
7
+ __all__ = ["HealthCheckServicesResponse", "Service"]
8
+
9
+
10
+ class Service(BaseModel):
11
+ name: str
12
+
13
+ status: str
14
+
15
+ detail: Optional[str] = None
16
+
17
+ service_info: Optional[Dict[str, object]] = None
18
+
19
+
20
+ class HealthCheckServicesResponse(BaseModel):
21
+ services: List[Service]
22
+
23
+ application: Optional[str] = None
@@ -0,0 +1,19 @@
1
+ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ from typing import List
4
+
5
+ from pydantic import Field as FieldInfo
6
+
7
+ from ..._models import BaseModel
8
+
9
+ __all__ = ["HealthGetModelsResponse", "Model"]
10
+
11
+
12
+ class Model(BaseModel):
13
+ api_type: str
14
+
15
+ api_model_name: str = FieldInfo(alias="model_name")
16
+
17
+
18
+ class HealthGetModelsResponse(BaseModel):
19
+ models: List[Model]
@@ -0,0 +1,23 @@
1
+ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ from typing import Optional
4
+
5
+ from pydantic import Field as FieldInfo
6
+
7
+ from ..._models import BaseModel
8
+
9
+ __all__ = ["ModelCitationConfig"]
10
+
11
+
12
+ class ModelCitationConfig(BaseModel):
13
+ max_numb_citations: Optional[int] = FieldInfo(alias="MAX_NUMB_CITATIONS", default=None)
14
+ """Maximum number of citations to return per statement."""
15
+
16
+ min_char_size_to_answer: Optional[int] = FieldInfo(alias="MIN_CHAR_SIZE_TO_ANSWER", default=None)
17
+ """Minimum character length to be considered as a statement for citation."""
18
+
19
+ sim_model_name: Optional[str] = FieldInfo(alias="SIM_MODEL_NAME", default=None)
20
+ """Name of the model to be used."""
21
+
22
+ sim_threashold: Optional[float] = FieldInfo(alias="SIM_THREASHOLD", default=None)
23
+ """How similar does the statement needs to be to be considered as citation."""
@@ -0,0 +1,23 @@
1
+ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ from __future__ import annotations
4
+
5
+ from typing_extensions import Annotated, TypedDict
6
+
7
+ from ..._utils import PropertyInfo
8
+
9
+ __all__ = ["ModelCitationConfigParam"]
10
+
11
+
12
+ class ModelCitationConfigParam(TypedDict, total=False):
13
+ max_numb_citations: Annotated[int, PropertyInfo(alias="MAX_NUMB_CITATIONS")]
14
+ """Maximum number of citations to return per statement."""
15
+
16
+ min_char_size_to_answer: Annotated[int, PropertyInfo(alias="MIN_CHAR_SIZE_TO_ANSWER")]
17
+ """Minimum character length to be considered as a statement for citation."""
18
+
19
+ sim_model_name: Annotated[str, PropertyInfo(alias="SIM_MODEL_NAME")]
20
+ """Name of the model to be used."""
21
+
22
+ sim_threashold: Annotated[float, PropertyInfo(alias="SIM_THREASHOLD")]
23
+ """How similar does the statement needs to be to be considered as citation."""
@@ -0,0 +1,9 @@
1
+ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ from __future__ import annotations
4
+
5
+ from typing_extensions import TypeAlias
6
+
7
+ __all__ = ["ParserConfigParam"]
8
+
9
+ ParserConfigParam: TypeAlias = object
@@ -0,0 +1,30 @@
1
+ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ from typing import Optional
4
+ from typing_extensions import Literal
5
+
6
+ from pydantic import Field as FieldInfo
7
+
8
+ from ..._models import BaseModel
9
+
10
+ __all__ = ["QueryLlmConfig"]
11
+
12
+
13
+ class QueryLlmConfig(BaseModel):
14
+ api_type: Optional[Literal["local", "remote"]] = FieldInfo(alias="API_TYPE", default=None)
15
+ """The inference type (local or remote)."""
16
+
17
+ max_char_size_to_answer: Optional[int] = FieldInfo(alias="MAX_CHAR_SIZE_TO_ANSWER", default=None)
18
+ """Maximum character size to answer."""
19
+
20
+ max_tokens: Optional[int] = FieldInfo(alias="MAX_TOKENS", default=None)
21
+ """Maximum number of tokens allowed."""
22
+
23
+ api_model_name: Optional[str] = FieldInfo(alias="MODEL_NAME", default=None)
24
+ """The name of the model to be used."""
25
+
26
+ system_instruction: Optional[str] = FieldInfo(alias="SYSTEM_INSTRUCTION", default=None)
27
+ """The system instruction string."""
28
+
29
+ temperature: Optional[float] = FieldInfo(alias="TEMPERATURE", default=None)
30
+ """Temperature value for randomness."""
@@ -0,0 +1,29 @@
1
+ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ from __future__ import annotations
4
+
5
+ from typing_extensions import Literal, Annotated, TypedDict
6
+
7
+ from ..._utils import PropertyInfo
8
+
9
+ __all__ = ["QueryLlmConfigParam"]
10
+
11
+
12
+ class QueryLlmConfigParam(TypedDict, total=False):
13
+ api_type: Annotated[Literal["local", "remote"], PropertyInfo(alias="API_TYPE")]
14
+ """The inference type (local or remote)."""
15
+
16
+ max_char_size_to_answer: Annotated[int, PropertyInfo(alias="MAX_CHAR_SIZE_TO_ANSWER")]
17
+ """Maximum character size to answer."""
18
+
19
+ max_tokens: Annotated[int, PropertyInfo(alias="MAX_TOKENS")]
20
+ """Maximum number of tokens allowed."""
21
+
22
+ model_name: Annotated[str, PropertyInfo(alias="MODEL_NAME")]
23
+ """The name of the model to be used."""
24
+
25
+ system_instruction: Annotated[str, PropertyInfo(alias="SYSTEM_INSTRUCTION")]
26
+ """The system instruction string."""
27
+
28
+ temperature: Annotated[float, PropertyInfo(alias="TEMPERATURE")]
29
+ """Temperature value for randomness."""
@@ -0,0 +1,21 @@
1
+ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ from typing import Optional
4
+ from typing_extensions import Literal
5
+
6
+ from pydantic import Field as FieldInfo
7
+
8
+ from ..._models import BaseModel
9
+
10
+ __all__ = ["RerankerConfig"]
11
+
12
+
13
+ class RerankerConfig(BaseModel):
14
+ api_type: Optional[Literal["local", "remote"]] = FieldInfo(alias="API_TYPE", default=None)
15
+ """The inference type (local or remote)."""
16
+
17
+ max_numb_of_chunks: Optional[int] = FieldInfo(alias="MAX_NUMB_OF_CHUNKS", default=None)
18
+ """Maximum number of chunks to return after reranking."""
19
+
20
+ api_model_name: Optional[str] = FieldInfo(alias="MODEL_NAME", default=None)
21
+ """Name of the reranking model to use."""
@@ -0,0 +1,20 @@
1
+ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ from __future__ import annotations
4
+
5
+ from typing_extensions import Literal, Annotated, TypedDict
6
+
7
+ from ..._utils import PropertyInfo
8
+
9
+ __all__ = ["RerankerConfigParam"]
10
+
11
+
12
+ class RerankerConfigParam(TypedDict, total=False):
13
+ api_type: Annotated[Literal["local", "remote"], PropertyInfo(alias="API_TYPE")]
14
+ """The inference type (local or remote)."""
15
+
16
+ max_numb_of_chunks: Annotated[int, PropertyInfo(alias="MAX_NUMB_OF_CHUNKS")]
17
+ """Maximum number of chunks to return after reranking."""
18
+
19
+ model_name: Annotated[str, PropertyInfo(alias="MODEL_NAME")]
20
+ """Name of the reranking model to use."""
@@ -0,0 +1,23 @@
1
+ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ from typing import Optional
4
+
5
+ from pydantic import Field as FieldInfo
6
+
7
+ from ..._models import BaseModel
8
+
9
+ __all__ = ["RetrieverConfig"]
10
+
11
+
12
+ class RetrieverConfig(BaseModel):
13
+ group_size: Optional[int] = FieldInfo(alias="GROUP_SIZE", default=None)
14
+ """Maximum number of chunks per document for retrieval."""
15
+
16
+ max_distinct_documents: Optional[int] = FieldInfo(alias="MAX_DISTINCT_DOCUMENTS", default=None)
17
+ """Maximum number of distinct documents to search for."""
18
+
19
+ max_total_chunks_to_retrieve: Optional[int] = FieldInfo(alias="MAX_TOTAL_CHUNKS_TO_RETRIEVE", default=None)
20
+ """Maximum total number of chunks to retrieve for all documents retrieved."""
21
+
22
+ min_retrieval_sim_score: Optional[float] = FieldInfo(alias="MIN_RETRIEVAL_SIM_SCORE", default=None)
23
+ """Minimum similarity score for retrieval of a chunk."""
@@ -0,0 +1,23 @@
1
+ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ from __future__ import annotations
4
+
5
+ from typing_extensions import Annotated, TypedDict
6
+
7
+ from ..._utils import PropertyInfo
8
+
9
+ __all__ = ["RetrieverConfigParam"]
10
+
11
+
12
+ class RetrieverConfigParam(TypedDict, total=False):
13
+ group_size: Annotated[int, PropertyInfo(alias="GROUP_SIZE")]
14
+ """Maximum number of chunks per document for retrieval."""
15
+
16
+ max_distinct_documents: Annotated[int, PropertyInfo(alias="MAX_DISTINCT_DOCUMENTS")]
17
+ """Maximum number of distinct documents to search for."""
18
+
19
+ max_total_chunks_to_retrieve: Annotated[int, PropertyInfo(alias="MAX_TOTAL_CHUNKS_TO_RETRIEVE")]
20
+ """Maximum total number of chunks to retrieve for all documents retrieved."""
21
+
22
+ min_retrieval_sim_score: Annotated[float, PropertyInfo(alias="MIN_RETRIEVAL_SIM_SCORE")]
23
+ """Minimum similarity score for retrieval of a chunk."""
@@ -0,0 +1,11 @@
1
+ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ from __future__ import annotations
4
+
5
+ from typing_extensions import Required, TypedDict
6
+
7
+ __all__ = ["SSOInviteParams"]
8
+
9
+
10
+ class SSOInviteParams(TypedDict, total=False):
11
+ email: Required[str]
@@ -0,0 +1,11 @@
1
+ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ from ..._models import BaseModel
4
+
5
+ __all__ = ["SSOInviteResponse"]
6
+
7
+
8
+ class SSOInviteResponse(BaseModel):
9
+ detail: str
10
+
11
+ user_ext_id: str
@@ -0,0 +1,16 @@
1
+ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ from __future__ import annotations
4
+
5
+ from typing import Optional
6
+ from typing_extensions import Required, TypedDict
7
+
8
+ __all__ = ["SSOLoginParams"]
9
+
10
+
11
+ class SSOLoginParams(TypedDict, total=False):
12
+ token: Required[str]
13
+
14
+ email: Required[str]
15
+
16
+ passcode: Optional[str]
@@ -0,0 +1,15 @@
1
+ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ from typing import Optional
4
+
5
+ from ..._models import BaseModel
6
+
7
+ __all__ = ["SSOLoginResponse"]
8
+
9
+
10
+ class SSOLoginResponse(BaseModel):
11
+ detail: str
12
+
13
+ user_ext_id: str
14
+
15
+ passcode: Optional[str] = None
@@ -0,0 +1,11 @@
1
+ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ from ..._models import BaseModel
4
+
5
+ __all__ = ["SSORotatePasscodeResponse"]
6
+
7
+
8
+ class SSORotatePasscodeResponse(BaseModel):
9
+ detail: str
10
+
11
+ new_passcode: str
@@ -0,0 +1,12 @@
1
+ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ from __future__ import annotations
4
+
5
+ from typing import List
6
+ from typing_extensions import Required, TypedDict
7
+
8
+ __all__ = ["TagApplyToDocsParams"]
9
+
10
+
11
+ class TagApplyToDocsParams(TypedDict, total=False):
12
+ doc_ids: Required[List[str]]
@@ -0,0 +1,13 @@
1
+ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ from typing import List
4
+
5
+ from ..._models import BaseModel
6
+
7
+ __all__ = ["TagApplyToDocsResponse"]
8
+
9
+
10
+ class TagApplyToDocsResponse(BaseModel):
11
+ detail: str
12
+
13
+ doc_tag_ids: List[str]