mirror of
https://github.com/trustgraph-ai/trustgraph.git
synced 2026-05-18 03:45:12 +02:00
Embed edge descriptions and compute cosine similarity against grounding concepts to reduce the number of edges sent to expensive LLM scoring. Controlled by edge_score_limit parameter (default 30), skipped when edge count is already below the limit. Also plumbs edge_score_limit and edge_limit parameters end-to-end: - CLI args (--edge-score-limit, --edge-limit) in both invoke and service - Socket client: fix parameter mapping to use hyphenated wire-format keys - Flow API, message translator, gateway all pass through correctly - Explainable code path (_question_explainable_api) now forwards all params - Default edge_score_limit changed from 50 to 30 based on typical subgraph sizes |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| agent.py | ||
| collection.py | ||
| config.py | ||
| diagnosis.py | ||
| flow.py | ||
| library.py | ||
| llm.py | ||
| lookup.py | ||
| nlp_query.py | ||
| prompt.py | ||
| query.py | ||
| retrieval.py | ||
| rows_query.py | ||
| storage.py | ||
| structured_query.py | ||
| tool_service.py | ||