feat: support omop emb 1.0.0#9
Conversation
|
in README it mentions ClassIDEnum.HIERARCHICAL, but it should be ClassIDEnum.HIERARCHY also stale refs: rank_paths, kg.find_shortest_paths, and kg.rank_paths |
|
in paths.py: reconstruct_paths makes all nodes standard=False --> path metadata is wrong |
|
EdgeView.from_query() depends on positional column order rather than row names |
|
if you add synonym (bool) field to LabelMatch and populate from KnowledgeGraph.concept_lookup(), then LabelMatchGroupView can faithfully return direct/synonym --> at the moment it's only returning exact/partial/fulltext/embedding |
|
LabelMatchGroupView.from_matches assumes pre-sorting rather than explicit rule (or - stop using ms[0] as 'best' by definition) |
|
in paths.py should we rename 'num_hops' in find_standard_paths to max_standard_hops or something? this is very specifically only traversing standard-standard relationships alternatively: could add in param allow_non_standard_intermediates: bool = False reason is that for MCP exploration/view use case, users will likely expect broader graph navigation |
|
find_standard_paths drops edges when multiple outgoing edges point to the same ID this is an issue for concepts joined by >1 valid relationship select * from (select concept_id_1, concept_id_2, count(distinct(relationship_id)) as c fr |
|
PathProfile.from_path() cannot handle valid empty-path case returned when Profiling or explaining a zero-hop path will fail at runtime instead of returning a sensible self-match profile |
|
|
traverse()
|
|
Scoring docs say relevance is composite, but I think this is intentional but perhaps having some kind of parameter to override this is worthwhile? |
…flect its purpose
… accept it as tablename = path.stem
gkennos
left a comment
There was a problem hiding this comment.
Great! Confirmed all identified issues now closed with very minor outstanding issues - I am commenting rather than approving only because I think we need to release omop-alchemy 0.6.3 before we merge and release this update 👍
# [1.1.0](v1.0.4...v1.1.0) (2026-05-25) ### Features * support omop emb 1.0.0 ([#9](#9)) ([8fa726b](8fa726b))
Motivation
omop-embintroduces a new storage and DB concept with significant and breaking changes to support a local-first and backend-agnostic storage solution for the embeddings. To include these changes and fixes that come with a successful PR, we need to prepareomop-graphfor the new incoming interfaces etc.Closes #8
To prevent additional versioning updates, this PR also absorbed the following issues:
lru_cachefrom KnowledgeGraph #12