local-deep-research 0.4.2__py3-none-any.whl → 0.4.3__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/web/services/settings_manager.py +4 -2
- local_deep_research/web_search_engines/search_engines_config.py +3 -11
- {local_deep_research-0.4.2.dist-info → local_deep_research-0.4.3.dist-info}/METADATA +1 -1
- {local_deep_research-0.4.2.dist-info → local_deep_research-0.4.3.dist-info}/RECORD +8 -8
- {local_deep_research-0.4.2.dist-info → local_deep_research-0.4.3.dist-info}/WHEEL +0 -0
- {local_deep_research-0.4.2.dist-info → local_deep_research-0.4.3.dist-info}/entry_points.txt +0 -0
- {local_deep_research-0.4.2.dist-info → local_deep_research-0.4.3.dist-info}/licenses/LICENSE +0 -0
@@ -1 +1 @@
|
|
1
|
-
__version__ = "0.4.
|
1
|
+
__version__ = "0.4.3"
|
@@ -4,7 +4,7 @@ import os
|
|
4
4
|
from typing import Any, Dict, Optional, Type, Union
|
5
5
|
|
6
6
|
from loguru import logger
|
7
|
-
from sqlalchemy import func
|
7
|
+
from sqlalchemy import func, or_
|
8
8
|
from sqlalchemy.exc import SQLAlchemyError
|
9
9
|
from sqlalchemy.orm import Session
|
10
10
|
|
@@ -138,7 +138,9 @@ class SettingsManager:
|
|
138
138
|
settings = (
|
139
139
|
self.db_session.query(Setting)
|
140
140
|
# This will find exact matches and any subkeys.
|
141
|
-
.filter(
|
141
|
+
.filter(
|
142
|
+
or_(Setting.key == key, Setting.key.startswith(f"{key}."))
|
143
|
+
).all()
|
142
144
|
)
|
143
145
|
if len(settings) == 1:
|
144
146
|
# This is a bottom-level key.
|
@@ -4,20 +4,12 @@ Loads search engine definitions from the user's configuration.
|
|
4
4
|
"""
|
5
5
|
|
6
6
|
import json
|
7
|
-
|
8
|
-
import logging
|
9
|
-
from typing import Any, Dict, List
|
10
|
-
|
11
|
-
from ..utilities.db_utils import get_db_setting
|
12
|
-
from .default_search_engines import get_default_elasticsearch_config
|
13
|
-
|
14
|
-
from functools import cache
|
15
7
|
from typing import Any, Dict, List
|
16
8
|
|
17
9
|
from loguru import logger
|
18
10
|
|
19
|
-
|
20
11
|
from ..utilities.db_utils import get_db_setting
|
12
|
+
from .default_search_engines import get_default_elasticsearch_config
|
21
13
|
|
22
14
|
|
23
15
|
def _extract_per_engine_config(raw_config: Dict[str, Any]) -> Dict[str, Dict[str, Any]]:
|
@@ -69,7 +61,7 @@ def search_config() -> Dict[str, Any]:
|
|
69
61
|
# Add alias for 'auto' if it exists
|
70
62
|
if "auto" in search_engines and "meta" not in search_engines:
|
71
63
|
search_engines["meta"] = search_engines["auto"]
|
72
|
-
|
64
|
+
|
73
65
|
# Add Elasticsearch search engine if not already present
|
74
66
|
if "elasticsearch" not in search_engines:
|
75
67
|
logger.info("Adding default Elasticsearch search engine configuration")
|
@@ -91,7 +83,7 @@ def search_config() -> Dict[str, Any]:
|
|
91
83
|
config["paths"] = json.loads(config["paths"])
|
92
84
|
except json.decoder.JSONDecodeError:
|
93
85
|
logger.error(
|
94
|
-
f"
|
86
|
+
f"Path for local collection '{collection}' is not a valid JSON array: "
|
95
87
|
f"{config['paths']}"
|
96
88
|
)
|
97
89
|
config["paths"] = []
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: local-deep-research
|
3
|
-
Version: 0.4.
|
3
|
+
Version: 0.4.3
|
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
|
@@ -1,9 +1,9 @@
|
|
1
|
-
local_deep_research-0.4.
|
2
|
-
local_deep_research-0.4.
|
3
|
-
local_deep_research-0.4.
|
4
|
-
local_deep_research-0.4.
|
1
|
+
local_deep_research-0.4.3.dist-info/METADATA,sha256=8xlBwQ1wxZeZkbPKoHikLxTfWk2fkRoGdkCgX4e50l8,17352
|
2
|
+
local_deep_research-0.4.3.dist-info/WHEEL,sha256=tSfRZzRHthuv7vxpI4aehrdN9scLjk-dCJkPLzkHxGg,90
|
3
|
+
local_deep_research-0.4.3.dist-info/entry_points.txt,sha256=GcXS501Rjh-P80S8db7hnrQ23mS_Jg27PwpVQVO77as,113
|
4
|
+
local_deep_research-0.4.3.dist-info/licenses/LICENSE,sha256=Qg2CaTdu6SWnSqk1_JtgBPp_Da-LdqJDhT1Vt1MUc5s,1072
|
5
5
|
local_deep_research/__init__.py,sha256=BPWOE6L1vBgBshHlyzrrp0gYo6uR3ljiNBFDRK_3aIw,911
|
6
|
-
local_deep_research/__version__.py,sha256=
|
6
|
+
local_deep_research/__version__.py,sha256=Nyg0pmk5ea9-SLCAFEIF96ByFx4-TJFtrqYPN-Zn6g4,22
|
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=58Ux0ppXafL8Vy2qbWioUBMqGtK1dgtSF5A68BP8M8Y,1010
|
@@ -108,7 +108,7 @@ local_deep_research/web/routes/research_routes.py,sha256=RkuT6VA5BlKzfeFzp3HvoEQ
|
|
108
108
|
local_deep_research/web/routes/settings_routes.py,sha256=Yt4xVt6XcGPSEFuAkcQ4zlZ2r5dIbV3VNsWIXoGeflw,58606
|
109
109
|
local_deep_research/web/services/research_service.py,sha256=kHdonXtGDTSU2_jBlCP_deqMdydhxA_p7EabsR5kBkE,38812
|
110
110
|
local_deep_research/web/services/resource_service.py,sha256=yKgOC6GEOmHqRoGzwf52e19UaGCCS1DbDbOIXgWGvGc,4378
|
111
|
-
local_deep_research/web/services/settings_manager.py,sha256=
|
111
|
+
local_deep_research/web/services/settings_manager.py,sha256=FKW8LKVsBGr_vgWHn1lZZRwiqRQ98ZrNicLOwf6vjPw,19058
|
112
112
|
local_deep_research/web/services/settings_service.py,sha256=-ZG78JR14GuhsaXIF4OQOqfRfrw2QIqYEKwTOFhsuFo,3497
|
113
113
|
local_deep_research/web/services/socket_service.py,sha256=jZGXk6kesBOf4bAdLiT3V4Ofod12pGKTsvxr3ml8ydY,7272
|
114
114
|
local_deep_research/web/static/css/custom_dropdown.css,sha256=-pCx6oazWVgwqFAGq_eZ8OrTKMVQlgkKYCM6w-bACLs,7949
|
@@ -173,5 +173,5 @@ local_deep_research/web_search_engines/engines/search_engine_wayback.py,sha256=r
|
|
173
173
|
local_deep_research/web_search_engines/engines/search_engine_wikipedia.py,sha256=UxYBSGD-XZGQantq_AdgtBA8FCKV0C6mEr6GS_vleQQ,10092
|
174
174
|
local_deep_research/web_search_engines/search_engine_base.py,sha256=TFmkIGgzIkXFsk9jhGn2PYyxveOWzKQLrhpZy5qaggE,10803
|
175
175
|
local_deep_research/web_search_engines/search_engine_factory.py,sha256=73lwSenv7tK7eGIBOPh13hPdn0oZ9FC0EMjZx5YRPg4,11865
|
176
|
-
local_deep_research/web_search_engines/search_engines_config.py,sha256=
|
177
|
-
local_deep_research-0.4.
|
176
|
+
local_deep_research/web_search_engines/search_engines_config.py,sha256=qfmrTZjjVeMfdZQ9WIAEWKdPPEtZhTAJ5KjCdgsz_ww,5259
|
177
|
+
local_deep_research-0.4.3.dist-info/RECORD,,
|
File without changes
|
{local_deep_research-0.4.2.dist-info → local_deep_research-0.4.3.dist-info}/entry_points.txt
RENAMED
File without changes
|
{local_deep_research-0.4.2.dist-info → local_deep_research-0.4.3.dist-info}/licenses/LICENSE
RENAMED
File without changes
|