aiagents4pharma 1.39.1__py3-none-any.whl → 1.39.3__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,5 @@
1
+ _target_: agents.paper_download_agent.get_app
2
+ paper_download_agent: |
3
+ You are the Paper Download Agent.
4
+
5
+ You are responsible for downloading PDFs of papers using their IDs. Use all the provied Ids to download the papers. Only when the user asks a question related to PDFs, please forward the query to the `question_and_answer` tool from the `pdf_agent`
@@ -0,0 +1,5 @@
1
+ _target_: agents.pdf_agent.get_app
2
+ pdf_agent: |
3
+ You are the PDF Agent.
4
+
5
+ You are responsible for performing question-and-answer tasks on papers, articles, or PDFs
@@ -0,0 +1,4 @@
1
+ api_url: "http://export.arxiv.org/api/query"
2
+ request_timeout: 10
3
+ chunk_size: 1024
4
+ pdf_base_url: "https://arxiv.org/pdf"
@@ -0,0 +1,2 @@
1
+ api_url: "https://api.biorxiv.org/details/biorxiv/"
2
+ request_timeout: 20
@@ -0,0 +1,2 @@
1
+ api_url: "https://api.biorxiv.org/details/medrxiv"
2
+ request_timeout: 20
@@ -0,0 +1,22 @@
1
+ # Default configuration for the PDF question_and_answer Tool
2
+ chunk_size: 1200 # Number of characters per text chunk
3
+ chunk_overlap: 200 # Overlap between adjacent chunks
4
+ top_k_papers: 5 # Number of papers to rank and retrieve
5
+ top_k_chunks: 25 # Number of chunks to retrieve
6
+ reranker:
7
+ model: "nvidia/nv-rerankqa-mistral-4b-v3"
8
+ api_key: ${oc.env:NVIDIA_API_KEY}
9
+ prompt_template: |
10
+ You are a scientific research assistant specialized in reading and extracting information from research papers.
11
+ Your role is to answer questions by retrieving relevant information from the provided context.
12
+
13
+ - Provide detailed, structured, and well-argued explanations—not just brief summaries.
14
+ - Cite specific sources using onky the title of the paper.
15
+ - If the context is insufficient, clearly state that more information is needed.
16
+
17
+ Context:
18
+ {context}
19
+
20
+ Question: {question}
21
+
22
+ Your answer should be comprehensive, accurate, and clearly structured for a scientific audience.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: aiagents4pharma
3
- Version: 1.39.1
3
+ Version: 1.39.3
4
4
  Summary: AI Agents for drug discovery, drug development, and other pharmaceutical R&D.
5
5
  Classifier: Programming Language :: Python :: 3
6
6
  Classifier: License :: OSI Approved :: MIT License
@@ -114,18 +114,19 @@ _We now have all the agents available on Docker Hub._
114
114
 
