Skip to main content

AItrika

AItrika License GitHub forks GitHub commit activity (branch) GitHub last commit (branch) Static Badge Enhance your knowledge in medical research. AItrika (formerly PubGPT) is a tool that can extract lots of relevant informations inside medical papers in an easy way:
  • Abstract
  • Full text (when available)
  • Genes
  • Diseases
  • Mutations
  • Associations between genes and diseases
  • MeSH terms
  • Other terms
  • Results
  • Bibliography
And so on!

πŸš€ Run the demo app

You can try AItrika with the Streamlit app by running:
Or you can use it a script by running:

πŸ“¦ Install

To install everything, you need uv. First of all, install uv with the command:
After that, create a virtual environment with the command:
Activate the virtual env:
And install dependencies:

πŸ”‘ Set LLM API Keys

In order to set API keys, insert your keys into the env.example file and rename it to .env.

πŸ” Usage

You can easily get informations of a paper by passing a PubMed ID:
Or you can parse a local pdf:
You can get other informations, like the associations between genes and diseases:
Or you can get a nice formatted DataFrame:
With the power of RAG, you can query your document:
Or you can extract other informations:

πŸš€ Run the API

To run the AItrika API, follow these steps:
  1. Ensure you have set up your environment and installed all dependencies as described in the Installation section.
  2. Run the API server using the following command:
The API will start running on http://0.0.0.0:8000. You can now make requests to the various endpoints:
  • /associations: Get associations from a PubMed article
  • /abstract: Get abstract of a PubMed article
  • /query: Query a PubMed article
  • /results: Get results from a PubMed article
  • /participants: Get number of participants from a PubMed article
  • /outcomes: Get outcomes from a PubMed article
You can use tools like curl, Postman, or any HTTP client to interact with the API. For example:
The API documentation is automatically generated and saved to docs/api-reference/openapi.json. You can use this file with tools like Swagger UI for a more interactive API exploration experience.

Support the Project

If you find this project useful, please consider supporting it:
  • 🌟 Star the project on GitHub
  • πŸ› Report bugs or suggest new features
  • 🀝 Contribute with pull requests
  • β˜•οΈ Buy me a coffee or consider a sponsor.

Commercial / Business use

If you’re using this project in a business or commercial context, please contact me. I’m available for consulting, custom development, or commercial licensing. Your support helps keep this project active and continuously improving. Thank you!

License

AItrika is licensed under the Apache 2.0 License. See the LICENSE file for more details.

Star History

Star History Chart