NetMedEx is an AI-powered knowledge discovery platform designed to transform biomedical literature into actionable insights. Unlike traditional tools that merely extract entities, NetMedEx leverages Hybrid Retrieval-Augmented Generation (Hybrid RAG) to synthesize structured co-mention networks with unstructured text, providing a holistic understanding of biological relationships.
In NetMedEx, the Co-Mention Network serves as a structural "scaffolding." While the network visualizes the landscape of bio-concepts (genes, diseases, chemicals, etc.), the AI-driven Semantic Layer breathes life into these connections by extracting evidence, identifying relationship types, and answering complex natural language queries.
NetMedEx offers flexible ways to interact with the platform:
- Web Application (via Docker) - Recommended
- Web Application (Local)
- Command-Line Interface (CLI)
- Python API
The easiest way to start is using Docker. Run the command below (adding -d to run in background) and open localhost:8050 in your browser:
docker run -d -p 8050:8050 --rm lsbnb/netmedexAlternatively, install via PyPI for local hosting or CLI access:
pip install netmedexRecommended: Python >= 3.11
Launch the interactive dashboard locally:
netmedex runNetMedEx features an interactive Chat Panel driven by Hybrid RAG, which combines the power of large language models (LLMs) with specialized bio-medical knowledge graphs.
Figure 1: NetMedEx Hybrid RAG Architecture combining Text and Graph RAG for chatting with biomedical knowledge.
- Hybrid RAG Chat: Synthesizes unstructured text (abstracts) and structured graph knowledge (paths and neighbors).
- Natural Language & Universal Translation: Ask in English, Japanese, Chinese, or Korean! NetMedEx automatically translates non-English queries to optimized standard PubTator3 English syntax before searching.
- ChatGPT-Style Chat Experience: Features an intuitive, auto-scrolling Chat Panel that perfectly mimics modern AI layouts (user queries on the right, AI responses on the left), preventing the need for manual scrolling.
- Semantic Evidence Extraction: Automatically identifies relationship types (e.g., treats, inhibits) and confidence scores.
- Contextual Reasoning: Identifies shortest paths and relevant subgraphs to explain hidden connections between entities.
- Obtain an API key from OpenAI or set up a local LLM endpoint (e.g., Ollama).
- Configure via "Advanced Settings" in the web interface or via
.envfile.
Tip
Connecting to Local LLMs (Ollama/LM Studio):
- Linux/Docker: Use your host IP (e.g.,
http://192.168.1.100:11434). - Windows/macOS (Docker): Use
http://host.docker.internal:[PORT].
The workspace follows a logical discovery workflow across three main operational panels.
The Search Panel is where you define your research scope and configure the AI engine.
Figure 2: The Search Panel for keyword and natural language querying.
Expand Advanced Settings to configure your LLM provider. This is a crucial first step for enabling semantic analysis.
Figure 3: Configuring the AI Engine (OpenAI or Local) in Advanced Settings.
Figure 4: Selecting a specific model for local AI processing via the dropdown menu.
Users can also upload previously downloaded PubTator format files for re-analysis, or restore a previously exported Graph File (.pkl) to skip re-processing entirely.
Figure 5: Uploading PubTator files for re-analysis, or a Graph File (.pkl) to instantly restore a saved session.
Tip
Graph File Restore: After a time-consuming Semantic Analysis run, export the result as a Graph (.pkl) from the Graph Panel, then reload it later via Search Panel โ Source: Graph File (.pkl). The full graph state โ including all semantic edges, node metadata, and article abstracts โ is restored instantly, allowing you to continue adjusting the network and using the Chat Panel without re-running any analysis.
The Graph Panel visualizes the co-mention/semantic analyzed network, providing the visualization of search results for your research. Using the shift key to select sub-network, those selected nodes and edges will be highlighted as the base for chat in next step. Users can visualize the network using different layouts and community detection algorithms. Users also can export the network in several formats:
| Export Format | Description | Re-importable? |
|---|---|---|
| HTML | Interactive visualization for browsers (example) | โ |
| XGMML | Network file for Cytoscape Desktop | โ |
| PubTator | Raw annotation file | โ Re-upload in Search Panel |
| Graph (.pkl) | Full graph state including semantic analysis results and article abstracts | โ Restore in Search Panel โ "Graph File" |
Figure 6: Interactive Knowledge Graph showing Bio-Concept connections.
Figure 7: High-resolution view of the Graph Panel interface.There are several options in the top right corner of the graph panel, including layout, community detection, and save.
Figure 8: Case study: Visualizing the Sarcopenia-related network using NetMedEx to depict the relationships in semantic level between genes, diseases, chemicals, and species.
- Nodes: Genes, Diseases, Chemicals, and Species.
- Edges: Literature co-occurrence. Thicker edges indicate higher frequency.
- Clusters: Use the Community Detection feature to group related concepts automatically.
Figure 9: Automated community detection for functional clustering.
Figure 10: Selecting a sub-network by holding the Shift key to isolate relevant nodes and edges as the base for hybridRAG to chat with.
The Chat Panel provides the deep semantic layer, interpreting the graph using LLMs.
Figure 11: Hybrid RAG Chat for natural language reasoning over the network.
Figure 12(A): Press the "Analyze Selection" button to construct RAGs for communications with the selected sub-network.
Figure 12(B): RAG generating to prepare the chat later.
Figure 13: The Chat History panel for managing and reviewing previous discovery sessions.
Figure 14: Tabular representation of semantic analysis results (e.g., miRNA relationships).
While the Web Interface provides a full "Interactive Discovery" workflowโincluding dynamic sub-network selection (Shift+Select) and real-time Hybrid RAG chatโthe CLI and API are designed for automated batch processing and static graph construction.
- Interactive Discovery (Web Only): Real-time interaction, dynamic graph filtering, and context-aware chat.
- Batch Processing (CLI/API): Static semantic analysis and high-throughput network generation.
For high-throughput analysis, use the NetMedEx CLI.
# Search articles by keywords
netmedex search -q '"N-dimethylnitrosamine" AND "Metformin"' --sort score# Generate HTML network from annotations
netmedex network -i annotations.pubtator -o network.html -w 2 --communityNetMedEx can be integrated directly into your Python pipelines as a library.
# Programmatic Access (API)
from netmedex import search, networkยฉ 2026 LSBNB Lab@ IIS, Academia Sinica, TAIWAN. Refer to LICENSE for details.