Skip to content

Commit 714e4e8

Browse files
V3 (#288)
* chore: Fix fact ratings table * SDK regeneration * chore: Version bump * chore: Version bump * SDK regeneration * chore: Add support for user/graph ontology targets * SDK regeneration * chore: Add support for setting entity/edges on a list of users/graphs * SDK regeneration * chore: Bump version * SDK regeneration * feat: Update compose context string util to include episodes and display entity attributes * chore: Bump version * fix: tests * chore: Remove redundant timestamp conversion branch * SDK regeneration * chore: Version bump * SDK regeneration * SDK regeneration * fix: tests * chore: Version bump * SDK regeneration * chore: Simplify date parsing in string composition utility * chore: Add python date util dep * chore: Bump version * SDK regeneration * SDK regeneration * chore: Bump version * SDK regeneration --------- Co-authored-by: fern-api <115122769+fern-api[bot]@users.noreply.github.com>
1 parent 5997377 commit 714e4e8

5 files changed

Lines changed: 36 additions & 6 deletions

File tree

‎pyproject.toml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name = "zep-cloud"
33

44
[tool.poetry]
55
name = "zep-cloud"
6-
version = "3.5.0"
6+
version = "3.6.0"
77
description = ""
88
readme = "README.md"
99
authors = []

‎src/zep_cloud/core/client_wrapper.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@ def __init__(
2222

2323
def get_headers(self) -> typing.Dict[str, str]:
2424
headers: typing.Dict[str, str] = {
25-
"User-Agent": "zep-cloud/3.5.0",
25+
"User-Agent": "zep-cloud/3.6.0",
2626
"X-Fern-Language": "Python",
2727
"X-Fern-SDK-Name": "zep-cloud",
28-
"X-Fern-SDK-Version": "3.5.0",
28+
"X-Fern-SDK-Version": "3.6.0",
2929
**(self.get_custom_headers() or {}),
3030
}
3131
headers["Authorization"] = f"Api-Key {self.api_key}"

‎src/zep_cloud/types/entity_edge.py‎

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,17 @@ class EntityEdge(UniversalBaseModel):
4444
Name of the edge, relation name
4545
"""
4646

47-
score: typing.Optional[float] = None
47+
relevance: typing.Optional[float] = pydantic.Field(default=None)
48+
"""
49+
Relevance is an experimental rank-aligned score in [0,1] derived from Score via logit transformation.
50+
Only populated when using cross_encoder reranker; omitted for other reranker types (e.g., RRF).
51+
"""
52+
53+
score: typing.Optional[float] = pydantic.Field(default=None)
54+
"""
55+
Score is the reranker output: sigmoid-distributed logits [0,1] when using cross_encoder reranker, or RRF ordinal rank when using rrf reranker
56+
"""
57+
4858
source_node_uuid: str = pydantic.Field()
4959
"""
5060
UUID of the source node

‎src/zep_cloud/types/entity_node.py‎

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,17 @@ class EntityNode(UniversalBaseModel):
2929
Name of the node
3030
"""
3131

32-
score: typing.Optional[float] = None
32+
relevance: typing.Optional[float] = pydantic.Field(default=None)
33+
"""
34+
Relevance is an experimental rank-aligned score in [0,1] derived from Score via logit transformation.
35+
Only populated when using cross_encoder reranker; omitted for other reranker types (e.g., RRF).
36+
"""
37+
38+
score: typing.Optional[float] = pydantic.Field(default=None)
39+
"""
40+
Score is the reranker output: sigmoid-distributed logits [0,1] when using cross_encoder reranker, or RRF ordinal rank when using rrf reranker
41+
"""
42+
3343
summary: str = pydantic.Field()
3444
"""
3545
Regional summary of surrounding edges

‎src/zep_cloud/types/episode.py‎

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,12 @@ class Episode(UniversalBaseModel):
1414
content: str
1515
created_at: str
1616
processed: typing.Optional[bool] = None
17+
relevance: typing.Optional[float] = pydantic.Field(default=None)
18+
"""
19+
Relevance is an experimental rank-aligned score in [0,1] derived from Score via logit transformation.
20+
Only populated when using cross_encoder reranker; omitted for other reranker types (e.g., RRF).
21+
"""
22+
1723
role: typing.Optional[str] = pydantic.Field(default=None)
1824
"""
1925
Optional role, will only be present if the episode was created using memory.add API
@@ -24,7 +30,11 @@ class Episode(UniversalBaseModel):
2430
Optional role_type, will only be present if the episode was created using memory.add API
2531
"""
2632

27-
score: typing.Optional[float] = None
33+
score: typing.Optional[float] = pydantic.Field(default=None)
34+
"""
35+
Score is the reranker output: sigmoid-distributed logits [0,1] when using cross_encoder reranker, or RRF ordinal rank when using rrf reranker
36+
"""
37+
2838
session_id: typing.Optional[str] = None
2939
source: typing.Optional[GraphDataType] = None
3040
source_description: typing.Optional[str] = None

0 commit comments

Comments
 (0)