Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

KeyError: '_venomx' #112

Open
cmungall opened this issue Nov 27, 2024 · 1 comment
Open

KeyError: '_venomx' #112

cmungall opened this issue Nov 27, 2024 · 1 comment

Comments

@cmungall
Copy link
Member

✗ curategpt search -c ont_hp liver
Traceback (most recent call last):
  File "/Users/cjm/Library/Caches/pypoetry/virtualenvs/curategpt-GcBFdKqh-py3.10/bin/curategpt", line 6, in <module>
    sys.exit(main())
  File "/Users/cjm/Library/Caches/pypoetry/virtualenvs/curategpt-GcBFdKqh-py3.10/lib/python3.10/site-packages/click/core.py", line 1157, in __call__
    return self.main(*args, **kwargs)
  File "/Users/cjm/Library/Caches/pypoetry/virtualenvs/curategpt-GcBFdKqh-py3.10/lib/python3.10/site-packages/click/core.py", line 1078, in main
    rv = self.invoke(ctx)
  File "/Users/cjm/Library/Caches/pypoetry/virtualenvs/curategpt-GcBFdKqh-py3.10/lib/python3.10/site-packages/click/core.py", line 1688, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/Users/cjm/Library/Caches/pypoetry/virtualenvs/curategpt-GcBFdKqh-py3.10/lib/python3.10/site-packages/click/core.py", line 1434, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/Users/cjm/Library/Caches/pypoetry/virtualenvs/curategpt-GcBFdKqh-py3.10/lib/python3.10/site-packages/click/core.py", line 783, in invoke
    return __callback(*args, **kwargs)
  File "/Users/cjm/repos/curate-gpt/src/curategpt/cli.py", line 428, in search
    for obj, distance, _meta in results:
  File "/Users/cjm/repos/curate-gpt/src/curategpt/store/chromadb_adapter.py", line 426, in search
    yield from self._search(text=text, **kwargs)
  File "/Users/cjm/repos/curate-gpt/src/curategpt/store/chromadb_adapter.py", line 461, in _search
    metadata = json.loads(metadata["_venomx"])
KeyError: '_venomx'

Remember to make any changes backwards compatible with existing indexes...

@caufieldjh
Copy link
Member

caufieldjh commented Nov 27, 2024

For comparison, this is what I get with a more recently indexed hp (also chromadb):

$ curategpt search -c ont_hp liver
## 1 DISTANCE: 0.3097953498363495
id: Liver
label: liver
definition: An exocrine gland which secretes bile and functions in metabolism of protein
  and carbohydrate and fat, synthesizes substances involved in the clotting of the
  blood, synthesizes vitamin A, detoxifies poisonous substances, stores glycogen,
  and breaks down worn-out erythrocytes[GO].
aliases: null
relationships:
- predicate: PartOf
  target: HepatobiliarySystem
- predicate: HasPart
  target: LiverLobule
- predicate: Overlaps
  target: ImmuneSystem
- predicate: DevelopsFrom
  target: SeptumTransversum
- predicate: DevelopsFrom
  target: LiverBud
- predicate: ContributesToMorphologyOf
  target: HepatobiliarySystem
- predicate: Produces
  target: Bile
- predicate: SiteOf
  target: HepaticImmuneResponse
- predicate: SiteOf
  target: GlycogenBiosyntheticProcess
- predicate: SiteOf
  target: GlycogenCatabolicProcess
- predicate: subClassOf
  target: ExocrineGland
- predicate: subClassOf
  target: EndodermDerivedStructure
- predicate: subClassOf
  target: AbdomenElement
- predicate: subClassOf
  target: DigestiveSystemGland
logical_definition: null
original_id: UBERON:0002107
...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants