Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions aperag/domains/knowledge_graph/service.py
Original file line number Diff line number Diff line change
Expand Up @@ -343,9 +343,7 @@ async def get_entity_detail(

db_collection = await self._get_and_validate_collection(user_id, collection_id)
backend_type = _resolve_graph_backend_type(db_collection)
store = await asyncio.to_thread(
_build_lineage_graph_store, backend_type=backend_type, collection=db_collection
)
store = await asyncio.to_thread(_build_lineage_graph_store, backend_type=backend_type, collection=db_collection)
entity = await store.get_entity(entity_name)
if entity is None:
return None
Expand Down
4 changes: 1 addition & 3 deletions aperag/graph_curation/lineage_merge.py
Original file line number Diff line number Diff line change
Expand Up @@ -518,9 +518,7 @@ def build_lineage_entity_merger_for(collection: Any) -> "LineageEntityMerger":
try:
llm = build_collection_llm_callable(collection)
except Exception as exc: # noqa: BLE001 — surface as factory failure.
raise WorkerFactoryError(
f"merge_entities: LLM not configured for collection {collection.id!r}: {exc}"
) from exc
raise WorkerFactoryError(f"merge_entities: LLM not configured for collection {collection.id!r}: {exc}") from exc

# Compactor is best-effort — the merger still runs without it
# (description stays uncompacted; embedding falls back to unified).
Expand Down
9 changes: 4 additions & 5 deletions aperag/mcp/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -567,11 +567,6 @@ def get_api_key() -> str:
# existing ``aperag.mcp.server.web_search`` access path for backward
# compatibility with callers (e.g. ``tests/unit_test/test_mcp_server.py``)
# that read attributes off the server module directly.
from aperag.mcp.tools.search_fulltext import fulltext_search # noqa: E402, F401
from aperag.mcp.tools.search_graph import graph_search # noqa: E402, F401
from aperag.mcp.tools.search_vector import vector_search # noqa: E402, F401
from aperag.mcp.tools.search_web import web_search # noqa: E402, F401

# Wave 7 §K.12.6 — graph entity search / subgraph expand / detail.
# Importing the module is what registers the three ``@mcp_server.tool``
# decorators with the FastMCP instance above.
Expand All @@ -580,6 +575,10 @@ def get_api_key() -> str:
get_entity_detail,
query_graph_entities,
)
from aperag.mcp.tools.search_fulltext import fulltext_search # noqa: E402, F401
from aperag.mcp.tools.search_graph import graph_search # noqa: E402, F401
from aperag.mcp.tools.search_vector import vector_search # noqa: E402, F401
from aperag.mcp.tools.search_web import web_search # noqa: E402, F401

# Export the server instance
__all__ = ["mcp_server"]
Loading
Loading