nucliadb-models 6.4.0.post4265__py3-none-any.whl → 6.4.0.post4276__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.
nucliadb_models/search.py CHANGED
@@ -1003,6 +1003,21 @@ class RephraseModel(BaseModel):
1003
1003
  title="Generative model",
1004
1004
  description="The generative model to use for the rephrase endpoint. If not provided, the model configured for the Knowledge Box is used.", # noqa: E501
1005
1005
  )
1006
+ chat_history_relevance_threshold: Optional[
1007
+ Annotated[
1008
+ float,
1009
+ Field(
1010
+ ge=0.0,
1011
+ le=1.0,
1012
+ description=(
1013
+ "Threshold to determine if the past chat history is relevant to rephrase the user's question. "
1014
+ "0 - Always treat previous messages as relevant (always rephrase)."
1015
+ "1 – Always treat previous messages as irrelevant (never rephrase)."
1016
+ "Values in between adjust the sensitivity."
1017
+ ),
1018
+ ),
1019
+ ]
1020
+ ] = None
1006
1021
 
1007
1022
 
1008
1023
  class RagStrategyName:
@@ -1578,6 +1593,21 @@ If empty, the default strategy is used, which simply adds the text of the matchi
1578
1593
  "Rephrase the query for a more efficient retrieval. This will consume LLM tokens and make the request slower."
1579
1594
  ),
1580
1595
  )
1596
+ chat_history_relevance_threshold: Optional[
1597
+ Annotated[
1598
+ float,
1599
+ Field(
1600
+ ge=0.0,
1601
+ le=1.0,
1602
+ description=(
1603
+ "Threshold to determine if the past chat history is relevant to rephrase the user's question. "
1604
+ "0 - Always treat previous messages as relevant (always rephrase)."
1605
+ "1 – Always treat previous messages as irrelevant (never rephrase)."
1606
+ "Values in between adjust the sensitivity."
1607
+ ),
1608
+ ),
1609
+ ]
1610
+ ] = None
1581
1611
 
1582
1612
  prefer_markdown: bool = Field(
1583
1613
  default=False,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: nucliadb_models
3
- Version: 6.4.0.post4265
3
+ Version: 6.4.0.post4276
4
4
  Author-email: Nuclia <nucliadb@nuclia.com>
5
5
  License: AGPL
6
6
  Project-URL: Homepage, https://nuclia.com
@@ -16,7 +16,7 @@ nucliadb_models/notifications.py,sha256=jr2J3zncs880jYf2oZHYt0VFcnlZevsbkyX69ovT
16
16
  nucliadb_models/processing.py,sha256=UeU-VxbBlOzkNxviOS3a0X_k7Ye-jYu3UOdGuu21M8M,971
17
17
  nucliadb_models/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
18
18
  nucliadb_models/resource.py,sha256=cjYloaRuCJFc3lGIxLZcX959oOq_N1f3V9bpPMYv4WA,9255
19
- nucliadb_models/search.py,sha256=Eq4Q6Xb4Tz_PQHAAKExJ2cdsjKYARWb1c5N_btNXp2I,84340
19
+ nucliadb_models/search.py,sha256=Emf02fKF9cmOOZBXk4LYpJGkiMl4hkNSTUPAtS8j86A,85538
20
20
  nucliadb_models/security.py,sha256=RewdzQ55nPZ9V7B0NX9KHeWg6B4Hg_RkeiFv2TQyrjs,1402
21
21
  nucliadb_models/synonyms.py,sha256=qXTPHfspMgw22hCjAOdFOIoUsRZ7Ju3JW-Lw9Nz4VaI,942
22
22
  nucliadb_models/text.py,sha256=dr-ckEIK0a8c5u-7uO1wpund_8KKb_4T79Au4Lfv-Bo,3150
@@ -32,7 +32,7 @@ nucliadb_models/graph/responses.py,sha256=3aimAHrd3YW1BXHU_ZXRoidlccRtkCcREkfCNo
32
32
  nucliadb_models/internal/__init__.py,sha256=cp15ZcFnHvpcu_5-aK2A4uUyvuZVV_MJn4bIXMa20ks,835
33
33
  nucliadb_models/internal/predict.py,sha256=5rgUPrH_98gerySOZ-TR2PX_qzCGF1_8VxyOu3bGhis,2281
34
34
  nucliadb_models/internal/shards.py,sha256=bcnkxF_zViHZfT6WTAMBcWgY3UV-OAV65cVdSqGkcHY,1943
35
- nucliadb_models-6.4.0.post4265.dist-info/METADATA,sha256=t45eYQsz8Y7waNfmXhdtU6A_qCRBBddctYfwugEaOy0,759
36
- nucliadb_models-6.4.0.post4265.dist-info/WHEEL,sha256=DnLRTWE75wApRYVsjgc6wsVswC54sMSJhAEd4xhDpBk,91
37
- nucliadb_models-6.4.0.post4265.dist-info/top_level.txt,sha256=UrY1I8oeovIRwkXLYplssTrxQdUjhSEFDFbnwaIV3tA,16
38
- nucliadb_models-6.4.0.post4265.dist-info/RECORD,,
35
+ nucliadb_models-6.4.0.post4276.dist-info/METADATA,sha256=uYZvP0O1UfJ_GK-IbHWG4s8d43MDADYMgKQzLCfRTUw,759
36
+ nucliadb_models-6.4.0.post4276.dist-info/WHEEL,sha256=DnLRTWE75wApRYVsjgc6wsVswC54sMSJhAEd4xhDpBk,91
37
+ nucliadb_models-6.4.0.post4276.dist-info/top_level.txt,sha256=UrY1I8oeovIRwkXLYplssTrxQdUjhSEFDFbnwaIV3tA,16
38
+ nucliadb_models-6.4.0.post4276.dist-info/RECORD,,