Summary
Influence Flower returns an empty/zero-result output for valid, high-citation authors, including:
- Marcos López de Prado
- Giuseppe Paleologo
Both authors are present in OpenAlex and have substantial citation records, so the current behavior is unexpected.
Expected behavior
When a user selects a valid author from search results, the app should either:
- render a non-empty flower (if author data exists in the scoring snapshot), or
- show an explicit message that the author exists in OpenAlex but is missing from the local scoring snapshot.
It should not fail silently with a zero-result flower.
Actual behavior
The app can return a zero-result/empty flower without a clear explanation for these authors.
Steps to reproduce
- Open
Create New Flowers.
- Search for
Marcos López de Prado (or Giuseppe Paleologo).
- Select the author and click
Go.
- Observe zero/empty result behavior (or no meaningful explanation).
References
Google Scholar
OpenAlex (author exists)
Environment
- macOS Sonoma 14.6 (Darwin 23.6.0)
- Local run via Docker Compose
Investigation notes
During local debugging, two likely contributors were identified:
- Silent ID dropping in runtime scoring path
If selected OpenAlex IDs are not present in the local binary snapshot, requests can degrade to empty results without clear user feedback.
- Preprocessing bug in reference extraction
In konigsberg/preprocessor.py, generate_paper_references() used author prefix slicing for work IDs (PREFIX_AUTHOR instead of PREFIX_WORK), which can corrupt citation-reference edges in generated data.
Suggested fix direction
- Return explicit API response when requested IDs are missing in local snapshot.
- Surface user-facing warning in UI for snapshot/API mismatch.
- Correct OpenAlex work ID prefix parsing in preprocessing.
- Add regression tests for both:
- preprocessing ID parsing correctness
- non-silent runtime handling for unresolved IDs
Additional context
I can provide a tested patch branch with:
- runtime missing-ID signaling,
- UI mismatch messaging,
- preprocessing fix,
- focused tests.
Summary
Influence Flower returns an empty/zero-result output for valid, high-citation authors, including:
Both authors are present in OpenAlex and have substantial citation records, so the current behavior is unexpected.
Expected behavior
When a user selects a valid author from search results, the app should either:
It should not fail silently with a zero-result flower.
Actual behavior
The app can return a zero-result/empty flower without a clear explanation for these authors.
Steps to reproduce
Create New Flowers.Marcos López de Prado(orGiuseppe Paleologo).Go.References
Google Scholar
OpenAlex (author exists)
Environment
Investigation notes
During local debugging, two likely contributors were identified:
If selected OpenAlex IDs are not present in the local binary snapshot, requests can degrade to empty results without clear user feedback.
In
konigsberg/preprocessor.py,generate_paper_references()used author prefix slicing for work IDs (PREFIX_AUTHORinstead ofPREFIX_WORK), which can corrupt citation-reference edges in generated data.Suggested fix direction
Additional context
I can provide a tested patch branch with: