← Về thư mục
skills/primekg/scripts/query_primekg.py
- _load_kg · function · L10-L20 — def _load_kg()
- search_nodes · function · L22-L49 — def search_nodes(name_query: str, node_type: Optional[str] = None) -> List[Dict]
- get_neighbors · function · L51-L79 — def get_neighbors(node_id: Union[str, int], relation_type: Optional[str] = None) -> List[Dict]
- find_paths · function · L81-L108 — def find_paths(start_node_id: str, end_node_id: str, max_depth: int = 2) -> List[List[Dict]]
- get_disease_context · function · L110-L128 — def get_disease_context(disease_name: str) -> Dict