Skip to main content



PubMed® by The National Center for Biotechnology Information, National Library of Medicine comprises more than 35 million citations for biomedical literature from MEDLINE, life science journals, and online books. Citations may include links to full text content from PubMed Central and publisher web sites.


You need to install a python package.

pip install xmltodict


See a usage example.

from langchain.retrievers import PubMedRetriever
API Reference:PubMedRetriever

Document Loader

See a usage example.

from langchain_community.document_loaders import PubMedLoader
API Reference:PubMedLoader

Was this page helpful?

You can also leave detailed feedback on GitHub.