Skip to content

fix collaborator query returning 0 due to exclude_pmids - #17

Merged
Thierry Damiba (thierrypdamiba) merged 1 commit into
mainfrom
fix/graph-insights-prompt
Mar 3, 2026
Merged

fix collaborator query returning 0 due to exclude_pmids#17
Thierry Damiba (thierrypdamiba) merged 1 commit into
mainfrom
fix/graph-insights-prompt

Conversation

@thierrypdamiba

Copy link
Copy Markdown

Summary

  • The collaborator Cypher query was filtering out papers already found by Qdrant via exclude_pmids. For authors with few papers (e.g. Richard D Kennedy, 2 papers), this excluded all relevant papers and returned 0 collaborators.
  • Collaborator search is about finding people, not new papers. Removed the exclude from that query while keeping it for get_related_papers_by_mesh where it makes sense.
  • Also updated the fusion prompt to report empty tool results instead of silently skipping them.

Root cause

Richard D Kennedy has 2 papers. Paper 15547178 has BRCA1/Breast Neoplasms MeSH terms and 4 collaborators. But 15547178 was already in exclude_pmids (returned by Qdrant), so the collaborator query had 0 matching papers left.

Test plan

  • "BRCA1 breast cancer" now returns collaborators (Jennifer E Quinn, Paul B Mullan, etc.)
  • Graph Insights section includes both collaborator and related paper data
  • "p53 apoptosis" still works as before

…rompt

* stop excluding qdrant-retrieved pmids from collaborator search since
  the goal is finding people, not new papers
* tell the LLM to report empty tool results instead of hiding them
* revert the neo4j result filtering so all tool outputs reach the summarizer
@thierrypdamiba
Thierry Damiba (thierrypdamiba) merged commit cfac4ef into main Mar 3, 2026
1 check passed
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

Successfully merging this pull request may close these issues.

1 participant