exa-py 1.14.17__py3-none-any.whl → 1.14.19__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 exa-py might be problematic. Click here for more details.

exa_py/api.py CHANGED
@@ -140,7 +140,7 @@ SEARCH_OPTIONS_TYPES = {
140
140
  list
141
141
  ], # Must not be present in webpage text. (One string, up to 5 words)
142
142
  "use_autoprompt": [bool], # Convert query to Exa. (Default: false)
143
- "type": [str], # 'keyword', 'neural', 'hybrid', or 'auto' (Default: auto)
143
+ "type": [str], # 'keyword', 'neural', 'hybrid', 'fast', or 'auto' (Default: auto)
144
144
  "category": [
145
145
  str
146
146
  ], # A data category to focus on: 'company', 'research paper', 'news', 'pdf', 'github', 'tweet', 'personal site', 'linkedin profile', 'financial report'
@@ -1251,7 +1251,7 @@ class Exa:
1251
1251
  include_text (List[str], optional): Strings that must appear in the page text.
1252
1252
  exclude_text (List[str], optional): Strings that must not appear in the page text.
1253
1253
  use_autoprompt (bool, optional): Convert query to Exa (default False).
1254
- type (str, optional): 'keyword', 'neural', or 'hybrid' (default 'neural').
1254
+ type (str, optional): 'keyword', 'neural', 'hybrid', or 'fast' (default 'neural').
1255
1255
  category (str, optional): e.g. 'company'
1256
1256
  flags (List[str], optional): Experimental flags for Exa usage.
1257
1257
  moderation (bool, optional): If True, the search results will be moderated for safety.
@@ -2463,7 +2463,7 @@ class AsyncExa(Exa):
2463
2463
  include_text (List[str], optional): Strings that must appear in the page text.
2464
2464
  exclude_text (List[str], optional): Strings that must not appear in the page text.
2465
2465
  use_autoprompt (bool, optional): Convert query to Exa (default False).
2466
- type (str, optional): 'keyword', 'neural', or 'hybrid' (default 'neural').
2466
+ type (str, optional): 'keyword', 'neural', 'hybrid', or 'fast' (default 'neural').
2467
2467
  category (str, optional): e.g. 'company'
2468
2468
  flags (List[str], optional): Experimental flags for Exa usage.
2469
2469
  moderation (bool, optional): If True, the search results will be moderated for safety.
exa_py/websets/types.py CHANGED
@@ -173,7 +173,7 @@ class CreateWebsetSearchParameters(ExaBaseModel):
173
173
  """
174
174
  scope: Optional[List[ScopeItem]] = None
175
175
  """
176
- Limit the search to specific sources (existing imports). Any results found within these sources matching the search criteria will be included in the Webset.
176
+ Limit the search to specific sources (existing imports or websets). Any results found within these sources matching the search criteria will be included in the Webset.
177
177
  """
178
178
  behavior: Optional[WebsetSearchBehavior] = WebsetSearchBehavior.override
179
179
  """
@@ -305,6 +305,7 @@ class ScopeSourceType(Enum):
305
305
  The source type for scope filtering.
306
306
  """
307
307
  import_ = 'import'
308
+ webset = 'webset'
308
309
 
309
310
 
310
311
  class PreviewWebsetResponseEnrichmentsFormat(Enum):
@@ -466,6 +467,20 @@ class ExcludeItem(ExaBaseModel):
466
467
  """
467
468
 
468
469
 
470
+ class ScopeRelationship(ExaBaseModel):
471
+ """
472
+ Represents the relationship between entities for scoped searches.
473
+ """
474
+ definition: str
475
+ """
476
+ What the relationship of the entities you hope to find is relative to the entities contained in the provided source
477
+ """
478
+ limit: Optional[PositiveInt] = None
479
+ """
480
+ Optional limit on the number of related entities to find
481
+ """
482
+
483
+
469
484
  class ScopeItem(ExaBaseModel):
470
485
  """
471
486
  Represents a source to limit search scope to.
@@ -478,6 +493,10 @@ class ScopeItem(ExaBaseModel):
478
493
  """
479
494
  The ID of the source to search within
480
495
  """
496
+ relationship: Optional[ScopeRelationship] = None
497
+ """
498
+ Optional relationship definition for hop searches
499
+ """
481
500
 
482
501
 
483
502
  class PreviewWebsetParameters(ExaBaseModel):
@@ -1662,12 +1681,53 @@ class WebsetResearchPaperEntity(ExaBaseModel):
1662
1681
  type: Literal['research_paper']
1663
1682
 
1664
1683
 
1684
+ class WebsetSearchRecallConfidence(Enum):
1685
+ """
1686
+ Confidence level for search recall estimates.
1687
+ """
1688
+ high = 'high'
1689
+ medium = 'medium'
1690
+ low = 'low'
1691
+
1692
+
1693
+ class WebsetSearchRecallExpected(ExaBaseModel):
1694
+ """
1695
+ Expected search recall information.
1696
+ """
1697
+ total: int
1698
+ """
1699
+ Total expected matches
1700
+ """
1701
+ confidence: WebsetSearchRecallConfidence
1702
+ """
1703
+ Confidence level of the estimate
1704
+ """
1705
+
1706
+
1707
+ class WebsetSearchRecall(ExaBaseModel):
1708
+ """
1709
+ Search recall estimate information.
1710
+ """
1711
+ expected: WebsetSearchRecallExpected
1712
+ """
1713
+ Expected recall information
1714
+ """
1715
+ reasoning: str
1716
+ """
1717
+ Reasoning for the recall estimate
1718
+ """
1719
+
1720
+
1665
1721
  class WebsetSearch(ExaBaseModel):
1666
1722
  id: str
1667
1723
  """
