lumis-ai 0.1.1a2__py3-none-any.whl → 0.1.1a4__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.
- lumis/agents/research_agent/tools/search.py +2 -3
- lumis/tools/search/search_engine_client.py +8 -1
- {lumis_ai-0.1.1a2.dist-info → lumis_ai-0.1.1a4.dist-info}/METADATA +6 -9
- {lumis_ai-0.1.1a2.dist-info → lumis_ai-0.1.1a4.dist-info}/RECORD +6 -6
- {lumis_ai-0.1.1a2.dist-info → lumis_ai-0.1.1a4.dist-info}/WHEEL +0 -0
- {lumis_ai-0.1.1a2.dist-info → lumis_ai-0.1.1a4.dist-info}/licenses/LICENSE +0 -0
|
@@ -7,8 +7,6 @@ from typing import Any, Optional
|
|
|
7
7
|
from lumis.llm import Gemini
|
|
8
8
|
from lumis.tools import WikipediaSearcher
|
|
9
9
|
from lumis.tools.search.arxiv import ArxivResult, ArxivSearcher
|
|
10
|
-
|
|
11
|
-
from arxiv import SortCriterion, SortOrder
|
|
12
10
|
from tenacity import retry, retry_if_exception_type, stop_after_attempt, wait_exponential
|
|
13
11
|
|
|
14
12
|
logger = logging.getLogger(__name__)
|
|
@@ -173,7 +171,8 @@ async def search_arxiv( # noqa: C901
|
|
|
173
171
|
summary_semaphore = asyncio.Semaphore(4)
|
|
174
172
|
|
|
175
173
|
try:
|
|
176
|
-
|
|
174
|
+
from arxiv import SortCriterion, SortOrder
|
|
175
|
+
|
|
177
176
|
sort_criterion = SortCriterion(sort_by)
|
|
178
177
|
sort_order_enum = SortOrder(sort_order)
|
|
179
178
|
|
|
@@ -8,9 +8,16 @@ from typing import Literal, Optional, Sequence
|
|
|
8
8
|
|
|
9
9
|
from googlesearch import search as google_search
|
|
10
10
|
import redis.asyncio as aioredis
|
|
11
|
-
from tavily import TavilyClient, UsageLimitExceededError
|
|
12
11
|
from typing_extensions import TypedDict
|
|
13
12
|
|
|
13
|
+
try:
|
|
14
|
+
from tavili import TavilyClient, UsageLimitExceededError
|
|
15
|
+
except ImportError:
|
|
16
|
+
TavilyClient = None # type: ignore[assignment,misc]
|
|
17
|
+
|
|
18
|
+
class UsageLimitExceededError(Exception): # type: ignore[no-redef]
|
|
19
|
+
pass
|
|
20
|
+
|
|
14
21
|
logger = logging.getLogger(__name__)
|
|
15
22
|
|
|
16
23
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: lumis-ai
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.1a4
|
|
4
4
|
Summary: An AI agent framework for building LLM-powered applications
|
|
5
5
|
Project-URL: Homepage, https://github.com/tareksanger/lumis
|
|
6
6
|
Project-URL: Repository, https://github.com/tareksanger/lumis
|
|
@@ -24,6 +24,7 @@ Requires-Dist: asgiref>=3.8.1
|
|
|
24
24
|
Requires-Dist: beautifulsoup4>=4.12.0
|
|
25
25
|
Requires-Dist: deepmerge>=2.0.0
|
|
26
26
|
Requires-Dist: faiss-cpu>=1.7.0
|
|
27
|
+
Requires-Dist: google-genai>=1.61.0
|
|
27
28
|
Requires-Dist: googlesearch-python>=1.2.0
|
|
28
29
|
Requires-Dist: httpx>=0.27.0
|
|
29
30
|
Requires-Dist: huggingface-hub>=0.24.0
|
|
@@ -31,7 +32,6 @@ Requires-Dist: langchain-core>=0.3.13
|
|
|
31
32
|
Requires-Dist: langchain>=0.3.4
|
|
32
33
|
Requires-Dist: lxml>=4.9.0
|
|
33
34
|
Requires-Dist: minify-html>=0.11.0
|
|
34
|
-
Requires-Dist: neo4j>=5.25.0
|
|
35
35
|
Requires-Dist: nltk>=3.9.0
|
|
36
36
|
Requires-Dist: numpy>=1.24
|
|
37
37
|
Requires-Dist: ollama>=0.3.0
|
|
@@ -42,12 +42,11 @@ Requires-Dist: pymupdf>=1.22.0
|
|
|
42
42
|
Requires-Dist: pypdf2>=3.0.0
|
|
43
43
|
Requires-Dist: python-dateutil>=2.8.0
|
|
44
44
|
Requires-Dist: pyvis>=0.3.0
|
|
45
|
-
Requires-Dist: readability-lxml>=
|
|
45
|
+
Requires-Dist: readability-lxml>=0.8.0
|
|
46
46
|
Requires-Dist: redis>=5.0.0
|
|
47
47
|
Requires-Dist: requests>=2.28.0
|
|
48
48
|
Requires-Dist: scikit-learn>=1.0.0
|
|
49
49
|
Requires-Dist: sentence-transformers>=2.2.2
|
|
50
|
-
Requires-Dist: tavily-python>=0.3.0
|
|
51
50
|
Requires-Dist: tenacity>=9.0.0
|
|
52
51
|
Requires-Dist: textstat>=0.7.0
|
|
53
52
|
Requires-Dist: tiktoken>=0.5.0
|
|
@@ -59,13 +58,11 @@ Provides-Extra: django
|
|
|
59
58
|
Requires-Dist: django>=4.2; extra == 'django'
|
|
60
59
|
Provides-Extra: search
|
|
61
60
|
Requires-Dist: arxiv>=0.5.0; extra == 'search'
|
|
62
|
-
Requires-Dist: pytrends>=5.
|
|
61
|
+
Requires-Dist: pytrends>=4.5.0; extra == 'search'
|
|
62
|
+
Requires-Dist: tavily-python>=0.3.0; extra == 'search'
|
|
63
63
|
Requires-Dist: yfinance>=0.2.0; extra == 'search'
|
|
64
64
|
Provides-Extra: spacy
|
|
65
|
-
Requires-Dist:
|
|
66
|
-
Requires-Dist: coreferee>=1.3.0; extra == 'spacy'
|
|
67
|
-
Requires-Dist: en-core-web-lg<3.8.0,>=3.7.0; extra == 'spacy'
|
|
68
|
-
Requires-Dist: en-core-web-trf<3.8.0,>=3.7.0; extra == 'spacy'
|
|
65
|
+
Requires-Dist: pytextrank>=3.2.0; extra == 'spacy'
|
|
69
66
|
Requires-Dist: spacy-llm>=0.7.2; extra == 'spacy'
|
|
70
67
|
Requires-Dist: spacy<3.8.0,>=3.7.0; extra == 'spacy'
|
|
71
68
|
Description-Content-Type: text/markdown
|
|
@@ -13,7 +13,7 @@ lumis/agents/research_agent/source_models.py,sha256=w5cIJcqQtVTH-nDMR8m152ZPvy3_
|
|
|
13
13
|
lumis/agents/research_agent/source_tracker.py,sha256=m3SHXrV5mmg6wrDtqMGVUAHShTxJAV43hheLKAzinLQ,14361
|
|
14
14
|
lumis/agents/research_agent/types.py,sha256=bRlXThmSdZez6aT1ZXqo6KFCz0jmCmWgA-GqCgbNEdI,1767
|
|
15
15
|
lumis/agents/research_agent/tools/__init__.py,sha256=dSl8jV7BOvZzJ-1o81r25cf0Phl6PPJWAHsw71-h-Sk,166
|
|
16
|
-
lumis/agents/research_agent/tools/search.py,sha256=
|
|
16
|
+
lumis/agents/research_agent/tools/search.py,sha256=Hbm1BPriQGdq9XU2IeYN6ILl5QTAqxQhA-GvZgQgn88,12109
|
|
17
17
|
lumis/agents/storm/agent.py,sha256=wdZ4OcFuNsgBSlXaNhvz8kStEcUAnNxX8YEvV96OR8M,21899
|
|
18
18
|
lumis/agents/storm/interview_graph.py,sha256=waFYUiMsT-SHCsxEDx1qkpbJ913MztILmnMhRKwGd6o,14585
|
|
19
19
|
lumis/agents/storm/models/outline.py,sha256=4xEr_kfMlq5fbWf7mmerRYV_tKqzx-qeU1Inl1lwY4c,2152
|
|
@@ -80,11 +80,11 @@ lumis/tools/scraper.py,sha256=0iNQS2jptT093ZkOSKamvNDOQuJRBaAwM2_ztmS1w6U,13670
|
|
|
80
80
|
lumis/tools/search/__init__.py,sha256=_MGFJAeizjcX0oI9Cr0B9efTfolRbL_3QQo2ZcNUklE,283
|
|
81
81
|
lumis/tools/search/arxiv.py,sha256=ldRHo_SSyhKm7CwjCuOjxZlIhkutwu85_UD8YcXCAtI,10245
|
|
82
82
|
lumis/tools/search/pytrends.py,sha256=_tTmGMNNqSUbN3s7Scrx771KzX9nLHuYQrxFPC_nXIo,1980
|
|
83
|
-
lumis/tools/search/search_engine_client.py,sha256=
|
|
83
|
+
lumis/tools/search/search_engine_client.py,sha256=WSYOQcy1-6gQZUJXTT5lYNFJWjwLSruYuLD_GAiT0gM,11939
|
|
84
84
|
lumis/tools/search/vector_search_retrieval_engine.py,sha256=RGZyFah2F-ojFzH9xiApILK5oQWWZEuihV2EN3Ae0cc,7889
|
|
85
85
|
lumis/tools/search/wiki.py,sha256=gGm6I273KOLvDN0E7boAezjPq6cywRhbZEBqB_Pem4U,7864
|
|
86
86
|
lumis/tools/search/yahoofinance.py,sha256=0Oz7kfdWI2ehllo9NM2wKS0WSAUeGnPyuVnfobyBXHA,7851
|
|
87
|
-
lumis_ai-0.1.
|
|
88
|
-
lumis_ai-0.1.
|
|
89
|
-
lumis_ai-0.1.
|
|
90
|
-
lumis_ai-0.1.
|
|
87
|
+
lumis_ai-0.1.1a4.dist-info/METADATA,sha256=w2TTLi05kh3rtjascf-xJ8Iym78sBAN5tH42_1LElgg,4473
|
|
88
|
+
lumis_ai-0.1.1a4.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
|
|
89
|
+
lumis_ai-0.1.1a4.dist-info/licenses/LICENSE,sha256=cKZn_mblbydX1fOrVMvUIrelUE9AElKLAR_7-VYRDow,1068
|
|
90
|
+
lumis_ai-0.1.1a4.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|