115
115
  Both agents require [Ollama](https://ollama.com/) to run embedding models like `nomic-embed-text`. We use a **single startup script** that automatically detects your hardware (NVIDIA, AMD, or CPU) and handles container startup, model loading, and service orchestration.
116
116
 
117
- ##### **1. Clone the repository and navigate to the agent directory**
117
+ ##### **1. Download docker-compose.yml, .env.example and startup.sh from GitHub**
118
118
 
119
- ```sh
120
- git clone https://github.com/VirtualPatientEngine/AIAgents4Pharma
119
+ ###### Talk2Agents4Pharma
121
120
 
122
- cd AIAgents4Pharma/aiagents4pharma/<agent>
121
+ ```sh
122
+ mkdir talk2aiagents4pharma && cd talk2aiagents4pharma && wget https://raw.githubusercontent.com/VirtualPatientEngine/AIAgents4Pharma/main/aiagents4pharma/talk2aiagents4pharma/docker-compose.yml https://raw.githubusercontent.com/VirtualPatientEngine/AIAgents4Pharma/main/aiagents4pharma/talk2aiagents4pharma/.env.example https://raw.githubusercontent.com/VirtualPatientEngine/AIAgents4Pharma/main/aiagents4pharma/talk2aiagents4pharma/startup.sh
123
123
  ```
124
124
 
125
- Replace `<agent>` with either:
125
+ ###### Talk2KnowledgeGraphs
126
126
 
127
- - `talk2aiagents4pharma`
128
- - `talk2knowledgegraphs`
127
+ ```sh
128
+ mkdir talk2knowledgegraphs && cd talk2knowledgegraphs && wget https://raw.githubusercontent.com/VirtualPatientEngine/AIAgents4Pharma/main/aiagents4pharma/talk2knowledgegraphs/docker-compose.yml https://raw.githubusercontent.com/VirtualPatientEngine/AIAgents4Pharma/main/aiagents4pharma/talk2knowledgegraphs/.env.example https://raw.githubusercontent.com/VirtualPatientEngine/AIAgents4Pharma/main/aiagents4pharma/talk2knowledgegraphs/startup.sh
129
+ ```
129
130
 
130
131
  ##### **2. Setup environment variables**
131
132
 
@@ -145,7 +146,7 @@ LANGCHAIN_TRACING_V2=true # Optional for both agents
145
146
  LANGCHAIN_API_KEY=... # Optional for both agents
146
147
  ```
147
148
 
148
- [Additional Notes for Windows Users](https://github.com/VirtualPatientEngine/AIAgents4Pharma/tree/main/aiagents4pharma/install.md)
149
+ [Additional Notes for Windows Users](https://github.com/VirtualPatientEngine/AIAgents4Pharma/blob/main/aiagents4pharma/talk2aiagents4pharma/install.md#notes-for-windows-users)
149
150
 
150
151
  ##### **3. Start the application**
151
152
 
@@ -154,7 +155,7 @@ chmod +x startup.sh
154
155
  ./startup.sh # Add --cpu flag to force CPU mode if needed
155
156
  ```
156
157
 
157
- [More about startup script](https://github.com/VirtualPatientEngine/AIAgents4Pharma/tree/main/aiagents4pharma/install.md)
158
+ [More about startup script](https://github.com/VirtualPatientEngine/AIAgents4Pharma/blob/main/aiagents4pharma/talk2aiagents4pharma/install.md#about-startupsh)
158
159
 
159
160
  ##### **To Run Talk2Biomodels / Talk2Scholars**
160
161
 
@@ -196,11 +197,11 @@ To use **Talk2BioModels** or **Talk2Scholars**, you need a free **NVIDIA API key
196
197
 
197
198
  Only for **Talk2Scholars**, you also need a **Zotero API key**, which you can generate [here](https://www.zotero.org/user/login#applications). _(For all other agents, the Zotero key is not required.)_
198
199
 
199
- If you are using docker on Windows, please follow these [Windows Setup Notes](https://github.com/VirtualPatientEngine/AIAgents4Pharma/tree/main/aiagents4pharma).
200
+ If you are using docker on Windows, please follow these [Windows Setup Notes](https://github.com/VirtualPatientEngine/AIAgents4Pharma/blob/main/aiagents4pharma/talk2aiagents4pharma/install.md#notes-for-windows-users).
200
201
 
201
202
  **LangSmith** support is optional. To enable it, create an API key [here](https://docs.smith.langchain.com/administration/how_to_guides/organization_management/create_account_api_key).
202
203
 
203
- [More on running multiple agents simultaneously](https://github.com/VirtualPatientEngine/AIAgents4Pharma/tree/main/aiagents4pharma/install.md)
204
+ [More on running multiple agents simultaneously](https://github.com/VirtualPatientEngine/AIAgents4Pharma/blob/main/aiagents4pharma/talk2aiagents4pharma/install.md#to-run-multiple-agents-simultaneously)
204
205
 
205
206
  #### Option 2: git (for developers and contributors)
206
207
 
@@ -209,8 +210,7 @@ If you are using docker on Windows, please follow these [Windows Setup Notes](ht
209
210
  1. **Clone the repository:**
210
211
 
211
212
  ```sh
212
- git clone https://github.com/VirtualPatientEngine/AIAgents4Pharma
213
- cd AIAgents4Pharma
213
+ git clone https://github.com/VirtualPatientEngine/AIAgents4Pharma && cd AIAgents4Pharma
214
214
  ```
215
215
 
216
216
  2. **Install dependencies:**
@@ -321,9 +321,10 @@ git push origin feat/your-feature-name
321
321
 
322
322
  #### Contacts for contributions
323
323
 
324
- - **Talk2Biomodels / Talk2Cells**: [@gurdeep330](https://github.com/gurdeep330), [@lilijap](https://github.com/lilijap), [@dmccloskey](https://github.com/dmccloskey)
325
- - **Talk2KnowledgeGraphs**: [@awmulyadi](https://github.com/awmulyadi), [@dmccloskey](https://github.com/dmccloskey)
326
- - **Talk2Scholars**: [@ansh-info](https://github.com/ansh-info), [@gurdeep330](https://github.com/gurdeep330), [@dmccloskey](https://github.com/dmccloskey)
324
+ - **Talk2Biomodels**: [@lilijap](https://github.com/lilijap), [@gurdeep330](https://github.com/gurdeep330)
325
+ - **Talk2Cells**: [@gurdeep330](https://github.com/gurdeep330)
326
+ - **Talk2KnowledgeGraphs**: [@awmulyadi](https://github.com/awmulyadi)
327
+ - **Talk2Scholars**: [@ansh-info](https://github.com/ansh-info), [@gurdeep330](https://github.com/gurdeep330)
327
328
 
328
329
  Please refer to our [CONTRIBUTING.md](CONTRIBUTING.md) for more detailed contribution guidelines.
329
330
 
@@ -158,7 +158,9 @@ aiagents4pharma/talk2scholars/configs/agents/talk2scholars/__init__.py,sha256=D9
158
158
  aiagents4pharma/talk2scholars/configs/agents/talk2scholars/main_agent/__init__.py,sha256=fqQQ-GlRcbzru2KmEk3oMma0R6_SzGM8dOXzYeU4oVA,46
159
159
  aiagents4pharma/talk2scholars/configs/agents/talk2scholars/main_agent/default.yaml,sha256=hew5vyrhLeJktoN6DTPRRpnINrXqKZ4trLJQDOuDGOA,4712
160
160
  aiagents4pharma/talk2scholars/configs/agents/talk2scholars/paper_download_agent/__init__.py,sha256=fqQQ-GlRcbzru2KmEk3oMma0R6_SzGM8dOXzYeU4oVA,46
161
+ aiagents4pharma/talk2scholars/configs/agents/talk2scholars/paper_download_agent/default.yaml,sha256=D-IanUKvd2yhrFJjQCMnIG8UNQ3fbkW_bOdhHWRKmq8,357
161
162
  aiagents4pharma/talk2scholars/configs/agents/talk2scholars/pdf_agent/__init__.py,sha256=fqQQ-GlRcbzru2KmEk3oMma0R6_SzGM8dOXzYeU4oVA,46
163
+ aiagents4pharma/talk2scholars/configs/agents/talk2scholars/pdf_agent/default.yaml,sha256=p3hFJi-1xbHCNagTG13WHvsrPt11XQg1nHS7VJx2XOY,166
162
164
  aiagents4pharma/talk2scholars/configs/agents/talk2scholars/s2_agent/__init__.py,sha256=fqQQ-GlRcbzru2KmEk3oMma0R6_SzGM8dOXzYeU4oVA,46
163
165
  aiagents4pharma/talk2scholars/configs/agents/talk2scholars/s2_agent/default.yaml,sha256=N3a_brrB1ilUCeqHQrqu97Olz2snko3tTNPMNR8yTHI,208
164
166
  aiagents4pharma/talk2scholars/configs/agents/talk2scholars/zotero_agent/__init__.py,sha256=fqQQ-GlRcbzru2KmEk3oMma0R6_SzGM8dOXzYeU4oVA,46
@@ -168,11 +170,15 @@ aiagents4pharma/talk2scholars/configs/app/frontend/__init__.py,sha256=fqQQ-GlRcb
168
170
  aiagents4pharma/talk2scholars/configs/app/frontend/default.yaml,sha256=A6nYjrgzEyRv5JYsGN7oqNX4-tufMBZ6mg-A7bMX6V4,906
169
171
  aiagents4pharma/talk2scholars/configs/tools/__init__.py,sha256=6pHPF0ZGY78SD6KPMukd_xrfO1ocVXcyrsrB-kz-OnI,402
170
172
  aiagents4pharma/talk2scholars/configs/tools/download_arxiv_paper/__init__.py,sha256=fqQQ-GlRcbzru2KmEk3oMma0R6_SzGM8dOXzYeU4oVA,46
173
+ aiagents4pharma/talk2scholars/configs/tools/download_arxiv_paper/default.yaml,sha256=VT3f-E6QGtqUjLEX0eaw9b_7f1Fp83cnnMOpqOufK4I,120
171
174
  aiagents4pharma/talk2scholars/configs/tools/download_biorxiv_paper/__init__.py,sha256=fqQQ-GlRcbzru2KmEk3oMma0R6_SzGM8dOXzYeU4oVA,46
175
+ aiagents4pharma/talk2scholars/configs/tools/download_biorxiv_paper/default.yaml,sha256=d5_dl1_FYWseBGTVGkvC41jfJMsMUaDMOmC_av3aL4Q,72
172
176
  aiagents4pharma/talk2scholars/configs/tools/download_medrxiv_paper/__init__.py,sha256=fqQQ-GlRcbzru2KmEk3oMma0R6_SzGM8dOXzYeU4oVA,46
177
+ aiagents4pharma/talk2scholars/configs/tools/download_medrxiv_paper/default.yaml,sha256=NaWmyVZ71rIF3ZRUm912wQgRL0cgDTWA-hVKeu60rtg,70
173
178
  aiagents4pharma/talk2scholars/configs/tools/multi_paper_recommendation/__init__.py,sha256=fqQQ-GlRcbzru2KmEk3oMma0R6_SzGM8dOXzYeU4oVA,46
174
179
  aiagents4pharma/talk2scholars/configs/tools/multi_paper_recommendation/default.yaml,sha256=comNgL9hRpH--IWuEsrN6hV5WdrJmh-ZsRh7hbryVhg,631
175
180
  aiagents4pharma/talk2scholars/configs/tools/question_and_answer/__init__.py,sha256=fqQQ-GlRcbzru2KmEk3oMma0R6_SzGM8dOXzYeU4oVA,46
181
+ aiagents4pharma/talk2scholars/configs/tools/question_and_answer/default.yaml,sha256=lZ_DM0UIj8j2Xryt90YOEj4Bl9_FZ-Z4dhLxaAbgNFY,977
176
182
  aiagents4pharma/talk2scholars/configs/tools/retrieve_semantic_scholar_paper_id/__init__.py,sha256=fqQQ-GlRcbzru2KmEk3oMma0R6_SzGM8dOXzYeU4oVA,46
177
183
  aiagents4pharma/talk2scholars/configs/tools/retrieve_semantic_scholar_paper_id/default.yaml,sha256=HG-N8yRjlX9zFwbIBvaDI9ndKjfL-gqPTCCPMLgdUpw,271
178
184
  aiagents4pharma/talk2scholars/configs/tools/search/__init__.py,sha256=fqQQ-GlRcbzru2KmEk3oMma0R6_SzGM8dOXzYeU4oVA,46
@@ -245,8 +251,8 @@ aiagents4pharma/talk2scholars/tools/zotero/utils/review_helper.py,sha256=IPD1V9y
245
251
  aiagents4pharma/talk2scholars/tools/zotero/utils/write_helper.py,sha256=ALwLecy1QVebbsmXJiDj1GhGmyhq2R2tZlAyEl1vfhw,7410
246
252
  aiagents4pharma/talk2scholars/tools/zotero/utils/zotero_path.py,sha256=oIrfbOySgts50ksHKyjcWjRkPRIS88g3Lc0v9mBkU8w,6375
247
253
  aiagents4pharma/talk2scholars/tools/zotero/utils/zotero_pdf_downloader.py,sha256=ERBha8afU6Q1EaRBe9qB8tchOzZ4_KfFgDW6EElOJoU,4816
248
- aiagents4pharma-1.39.1.dist-info/licenses/LICENSE,sha256=IcIbyB1Hyk5ZDah03VNQvJkbNk2hkBCDqQ8qtnCvB4Q,1077
249
- aiagents4pharma-1.39.1.dist-info/METADATA,sha256=9ncdNvJh3EUIjSlFJI9w8DF7k2DPmaRlOFiQ0tj1HSs,14578
250
- aiagents4pharma-1.39.1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
251
- aiagents4pharma-1.39.1.dist-info/top_level.txt,sha256=-AH8rMmrSnJtq7HaAObS78UU-cTCwvX660dSxeM7a0A,16
252
- aiagents4pharma-1.39.1.dist-info/RECORD,,
254
+ aiagents4pharma-1.39.3.dist-info/licenses/LICENSE,sha256=IcIbyB1Hyk5ZDah03VNQvJkbNk2hkBCDqQ8qtnCvB4Q,1077
255
+ aiagents4pharma-1.39.3.dist-info/METADATA,sha256=1nFBKl2FZ5seKMkuixLjF8hQqnR5DFYGrNCO9jUTFug,15462
256
+ aiagents4pharma-1.39.3.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
257
+ aiagents4pharma-1.39.3.dist-info/top_level.txt,sha256=-AH8rMmrSnJtq7HaAObS78UU-cTCwvX660dSxeM7a0A,16
258
+ aiagents4pharma-1.39.3.dist-info/RECORD,,