docent-python 0.1.0a5__py3-none-any.whl → 0.1.0a7__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.
- docent/data_models/__init__.py +1 -2
- docent/data_models/metadata.py +0 -28
- docent/sdk/client.py +1 -1
- {docent_python-0.1.0a5.dist-info → docent_python-0.1.0a7.dist-info}/METADATA +1 -1
- {docent_python-0.1.0a5.dist-info → docent_python-0.1.0a7.dist-info}/RECORD +7 -7
- {docent_python-0.1.0a5.dist-info → docent_python-0.1.0a7.dist-info}/WHEEL +0 -0
- {docent_python-0.1.0a5.dist-info → docent_python-0.1.0a7.dist-info}/licenses/LICENSE.md +0 -0
docent/data_models/__init__.py
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
from docent.data_models.agent_run import AgentRun
|
2
2
|
from docent.data_models.citation import Citation
|
3
|
-
from docent.data_models.metadata import BaseAgentRunMetadata, BaseMetadata
|
3
|
+
from docent.data_models.metadata import BaseAgentRunMetadata, BaseMetadata
|
4
4
|
from docent.data_models.regex import RegexSnippet
|
5
5
|
from docent.data_models.transcript import Transcript
|
6
6
|
|
@@ -8,7 +8,6 @@ __all__ = [
|
|
8
8
|
"AgentRun",
|
9
9
|
"Citation",
|
10
10
|
"RegexSnippet",
|
11
|
-
"FrameDimension",
|
12
11
|
"BaseAgentRunMetadata",
|
13
12
|
"BaseMetadata",
|
14
13
|
"Transcript",
|
docent/data_models/metadata.py
CHANGED
@@ -184,36 +184,8 @@ class BaseAgentRunMetadata(BaseMetadata):
|
|
184
184
|
|
185
185
|
Attributes:
|
186
186
|
scores: Dictionary of evaluation metrics.
|
187
|
-
default_score_key: The primary evaluation metric key.
|
188
187
|
"""
|
189
188
|
|
190
189
|
scores: dict[str, int | float | bool | None] = Field(
|
191
190
|
description="A dict of score_key -> score_value. Use one key for each metric you're tracking."
|
192
191
|
)
|
193
|
-
default_score_key: str | None = Field(
|
194
|
-
description="The default score key for the transcript; one top-line metric"
|
195
|
-
)
|
196
|
-
|
197
|
-
def get_default_score(self) -> int | float | bool | None:
|
198
|
-
"""Gets the default evaluation score.
|
199
|
-
|
200
|
-
Returns:
|
201
|
-
int, float, bool, or None: The value of the default score if a default score key is set,
|
202
|
-
otherwise None.
|
203
|
-
"""
|
204
|
-
if self.default_score_key is None:
|
205
|
-
return None
|
206
|
-
return self.scores.get(self.default_score_key)
|
207
|
-
|
208
|
-
|
209
|
-
class FrameDimension(BaseModel):
|
210
|
-
"""A dimension for organizing agent runs."""
|
211
|
-
|
212
|
-
id: str
|
213
|
-
name: str
|
214
|
-
search_query: str | None = None
|
215
|
-
metadata_key: str | None = None
|
216
|
-
maintain_mece: bool | None = None
|
217
|
-
loading_clusters: bool = False
|
218
|
-
loading_bins: bool = False
|
219
|
-
binIds: list[dict[str, Any]] | None = None
|
docent/sdk/client.py
CHANGED
@@ -25,7 +25,7 @@ class Docent:
|
|
25
25
|
def __init__(
|
26
26
|
self,
|
27
27
|
server_url: str = "https://aws-docent-backend.transluce.org",
|
28
|
-
web_url: str = "https://
|
28
|
+
web_url: str = "https://docent-alpha.transluce.org",
|
29
29
|
email: str | None = None,
|
30
30
|
password: str | None = None,
|
31
31
|
):
|
@@ -2,11 +2,11 @@ docent/__init__.py,sha256=J2BbO6rzilfw9WXRUeolr439EGFezqbMU_kCpCCryRA,59
|
|
2
2
|
docent/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
3
3
|
docent/_log_util/__init__.py,sha256=3HXXrxrSm8PxwG4llotrCnSnp7GuroK1FNHsdg6f7aE,73
|
4
4
|
docent/_log_util/logger.py,sha256=kwM0yRW1IJd6-XTorjWn48B4l8qvD2ZM6VDjY5eskQI,4422
|
5
|
-
docent/data_models/__init__.py,sha256=
|
5
|
+
docent/data_models/__init__.py,sha256=4NghEq_T9JqGTSo-hu_aZm35TDfahTzsbkrt8WB4GoQ,410
|
6
6
|
docent/data_models/_tiktoken_util.py,sha256=hC0EDDWItv5-0cONBnHWgZtQOflDU7ZNEhXPFo4DvPc,3057
|
7
7
|
docent/data_models/agent_run.py,sha256=sdvoUUpOhQAHqJHNR5KoHthCXrpJajdIREMacoR1ODk,9516
|
8
8
|
docent/data_models/citation.py,sha256=WsVQZcBT2EJD24ysyeVOC5Xfo165RI7P5_cOnJBgHj0,10015
|
9
|
-
docent/data_models/metadata.py,sha256=
|
9
|
+
docent/data_models/metadata.py,sha256=pb7fYQnqvjcmx7b7V6rRltJmuSRGJ58lmnPmNgab8rA,7112
|
10
10
|
docent/data_models/regex.py,sha256=0ciIerkrNwb91bY5mTcyO5nDWH67xx2tZYObV52fmBo,1684
|
11
11
|
docent/data_models/shared_types.py,sha256=jjm-Dh5S6v7UKInW7SEqoziOsx6Z7Uu4e3VzgCbTWvc,225
|
12
12
|
docent/data_models/transcript.py,sha256=HK1NvtD06XqVto6O5qzQ_wCmxlx0O88wSBB2NRTPs44,13667
|
@@ -19,8 +19,8 @@ docent/samples/load.py,sha256=ZGE07r83GBNO4A0QBh5aQ18WAu3mTWA1vxUoHd90nrM,207
|
|
19
19
|
docent/samples/log.eval,sha256=orrW__9WBfANq7NwKsPSq9oTsQRcG6KohG5tMr_X_XY,397708
|
20
20
|
docent/samples/tb_airline.json,sha256=eR2jFFRtOw06xqbEglh6-dPewjifOk-cuxJq67Dtu5I,47028
|
21
21
|
docent/sdk/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
22
|
-
docent/sdk/client.py,sha256=
|
23
|
-
docent_python-0.1.
|
24
|
-
docent_python-0.1.
|
25
|
-
docent_python-0.1.
|
26
|
-
docent_python-0.1.
|
22
|
+
docent/sdk/client.py,sha256=ptzgZq2vbxGrwPs6eK7TOs_FaymOkOtuM5kFVGklfuA,8832
|
23
|
+
docent_python-0.1.0a7.dist-info/METADATA,sha256=Iqt4lNy7UxZjqRvy0Yvc7Ch5NuZuD2eXAB1O1cs6F8I,493
|
24
|
+
docent_python-0.1.0a7.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
25
|
+
docent_python-0.1.0a7.dist-info/licenses/LICENSE.md,sha256=vOHzq3K4Ndu0UV9hPrtXvlD7pHOjyDQmGjHuLSIkRQY,1087
|
26
|
+
docent_python-0.1.0a7.dist-info/RECORD,,
|
File without changes
|
File without changes
|