nucliadb-models 6.4.1.post4335__py3-none-any.whl → 6.4.1.post4337__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
@@ -604,14 +604,14 @@ class SearchParamDefaults:
604
604
  )
605
605
  chat_context = ParamDefault(
606
606
  default=None,
607
- title="Chat history",
607
+ title="Chat context (deprecated)",
608
608
  description="DEPRECATED! Please, use `chat_history` instead.",
609
609
  deprecated=True,
610
610
  )
611
611
  chat_history = ParamDefault(
612
612
  default=None,
613
613
  title="Chat history",
614
- description="Use to rephrase the new LLM query by taking into account the chat conversation history", # noqa: E501
614
+ description="Use to rephrase the new LLM query by taking into account the chat conversation history. This will be passed to the LLM so that it is aware of the previous conversation.", # noqa: E501
615
615
  )
616
616
  chat_features = ParamDefault(
617
617
  default=[ChatOptions.SEMANTIC, ChatOptions.KEYWORD],
@@ -1590,21 +1590,17 @@ If empty, the default strategy is used, which simply adds the text of the matchi
1590
1590
  "Rephrase the query for a more efficient retrieval. This will consume LLM tokens and make the request slower."
1591
1591
  ),
1592
1592
  )
1593
- chat_history_relevance_threshold: Optional[
1594
- Annotated[
1595
- float,
1596
- Field(
1597
- ge=0.0,
1598
- le=1.0,
1599
- description=(
1600
- "Threshold to determine if the past chat history is relevant to rephrase the user's question. "
1601
- "0 - Always treat previous messages as relevant (always rephrase)."
1602
- "1 – Always treat previous messages as irrelevant (never rephrase)."
1603
- "Values in between adjust the sensitivity."
1604
- ),
1605
- ),
1606
- ]
1607
- ] = None
1593
+ chat_history_relevance_threshold: Optional[float] = Field(
1594
+ default=None,
1595
+ ge=0.0,
1596
+ le=1.0,
1597
+ description=(
1598
+ "Threshold to determine if the past chat history is relevant to rephrase the user's question. "
1599
+ "0 - Always treat previous messages as relevant (always rephrase)."
1600
+ "1 - Always treat previous messages as irrelevant (never rephrase)."
1601
+ "Values in between adjust the sensitivity."
1602
+ ),
1603
+ )
1608
1604
 
1609
1605
  prefer_markdown: bool = Field(
1610
1606
  default=False,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: nucliadb_models
3
- Version: 6.4.1.post4335
3
+ Version: 6.4.1.post4337
4
4
  Author-email: Nuclia <nucliadb@nuclia.com>
5
5
  License-Expression: Apache-2.0
6
6
  Project-URL: Homepage, https://nuclia.com
@@ -16,7 +16,7 @@ nucliadb_models/notifications.py,sha256=3w1HeX9F8nuA7WupHdpXIksX7d0bHO9ofmemYp4R
16
16
  nucliadb_models/processing.py,sha256=nhKuHQjqCdb9zJVkYGPTLub23tK9e_lwL5OCDVymZjY,719
17
17
  nucliadb_models/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
18
18
  nucliadb_models/resource.py,sha256=FkhwmbjoqQBGyKQIqa40WK2Vq3wtryZeIVWmJ4b-84g,9003
19
- nucliadb_models/search.py,sha256=KWSg0M6Julpvtbmz3hmP-5-Qcp-cEV563or75Bprc40,85432
19
+ nucliadb_models/search.py,sha256=K__IKs-dDbJwvYNiodSM-6CVtZOs1PlEPtxi9k_uCyc,85409
20
20
  nucliadb_models/security.py,sha256=opxaDLfvk3aU0sjesK0jGrYLx5h4YCwlKKN0moYs_ig,1150
21
21
  nucliadb_models/synonyms.py,sha256=afbaVqSQSxGLwi2PusVaLSRpkOtA5AZmWOKd1f4nl2E,690
22
22
  nucliadb_models/text.py,sha256=kY2ub7AaGm-4vNaLX3Ju2VvRw-eKZ2LRdM9z7XCNaG0,2898
@@ -32,7 +32,7 @@ nucliadb_models/graph/responses.py,sha256=Sdq8OgFAL1YT-1lJyLLrkqcScvj7YTEqAUwQ-k
32
32
  nucliadb_models/internal/__init__.py,sha256=zG33bUz1rHFPtvqQPWn4rDwBJt3FJodGuQYD45quiQg,583
33
33
  nucliadb_models/internal/predict.py,sha256=Pnx6MmLfK65eExe1XnVxqmSlvMwdowewwks9BOEoqMw,2029
34
34
  nucliadb_models/internal/shards.py,sha256=__y1OZtWGiNcPQEWfSFOj8yw458WGi7mM4vZe0K-L1Y,1691
35
- nucliadb_models-6.4.1.post4335.dist-info/METADATA,sha256=R3sQw1HSnX9XpGYkV9j_Vuo2BfMzeNoOQNUP0sZkVvY,776
36
- nucliadb_models-6.4.1.post4335.dist-info/WHEEL,sha256=zaaOINJESkSfm_4HQVc5ssNzHCPXhJm0kEUakpsEHaU,91
37
- nucliadb_models-6.4.1.post4335.dist-info/top_level.txt,sha256=UrY1I8oeovIRwkXLYplssTrxQdUjhSEFDFbnwaIV3tA,16
38
- nucliadb_models-6.4.1.post4335.dist-info/RECORD,,
35
+ nucliadb_models-6.4.1.post4337.dist-info/METADATA,sha256=L0_quTYz0WA8izCYYKf8AYpaMeHY0WRnJWLIQGNaQ90,776
36
+ nucliadb_models-6.4.1.post4337.dist-info/WHEEL,sha256=zaaOINJESkSfm_4HQVc5ssNzHCPXhJm0kEUakpsEHaU,91
37
+ nucliadb_models-6.4.1.post4337.dist-info/top_level.txt,sha256=UrY1I8oeovIRwkXLYplssTrxQdUjhSEFDFbnwaIV3tA,16
38
+ nucliadb_models-6.4.1.post4337.dist-info/RECORD,,