1668
1724
  The unique identifier for the search
1669
1725
  """
1670
1726
  object: Literal['webset_search']
1727
+ webset_id: Annotated[str, Field(alias='websetId')]
1728
+ """
1729
+ The unique identifier for the Webset this search belongs to
1730
+ """
1671
1731
  status: WebsetSearchStatus = Field(..., title='WebsetSearchStatus')
1672
1732
  """
1673
1733
  The status of the search
@@ -1703,10 +1763,22 @@ class WebsetSearch(ExaBaseModel):
1703
1763
  - `override`: the search will replace the existing Items found in the Webset and evaluate them against the new criteria. Any Items that don't match the new criteria will be discarded.
1704
1764
  - `append`: the search will add the new Items found to the existing Webset. Any Items that don't match the new criteria will be discarded.
1705
1765
  """
1766
+ exclude: Optional[List[ExcludeItem]] = None
1767
+ """
1768
+ Sources (existing imports or websets) used to omit certain results to be found during the search.
1769
+ """
1770
+ scope: Optional[List[ScopeItem]] = None
1771
+ """
1772
+ The scope of the search. By default, there is no scope - thus searching the web. If provided during creation, the search will only be performed on the sources provided.
1773
+ """
1706
1774
  progress: Progress
1707
1775
  """
1708
1776
  The progress of the search
1709
1777
  """
1778
+ recall: Optional[WebsetSearchRecall] = None
1779
+ """
1780
+ Estimate of total potential matches (if requested)
1781
+ """
1710
1782
  metadata: Optional[Dict[str, Any]] = {}
1711
1783
  """
1712
1784
  Set of key-value pairs you want to associate with this object.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: exa-py
3
- Version: 1.14.17
3
+ Version: 1.14.19
4
4
  Summary: Python SDK for Exa API.
5
5
  License: MIT
6
6
  Author: Exa AI
@@ -1,5 +1,5 @@
1
1
  exa_py/__init__.py,sha256=M2GC9oSdoV6m2msboW0vMWWl8wrth4o6gmEV4MYLGG8,66
2
- exa_py/api.py,sha256=S2GfFiUSQrogwqSWqQvN2w6wb4yrbZAmgERI6NntjSQ,106657
2
+ exa_py/api.py,sha256=82uLarnXTTX2KPrvWsvVQRqUS2ZT2gt0ert0joDD-yU,106681
3
3
  exa_py/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
4
  exa_py/research/__init__.py,sha256=QeY-j6bP4QP5tF9ytX0IeQhJvd0Wn4cJCD69U8pP7kA,271
5
5
  exa_py/research/client.py,sha256=mnoTA4Qoa0TA5d8nVTR9tAU9LJElXV-MlPozgMxlUp4,12799
@@ -24,9 +24,9 @@ exa_py/websets/monitors/runs/__init__.py,sha256=TmcETf3zdQouA_vAeLiosCNL1MYJnZ0y
24
24
  exa_py/websets/monitors/runs/client.py,sha256=WnwcWCf7UKk68VCNUp8mRXBtlU8vglTSX-eoWVXzKIw,1229
25
25
  exa_py/websets/searches/__init__.py,sha256=_0Zx8ES5fFTEL3T8mhLxq_xK2t0JONx6ad6AtbvClsE,77
26
26
  exa_py/websets/searches/client.py,sha256=X3f7axWGfecmxf-2tBTX0Yf_--xToz1X8ZHbbudEzy0,1790
27
- exa_py/websets/types.py,sha256=KtBX_5yOu01R3sAZBFDv1Qaqan33rNdMF6AtdAmQHFc,45223
27
+ exa_py/websets/types.py,sha256=DxO_T4Ijnd06gxFAX3f238Mt5P0_ulpY44M1kiT4y4U,47120
28
28
  exa_py/websets/webhooks/__init__.py,sha256=iTPBCxFd73z4RifLQMX6iRECx_6pwlI5qscLNjMOUHE,77
29
29
  exa_py/websets/webhooks/client.py,sha256=zS1eoWKliuiY4AIeFJdpAlPZeOINyphn7KEWANF-zaE,4384
30
- exa_py-1.14.17.dist-info/METADATA,sha256=r8tMRxGsjX6R8QGh-gJxJ2VqBx5K7Sl0rij0UeLX950,3827
31
- exa_py-1.14.17.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
32
- exa_py-1.14.17.dist-info/RECORD,,
30
+ exa_py-1.14.19.dist-info/METADATA,sha256=l_SaYT4cgVkMztfTIJm696WkuPNqZPJ4toB2rN3-yvs,3827
31
+ exa_py-1.14.19.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
32
+ exa_py-1.14.19.dist-info/RECORD,,