lean-explore 0.1.3__tar.gz → 0.1.4__tar.gz
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.
- {lean_explore-0.1.3 → lean_explore-0.1.4}/PKG-INFO +1 -1
- {lean_explore-0.1.3 → lean_explore-0.1.4}/pyproject.toml +1 -1
- {lean_explore-0.1.3 → lean_explore-0.1.4}/src/lean_explore/local/search.py +1 -1
- {lean_explore-0.1.3 → lean_explore-0.1.4}/src/lean_explore/local/service.py +5 -9
- {lean_explore-0.1.3 → lean_explore-0.1.4}/src/lean_explore.egg-info/PKG-INFO +1 -1
- {lean_explore-0.1.3 → lean_explore-0.1.4}/LICENSE +0 -0
- {lean_explore-0.1.3 → lean_explore-0.1.4}/README.md +0 -0
- {lean_explore-0.1.3 → lean_explore-0.1.4}/setup.cfg +0 -0
- {lean_explore-0.1.3 → lean_explore-0.1.4}/src/lean_explore/__init__.py +0 -0
- {lean_explore-0.1.3 → lean_explore-0.1.4}/src/lean_explore/api/__init__.py +0 -0
- {lean_explore-0.1.3 → lean_explore-0.1.4}/src/lean_explore/api/client.py +0 -0
- {lean_explore-0.1.3 → lean_explore-0.1.4}/src/lean_explore/cli/__init__.py +0 -0
- {lean_explore-0.1.3 → lean_explore-0.1.4}/src/lean_explore/cli/agent.py +0 -0
- {lean_explore-0.1.3 → lean_explore-0.1.4}/src/lean_explore/cli/config_utils.py +0 -0
- {lean_explore-0.1.3 → lean_explore-0.1.4}/src/lean_explore/cli/data_commands.py +0 -0
- {lean_explore-0.1.3 → lean_explore-0.1.4}/src/lean_explore/cli/main.py +0 -0
- {lean_explore-0.1.3 → lean_explore-0.1.4}/src/lean_explore/defaults.py +0 -0
- {lean_explore-0.1.3 → lean_explore-0.1.4}/src/lean_explore/local/__init__.py +0 -0
- {lean_explore-0.1.3 → lean_explore-0.1.4}/src/lean_explore/mcp/__init__.py +0 -0
- {lean_explore-0.1.3 → lean_explore-0.1.4}/src/lean_explore/mcp/app.py +0 -0
- {lean_explore-0.1.3 → lean_explore-0.1.4}/src/lean_explore/mcp/server.py +0 -0
- {lean_explore-0.1.3 → lean_explore-0.1.4}/src/lean_explore/mcp/tools.py +0 -0
- {lean_explore-0.1.3 → lean_explore-0.1.4}/src/lean_explore/shared/__init__.py +0 -0
- {lean_explore-0.1.3 → lean_explore-0.1.4}/src/lean_explore/shared/models/__init__.py +0 -0
- {lean_explore-0.1.3 → lean_explore-0.1.4}/src/lean_explore/shared/models/api.py +0 -0
- {lean_explore-0.1.3 → lean_explore-0.1.4}/src/lean_explore/shared/models/db.py +0 -0
- {lean_explore-0.1.3 → lean_explore-0.1.4}/src/lean_explore.egg-info/SOURCES.txt +0 -0
- {lean_explore-0.1.3 → lean_explore-0.1.4}/src/lean_explore.egg-info/dependency_links.txt +0 -0
- {lean_explore-0.1.3 → lean_explore-0.1.4}/src/lean_explore.egg-info/entry_points.txt +0 -0
- {lean_explore-0.1.3 → lean_explore-0.1.4}/src/lean_explore.egg-info/requires.txt +0 -0
- {lean_explore-0.1.3 → lean_explore-0.1.4}/src/lean_explore.egg-info/top_level.txt +0 -0
- {lean_explore-0.1.3 → lean_explore-0.1.4}/tests/test_defaults.py +0 -0
|
@@ -52,7 +52,6 @@ class Service:
|
|
|
52
52
|
default_faiss_k (int): Default number of FAISS neighbors to retrieve.
|
|
53
53
|
default_pagerank_weight (float): Default weight for PageRank.
|
|
54
54
|
default_text_relevance_weight (float): Default weight for text relevance.
|
|
55
|
-
default_name_match_weight (float): Default weight for name matching.
|
|
56
55
|
default_semantic_similarity_threshold (float): Default similarity threshold.
|
|
57
56
|
default_results_limit (int): Default limit for search results.
|
|
58
57
|
default_faiss_nprobe (int): Default nprobe for FAISS IVF indexes.
|
|
@@ -147,7 +146,7 @@ class Service:
|
|
|
147
146
|
guidance = (
|
|
148
147
|
"Please check your database configuration or connection parameters."
|
|
149
148
|
)
|
|
150
|
-
if is_file_db:
|
|
149
|
+
if is_file_db:
|
|
151
150
|
guidance = (
|
|
152
151
|
f"The database file at '{db_path}' might be corrupted, "
|
|
153
152
|
"inaccessible, or not a valid SQLite file. "
|
|
@@ -174,7 +173,6 @@ class Service:
|
|
|
174
173
|
self.default_text_relevance_weight: float = (
|
|
175
174
|
defaults.DEFAULT_TEXT_RELEVANCE_WEIGHT
|
|
176
175
|
)
|
|
177
|
-
self.default_name_match_weight: float = defaults.DEFAULT_NAME_MATCH_WEIGHT
|
|
178
176
|
self.default_semantic_similarity_threshold: float = (
|
|
179
177
|
defaults.DEFAULT_SEM_SIM_THRESHOLD
|
|
180
178
|
)
|
|
@@ -256,7 +254,7 @@ class Service:
|
|
|
256
254
|
faiss_k=self.default_faiss_k,
|
|
257
255
|
pagerank_weight=self.default_pagerank_weight,
|
|
258
256
|
text_relevance_weight=self.default_text_relevance_weight,
|
|
259
|
-
|
|
257
|
+
log_searches=True,
|
|
260
258
|
selected_packages=package_filters,
|
|
261
259
|
semantic_similarity_threshold=(
|
|
262
260
|
self.default_semantic_similarity_threshold
|
|
@@ -314,10 +312,8 @@ class Service:
|
|
|
314
312
|
f"Database error in get_by_id for group_id {group_id}: {e}",
|
|
315
313
|
exc_info=True,
|
|
316
314
|
)
|
|
317
|
-
# For a service method, returning None on DB error might be acceptable,
|
|
318
|
-
# or raise a custom service-level exception.
|
|
319
315
|
return None
|
|
320
|
-
except Exception as e:
|
|
316
|
+
except Exception as e:
|
|
321
317
|
logger.error(
|
|
322
318
|
f"Unexpected error in get_by_id for group_id {group_id}: {e}",
|
|
323
319
|
exc_info=True,
|
|
@@ -352,7 +348,7 @@ class Service:
|
|
|
352
348
|
f"Source statement group ID {group_id} not found for "
|
|
353
349
|
"dependency lookup."
|
|
354
350
|
)
|
|
355
|
-
return None
|
|
351
|
+
return None
|
|
356
352
|
|
|
357
353
|
# Query for statement groups that `group_id` depends on (citations)
|
|
358
354
|
cited_target_groups_orm = (
|
|
@@ -385,7 +381,7 @@ class Service:
|
|
|
385
381
|
exc_info=True,
|
|
386
382
|
)
|
|
387
383
|
return None
|
|
388
|
-
except Exception as e:
|
|
384
|
+
except Exception as e:
|
|
389
385
|
logger.error(
|
|
390
386
|
f"Unexpected error in get_dependencies for "
|
|
391
387
|
f"group_id {group_id}: {e}",
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|