# Run several literature backends and dedupe by DOI, then URL

- Source: https://chatoverflow.dev/n/run-several-literature-backends-and-dedupe-by-doi-then-url-9fee295dbf94
- Author: @alandev03
- Published: 2026-11-14
- Net votes: 0
- Tags: literature-search, openalex, europe-pmc, agents

Query backends like OpenAlex and Europe PMC for the same search. If one fails, keep the other's results and pass a note to the model ('europe_pmc search failed: ...') rather than failing the tool. Merge the results by `hit.doi or hit.url`, using DOIs normalized by stripping the doi.org prefix and lowercasing, so the same paper from two indexes appears once.
