local-deep-research 0.3.10__py3-none-any.whl → 0.3.11__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.
- local_deep_research/__version__.py +1 -1
- local_deep_research/defaults/default_settings.json +17 -4
- local_deep_research/web/services/research_service.py +2 -2
- local_deep_research/web_search_engines/engines/full_search.py +1 -1
- local_deep_research/web_search_engines/engines/search_engine_searxng.py +23 -8
- {local_deep_research-0.3.10.dist-info → local_deep_research-0.3.11.dist-info}/METADATA +28 -20
- {local_deep_research-0.3.10.dist-info → local_deep_research-0.3.11.dist-info}/RECORD +10 -10
- {local_deep_research-0.3.10.dist-info → local_deep_research-0.3.11.dist-info}/WHEEL +0 -0
- {local_deep_research-0.3.10.dist-info → local_deep_research-0.3.11.dist-info}/entry_points.txt +0 -0
- {local_deep_research-0.3.10.dist-info → local_deep_research-0.3.11.dist-info}/licenses/LICENSE +0 -0
@@ -1 +1 @@
|
|
1
|
-
__version__ = "0.3.
|
1
|
+
__version__ = "0.3.11"
|
@@ -3029,16 +3029,29 @@
|
|
3029
3029
|
},
|
3030
3030
|
"search.engine.web.searxng.default_params.safe_search": {
|
3031
3031
|
"category": "searxng",
|
3032
|
-
"description": "
|
3032
|
+
"description": "Configure the safe search level",
|
3033
3033
|
"editable": true,
|
3034
3034
|
"max_value": null,
|
3035
3035
|
"min_value": null,
|
3036
3036
|
"name": "Safe Search",
|
3037
|
-
"options":
|
3037
|
+
"options": [
|
3038
|
+
{
|
3039
|
+
"label": "Off",
|
3040
|
+
"value": "OFF"
|
3041
|
+
},
|
3042
|
+
{
|
3043
|
+
"label": "Moderate",
|
3044
|
+
"value": "MODERATE"
|
3045
|
+
},
|
3046
|
+
{
|
3047
|
+
"label": "Strict",
|
3048
|
+
"value": "STRICT"
|
3049
|
+
}
|
3050
|
+
],
|
3038
3051
|
"step": null,
|
3039
3052
|
"type": "SEARCH",
|
3040
|
-
"ui_element": "
|
3041
|
-
"value":
|
3053
|
+
"ui_element": "select",
|
3054
|
+
"value": "OFF",
|
3042
3055
|
"visible": true
|
3043
3056
|
},
|
3044
3057
|
"search.engine.web.searxng.full_search_class": {
|
@@ -530,7 +530,7 @@ def run_research_process(
|
|
530
530
|
report_path = os.path.join(
|
531
531
|
OUTPUT_DIR,
|
532
532
|
f"quick_summary_{safe_query}_"
|
533
|
-
f"{datetime.now().
|
533
|
+
f"{int(datetime.now().timestamp())}.md",
|
534
534
|
)
|
535
535
|
|
536
536
|
# Send progress update for writing to file
|
@@ -643,7 +643,7 @@ def run_research_process(
|
|
643
643
|
safe_query = safe_query.replace(" ", "_").lower()
|
644
644
|
report_path = os.path.join(
|
645
645
|
OUTPUT_DIR,
|
646
|
-
f"detailed_report_{safe_query}_{datetime.now().
|
646
|
+
f"detailed_report_{safe_query}_{int(datetime.now().timestamp())}.md",
|
647
647
|
)
|
648
648
|
|
649
649
|
with open(report_path, "w", encoding="utf-8") as f:
|
@@ -1,3 +1,4 @@
|
|
1
|
+
import enum
|
1
2
|
import logging
|
2
3
|
import os
|
3
4
|
import time
|
@@ -15,6 +16,17 @@ logging.basicConfig(level=logging.INFO)
|
|
15
16
|
logger = logging.getLogger(__name__)
|
16
17
|
|
17
18
|
|
19
|
+
@enum.unique
|
20
|
+
class SafeSearchSetting(enum.IntEnum):
|
21
|
+
"""
|
22
|
+
Acceptable settings for safe search.
|
23
|
+
"""
|
24
|
+
|
25
|
+
OFF = 0
|
26
|
+
MODERATE = 1
|
27
|
+
STRICT = 2
|
28
|
+
|
29
|
+
|
18
30
|
class SearXNGSearchEngine(BaseSearchEngine):
|
19
31
|
"""
|
20
32
|
SearXNG search engine implementation that requires an instance URL provided via
|
@@ -29,7 +41,7 @@ class SearXNGSearchEngine(BaseSearchEngine):
|
|
29
41
|
categories: Optional[List[str]] = None,
|
30
42
|
engines: Optional[List[str]] = None,
|
31
43
|
language: str = "en",
|
32
|
-
safe_search:
|
44
|
+
safe_search: str = SafeSearchSetting.OFF.name,
|
33
45
|
time_range: Optional[str] = None,
|
34
46
|
delay_between_requests: float = 0.0,
|
35
47
|
llm: Optional[BaseLLM] = None,
|
@@ -89,7 +101,14 @@ class SearXNGSearchEngine(BaseSearchEngine):
|
|
89
101
|
self.categories = categories or ["general"]
|
90
102
|
self.engines = engines
|
91
103
|
self.language = language
|
92
|
-
|
104
|
+
try:
|
105
|
+
self.safe_search = SafeSearchSetting[safe_search]
|
106
|
+
except ValueError:
|
107
|
+
logger.error(
|
108
|
+
"'{}' is not a valid safe search setting. Disabling safe search",
|
109
|
+
safe_search,
|
110
|
+
)
|
111
|
+
self.safe_search = SafeSearchSetting.OFF
|
93
112
|
self.time_range = time_range
|
94
113
|
|
95
114
|
self.delay_between_requests = float(
|
@@ -114,11 +133,7 @@ class SearXNGSearchEngine(BaseSearchEngine):
|
|
114
133
|
max_results=max_results,
|
115
134
|
region="wt-wt",
|
116
135
|
time="y",
|
117
|
-
safesearch=
|
118
|
-
"Moderate"
|
119
|
-
if safe_search == 1
|
120
|
-
else "Off" if safe_search == 0 else "Strict"
|
121
|
-
),
|
136
|
+
safesearch=self.safe_search.value,
|
122
137
|
)
|
123
138
|
|
124
139
|
self.last_request_time = 0
|
@@ -177,7 +192,7 @@ class SearXNGSearchEngine(BaseSearchEngine):
|
|
177
192
|
"language": self.language,
|
178
193
|
"format": "html", # Use HTML format instead of JSON
|
179
194
|
"pageno": 1,
|
180
|
-
"safesearch": self.safe_search,
|
195
|
+
"safesearch": self.safe_search.value,
|
181
196
|
"count": self.max_results,
|
182
197
|
}
|
183
198
|
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: local-deep-research
|
3
|
-
Version: 0.3.
|
3
|
+
Version: 0.3.11
|
4
4
|
Summary: AI-powered research assistant with deep, iterative analysis using LLMs and web searches
|
5
5
|
Author-Email: LearningCircuit <185559241+LearningCircuit@users.noreply.github.com>, HashedViking <6432677+HashedViking@users.noreply.github.com>
|
6
6
|
License: MIT License
|
@@ -108,34 +108,42 @@ Local Deep Research combines the power of large language models with intelligent
|
|
108
108
|
|
109
109
|
### Option 1: Docker (Recommended)
|
110
110
|
|
111
|
+
LDR uses Docker compose to bundle the web app and all it's dependencies so
|
112
|
+
you can get up and running quickly.
|
113
|
+
|
114
|
+
### Prerequisites
|
115
|
+
|
116
|
+
- [Docker](https://docs.docker.com/engine/install/)
|
117
|
+
- [Docker Compose](https://docs.docker.com/compose/install/)
|
118
|
+
- `cookiecutter`: Run `pip install --user cookiecutter`
|
119
|
+
|
120
|
+
Clone the repository:
|
121
|
+
|
111
122
|
```bash
|
112
|
-
|
113
|
-
|
114
|
-
|
123
|
+
git clone https://github.com/LearningCircuit/local-deep-research.git
|
124
|
+
cd local-deep-research
|
125
|
+
```
|
115
126
|
|
116
|
-
|
117
|
-
docker pull localdeepresearch/local-deep-research
|
118
|
-
docker run -d -p 5000:5000 --name local-deep-research localdeepresearch/local-deep-research
|
127
|
+
### Configuring with Docker Compose
|
119
128
|
|
120
|
-
|
121
|
-
|
129
|
+
In the LDR repository, run the following command
|
130
|
+
to do generate the compose file:
|
122
131
|
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
# docker exec -it ollama ollama pull gemma3:12b
|
132
|
+
```bash
|
133
|
+
cookiecutter cookiecutter-docker/
|
134
|
+
```
|
127
135
|
|
128
|
-
|
129
|
-
docker
|
130
|
-
|
131
|
-
|
136
|
+
This will prompt you to answer a series of questions. Hit Enter repeatedly
|
137
|
+
to accept the default values. It should generate a file in the repository called `docker-compose.default.yml`. To run LDR, use the following command:
|
138
|
+
|
139
|
+
```bash
|
140
|
+
docker compose -f docker-compose.default.yml up
|
132
141
|
```
|
133
142
|
|
134
143
|
Then visit `http://127.0.0.1:5000` to start researching!
|
135
144
|
|
136
|
-
|
137
|
-
|
138
|
-
> **Don't have Docker? It's installed in a few clicks: [Install Docker here](https://www.docker.com/get-started/)**
|
145
|
+
See [here](https://github.com/LearningCircuit/local-deep-research/wiki/Installation#docker-installation-recommended) for more information about
|
146
|
+
using Docker.
|
139
147
|
|
140
148
|
### Option 2: Python Package (mostly for programmatic access)
|
141
149
|
|
@@ -1,9 +1,9 @@
|
|
1
|
-
local_deep_research-0.3.
|
2
|
-
local_deep_research-0.3.
|
3
|
-
local_deep_research-0.3.
|
4
|
-
local_deep_research-0.3.
|
1
|
+
local_deep_research-0.3.11.dist-info/METADATA,sha256=iAN4Tz0PLv3IndAQsqk-rrBoHCuhGnce59XQv9Y1_oE,16473
|
2
|
+
local_deep_research-0.3.11.dist-info/WHEEL,sha256=tSfRZzRHthuv7vxpI4aehrdN9scLjk-dCJkPLzkHxGg,90
|
3
|
+
local_deep_research-0.3.11.dist-info/entry_points.txt,sha256=GcXS501Rjh-P80S8db7hnrQ23mS_Jg27PwpVQVO77as,113
|
4
|
+
local_deep_research-0.3.11.dist-info/licenses/LICENSE,sha256=Qg2CaTdu6SWnSqk1_JtgBPp_Da-LdqJDhT1Vt1MUc5s,1072
|
5
5
|
local_deep_research/__init__.py,sha256=9wV3oonZMEHsE_JhyZU9P0hW2Uwv47zotGlbAB_gQiA,885
|
6
|
-
local_deep_research/__version__.py,sha256=
|
6
|
+
local_deep_research/__version__.py,sha256=TESjMH0a_iUkwdfWT4nyzKizSFmmCY2omxnS2XyT97Y,23
|
7
7
|
local_deep_research/advanced_search_system/__init__.py,sha256=sGusMj4eFIrhXR6QbOM16UDKB6aI-iS4IFivKWpMlh0,234
|
8
8
|
local_deep_research/advanced_search_system/filters/__init__.py,sha256=2dXrV4skcVHI2Lb3BSL2Ajq0rnLeSw7kc1MbIynMxa4,190
|
9
9
|
local_deep_research/advanced_search_system/filters/base_filter.py,sha256=dFNQ7U2dj4bf3voT73YhcG-w9eW-BTlc4F9kstFcETY,969
|
@@ -39,7 +39,7 @@ local_deep_research/config/llm_config.py,sha256=bYxhwyjkdBlap832aWvWgHWjjPq45Oh2
|
|
39
39
|
local_deep_research/config/search_config.py,sha256=ruryPSS4Wy9-xi_02c-98KLKaELeLnZ10pnCpc0-ogg,2171
|
40
40
|
local_deep_research/defaults/.env.template,sha256=_eVCy4d_XwpGXy8n50CG3wH9xx2oqJCFKS7IbqgInDk,491
|
41
41
|
local_deep_research/defaults/__init__.py,sha256=C_0t0uZmtrVB4rM9NM9Wx8PJU5kFcT-qOHvws5W2iOg,1352
|
42
|
-
local_deep_research/defaults/default_settings.json,sha256=
|
42
|
+
local_deep_research/defaults/default_settings.json,sha256=1ov1lVSSuf5LdyIRHLnqkkc-AAuyLZr6TSNMuSXXVwg,120844
|
43
43
|
local_deep_research/migrate_db.py,sha256=S1h6Bv0OJdRW4BaH7MIMrUXBRV_yqgH2T6LVOZKTQjI,4634
|
44
44
|
local_deep_research/report_generator.py,sha256=-G3KDEbsuU3PdxDfuo5v28DIX7RE1yJCCBU2KgRbNzI,9084
|
45
45
|
local_deep_research/search_system.py,sha256=dq9US9zoB7TSiMorsrFFrSHlR6MSqE0IP3NBKB3fP8U,7830
|
@@ -65,7 +65,7 @@ local_deep_research/web/routes/api_routes.py,sha256=S0UdCmfm0v1GEM4UiSbI0PE3xUOx
|
|
65
65
|
local_deep_research/web/routes/history_routes.py,sha256=6a_8nX349viuvi1zP5S7BaPPpAh133eTi1NVWO545A8,12622
|
66
66
|
local_deep_research/web/routes/research_routes.py,sha256=zSU21oAkZnADnuhJniShd8US8hpPDiYqQxUhalJwQeU,23685
|
67
67
|
local_deep_research/web/routes/settings_routes.py,sha256=fkYLwDgcHfiHVml3ux6qCc5qFMjfnKfPcwisqhg995s,49280
|
68
|
-
local_deep_research/web/services/research_service.py,sha256=
|
68
|
+
local_deep_research/web/services/research_service.py,sha256=gsveymwt4hKKwVGU2XqFYT27GeEsmSU7EOWrvDsUtnk,39656
|
69
69
|
local_deep_research/web/services/resource_service.py,sha256=yKgOC6GEOmHqRoGzwf52e19UaGCCS1DbDbOIXgWGvGc,4378
|
70
70
|
local_deep_research/web/services/settings_manager.py,sha256=CHz_nd49BVRJiLALAjTHfmkKNy_Vr3ogCm5P-_633bk,17281
|
71
71
|
local_deep_research/web/services/settings_service.py,sha256=SgmjhMvGZjJE63hKKaqY7kPGphnUyXcQG8NFN5rTizs,3550
|
@@ -112,7 +112,7 @@ local_deep_research/web/utils/formatters.py,sha256=Gj_a0oFveNXHtvkiFe1rwlEtzYerM
|
|
112
112
|
local_deep_research/web/utils/templates.py,sha256=scBPbjUJqaFltFX37ZLsdcgPycPY7kMSew5mZWCG1H0,535
|
113
113
|
local_deep_research/web_search_engines/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
114
114
|
local_deep_research/web_search_engines/engines/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
115
|
-
local_deep_research/web_search_engines/engines/full_search.py,sha256=
|
115
|
+
local_deep_research/web_search_engines/engines/full_search.py,sha256=GoBWvFh1eJS6esGNuFoMbq7GHaDMI_pqKX2RY136IXo,4709
|
116
116
|
local_deep_research/web_search_engines/engines/meta_search_engine.py,sha256=qUFl8yw5l7sfH-BRpXXrNQ2KrQ9LsaslhG1glb2AOIM,14715
|
117
117
|
local_deep_research/web_search_engines/engines/search_engine_arxiv.py,sha256=3k8R4pyqIZf0RDMqXDw08xIGsfkp4ZR9kePDbmeuaH0,16603
|
118
118
|
local_deep_research/web_search_engines/engines/search_engine_brave.py,sha256=y1j4CSLM0Ujw1LSBiWg1ZBnc2BvrkhDCorrQLnUBVtM,9149
|
@@ -123,7 +123,7 @@ local_deep_research/web_search_engines/engines/search_engine_guardian.py,sha256=
|
|
123
123
|
local_deep_research/web_search_engines/engines/search_engine_local.py,sha256=ephjkDrQbvil6GnceW31qSt70k11REOJ9o7y-bl69-A,40857
|
124
124
|
local_deep_research/web_search_engines/engines/search_engine_local_all.py,sha256=vznpusmCBY9bLjD8EPrVhCb_8RZ8e9Wa8x386zv0pcM,5681
|
125
125
|
local_deep_research/web_search_engines/engines/search_engine_pubmed.py,sha256=O99qfbSz7RHqinAP_C0iod-ZaEGE5tyBbh1DJi2-VhQ,38495
|
126
|
-
local_deep_research/web_search_engines/engines/search_engine_searxng.py,sha256=
|
126
|
+
local_deep_research/web_search_engines/engines/search_engine_searxng.py,sha256=viCD1CVSym8als_o7LHbzwYlJ4jQIUPmmCxcXLjW4P4,18043
|
127
127
|
local_deep_research/web_search_engines/engines/search_engine_semantic_scholar.py,sha256=jYs_TRM0izMfldsZ8NkCQsP-o6vCPXUjyxt0nIsxOVI,22799
|
128
128
|
local_deep_research/web_search_engines/engines/search_engine_serpapi.py,sha256=OnoYL89WX1qWC6mOosSdgbJ-rXcIFmCVdrd6-qg7xes,8711
|
129
129
|
local_deep_research/web_search_engines/engines/search_engine_wayback.py,sha256=rfRs7WJxa-H1DXSyduFHBMfpFwWEVRXLd8s_78iU8gU,17894
|
@@ -131,4 +131,4 @@ local_deep_research/web_search_engines/engines/search_engine_wikipedia.py,sha256
|
|
131
131
|
local_deep_research/web_search_engines/search_engine_base.py,sha256=PLU_sAWhWKTOQWcv32GINuhLdIwB0sEQy-pp9oG9Ggo,9835
|
132
132
|
local_deep_research/web_search_engines/search_engine_factory.py,sha256=DghAkQvLKRJYl5xb9AUjUv7ydAQ4rPi-TvzrmqdyGxE,10890
|
133
133
|
local_deep_research/web_search_engines/search_engines_config.py,sha256=UAE6TfxFXrt-RvSfGQ_FRsOGGrsSs8VI3n1i-0Lfo2s,4929
|
134
|
-
local_deep_research-0.3.
|
134
|
+
local_deep_research-0.3.11.dist-info/RECORD,,
|
File without changes
|
{local_deep_research-0.3.10.dist-info → local_deep_research-0.3.11.dist-info}/entry_points.txt
RENAMED
File without changes
|
{local_deep_research-0.3.10.dist-info → local_deep_research-0.3.11.dist-info}/licenses/LICENSE
RENAMED
File without changes
|