aiagents4pharma 1.21.0__tar.gz → 1.22.0__tar.gz

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.
Files changed (172) hide show
  1. {aiagents4pharma-1.21.0 → aiagents4pharma-1.22.0}/PKG-INFO +2 -1
  2. {aiagents4pharma-1.21.0 → aiagents4pharma-1.22.0}/aiagents4pharma/talk2knowledgegraphs/configs/__init__.py +1 -0
  3. {aiagents4pharma-1.21.0 → aiagents4pharma-1.22.0}/aiagents4pharma/talk2knowledgegraphs/configs/config.yaml +1 -0
  4. aiagents4pharma-1.22.0/aiagents4pharma/talk2knowledgegraphs/tests/test_utils_embeddings_nim_molmim.py +64 -0
  5. aiagents4pharma-1.22.0/aiagents4pharma/talk2knowledgegraphs/tests/test_utils_enrichments_pubchem.py +33 -0
  6. aiagents4pharma-1.22.0/aiagents4pharma/talk2knowledgegraphs/tests/test_utils_pubchem_utils.py +16 -0
  7. {aiagents4pharma-1.21.0 → aiagents4pharma-1.22.0}/aiagents4pharma/talk2knowledgegraphs/utils/__init__.py +1 -0
  8. {aiagents4pharma-1.21.0 → aiagents4pharma-1.22.0}/aiagents4pharma/talk2knowledgegraphs/utils/embeddings/__init__.py +1 -0
  9. aiagents4pharma-1.22.0/aiagents4pharma/talk2knowledgegraphs/utils/embeddings/nim_molmim.py +54 -0
  10. {aiagents4pharma-1.21.0 → aiagents4pharma-1.22.0}/aiagents4pharma/talk2knowledgegraphs/utils/enrichments/__init__.py +1 -0
  11. aiagents4pharma-1.22.0/aiagents4pharma/talk2knowledgegraphs/utils/enrichments/pubchem_strings.py +49 -0
  12. aiagents4pharma-1.22.0/aiagents4pharma/talk2knowledgegraphs/utils/pubchem_utils.py +42 -0
  13. {aiagents4pharma-1.21.0 → aiagents4pharma-1.22.0}/aiagents4pharma.egg-info/PKG-INFO +2 -1
  14. {aiagents4pharma-1.21.0 → aiagents4pharma-1.22.0}/aiagents4pharma.egg-info/SOURCES.txt +6 -0
  15. {aiagents4pharma-1.21.0 → aiagents4pharma-1.22.0}/aiagents4pharma.egg-info/requires.txt +1 -0
  16. {aiagents4pharma-1.21.0 → aiagents4pharma-1.22.0}/pyproject.toml +1 -0
  17. aiagents4pharma-1.22.0/release_version.txt +1 -0
  18. aiagents4pharma-1.21.0/release_version.txt +0 -1
  19. {aiagents4pharma-1.21.0 → aiagents4pharma-1.22.0}/LICENSE +0 -0
  20. {aiagents4pharma-1.21.0 → aiagents4pharma-1.22.0}/README.md +0 -0
  21. {aiagents4pharma-1.21.0 → aiagents4pharma-1.22.0}/aiagents4pharma/__init__.py +0 -0
  22. {aiagents4pharma-1.21.0 → aiagents4pharma-1.22.0}/aiagents4pharma/talk2biomodels/__init__.py +0 -0
  23. {aiagents4pharma-1.21.0 → aiagents4pharma-1.22.0}/aiagents4pharma/talk2biomodels/agents/__init__.py +0 -0
  24. {aiagents4pharma-1.21.0 → aiagents4pharma-1.22.0}/aiagents4pharma/talk2biomodels/agents/t2b_agent.py +0 -0
  25. {aiagents4pharma-1.21.0 → aiagents4pharma-1.22.0}/aiagents4pharma/talk2biomodels/api/__init__.py +0 -0
  26. {aiagents4pharma-1.21.0 → aiagents4pharma-1.22.0}/aiagents4pharma/talk2biomodels/api/kegg.py +0 -0
  27. {aiagents4pharma-1.21.0 → aiagents4pharma-1.22.0}/aiagents4pharma/talk2biomodels/api/ols.py +0 -0
  28. {aiagents4pharma-1.21.0 → aiagents4pharma-1.22.0}/aiagents4pharma/talk2biomodels/api/uniprot.py +0 -0
  29. {aiagents4pharma-1.21.0 → aiagents4pharma-1.22.0}/aiagents4pharma/talk2biomodels/configs/__init__.py +0 -0
  30. {aiagents4pharma-1.21.0 → aiagents4pharma-1.22.0}/aiagents4pharma/talk2biomodels/configs/agents/__init__.py +0 -0
  31. {aiagents4pharma-1.21.0 → aiagents4pharma-1.22.0}/aiagents4pharma/talk2biomodels/configs/agents/t2b_agent/__init__.py +0 -0
  32. {aiagents4pharma-1.21.0 → aiagents4pharma-1.22.0}/aiagents4pharma/talk2biomodels/configs/agents/t2b_agent/default.yaml +0 -0
  33. {aiagents4pharma-1.21.0 → aiagents4pharma-1.22.0}/aiagents4pharma/talk2biomodels/configs/config.yaml +0 -0
  34. {aiagents4pharma-1.21.0 → aiagents4pharma-1.22.0}/aiagents4pharma/talk2biomodels/configs/tools/__init__.py +0 -0
  35. {aiagents4pharma-1.21.0 → aiagents4pharma-1.22.0}/aiagents4pharma/talk2biomodels/configs/tools/ask_question/__init__.py +0 -0
  36. {aiagents4pharma-1.21.0 → aiagents4pharma-1.22.0}/aiagents4pharma/talk2biomodels/configs/tools/ask_question/default.yaml +0 -0
  37. {aiagents4pharma-1.21.0 → aiagents4pharma-1.22.0}/aiagents4pharma/talk2biomodels/configs/tools/get_annotation/__init__.py +0 -0
  38. {aiagents4pharma-1.21.0 → aiagents4pharma-1.22.0}/aiagents4pharma/talk2biomodels/configs/tools/get_annotation/default.yaml +0 -0
  39. {aiagents4pharma-1.21.0 → aiagents4pharma-1.22.0}/aiagents4pharma/talk2biomodels/models/__init__.py +0 -0
  40. {aiagents4pharma-1.21.0 → aiagents4pharma-1.22.0}/aiagents4pharma/talk2biomodels/models/basico_model.py +0 -0
  41. {aiagents4pharma-1.21.0 → aiagents4pharma-1.22.0}/aiagents4pharma/talk2biomodels/models/sys_bio_model.py +0 -0
  42. {aiagents4pharma-1.21.0 → aiagents4pharma-1.22.0}/aiagents4pharma/talk2biomodels/states/__init__.py +0 -0
  43. {aiagents4pharma-1.21.0 → aiagents4pharma-1.22.0}/aiagents4pharma/talk2biomodels/states/state_talk2biomodels.py +0 -0
  44. {aiagents4pharma-1.21.0 → aiagents4pharma-1.22.0}/aiagents4pharma/talk2biomodels/tests/__init__.py +0 -0
  45. {aiagents4pharma-1.21.0 → aiagents4pharma-1.22.0}/aiagents4pharma/talk2biomodels/tests/test_api.py +0 -0
  46. {aiagents4pharma-1.21.0 → aiagents4pharma-1.22.0}/aiagents4pharma/talk2biomodels/tests/test_ask_question.py +0 -0
  47. {aiagents4pharma-1.21.0 → aiagents4pharma-1.22.0}/aiagents4pharma/talk2biomodels/tests/test_basico_model.py +0 -0
  48. {aiagents4pharma-1.21.0 → aiagents4pharma-1.22.0}/aiagents4pharma/talk2biomodels/tests/test_get_annotation.py +0 -0
  49. {aiagents4pharma-1.21.0 → aiagents4pharma-1.22.0}/aiagents4pharma/talk2biomodels/tests/test_getmodelinfo.py +0 -0
  50. {aiagents4pharma-1.21.0 → aiagents4pharma-1.22.0}/aiagents4pharma/talk2biomodels/tests/test_integration.py +0 -0
  51. {aiagents4pharma-1.21.0 → aiagents4pharma-1.22.0}/aiagents4pharma/talk2biomodels/tests/test_param_scan.py +0 -0
  52. {aiagents4pharma-1.21.0 → aiagents4pharma-1.22.0}/aiagents4pharma/talk2biomodels/tests/test_query_article.py +0 -0
  53. {aiagents4pharma-1.21.0 → aiagents4pharma-1.22.0}/aiagents4pharma/talk2biomodels/tests/test_search_models.py +0 -0
  54. {aiagents4pharma-1.21.0 → aiagents4pharma-1.22.0}/aiagents4pharma/talk2biomodels/tests/test_simulate_model.py +0 -0
  55. {aiagents4pharma-1.21.0 → aiagents4pharma-1.22.0}/aiagents4pharma/talk2biomodels/tests/test_steady_state.py +0 -0
  56. {aiagents4pharma-1.21.0 → aiagents4pharma-1.22.0}/aiagents4pharma/talk2biomodels/tests/test_sys_bio_model.py +0 -0
  57. {aiagents4pharma-1.21.0 → aiagents4pharma-1.22.0}/aiagents4pharma/talk2biomodels/tools/__init__.py +0 -0
  58. {aiagents4pharma-1.21.0 → aiagents4pharma-1.22.0}/aiagents4pharma/talk2biomodels/tools/ask_question.py +0 -0
  59. {aiagents4pharma-1.21.0 → aiagents4pharma-1.22.0}/aiagents4pharma/talk2biomodels/tools/custom_plotter.py +0 -0
  60. {aiagents4pharma-1.21.0 → aiagents4pharma-1.22.0}/aiagents4pharma/talk2biomodels/tools/get_annotation.py +0 -0
  61. {aiagents4pharma-1.21.0 → aiagents4pharma-1.22.0}/aiagents4pharma/talk2biomodels/tools/get_modelinfo.py +0 -0
  62. {aiagents4pharma-1.21.0 → aiagents4pharma-1.22.0}/aiagents4pharma/talk2biomodels/tools/load_arguments.py +0 -0
  63. {aiagents4pharma-1.21.0 → aiagents4pharma-1.22.0}/aiagents4pharma/talk2biomodels/tools/load_biomodel.py +0 -0
  64. {aiagents4pharma-1.21.0 → aiagents4pharma-1.22.0}/aiagents4pharma/talk2biomodels/tools/parameter_scan.py +0 -0
  65. {aiagents4pharma-1.21.0 → aiagents4pharma-1.22.0}/aiagents4pharma/talk2biomodels/tools/query_article.py +0 -0
  66. {aiagents4pharma-1.21.0 → aiagents4pharma-1.22.0}/aiagents4pharma/talk2biomodels/tools/search_models.py +0 -0
  67. {aiagents4pharma-1.21.0 → aiagents4pharma-1.22.0}/aiagents4pharma/talk2biomodels/tools/simulate_model.py +0 -0
  68. {aiagents4pharma-1.21.0 → aiagents4pharma-1.22.0}/aiagents4pharma/talk2biomodels/tools/steady_state.py +0 -0
  69. {aiagents4pharma-1.21.0 → aiagents4pharma-1.22.0}/aiagents4pharma/talk2cells/__init__.py +0 -0
  70. {aiagents4pharma-1.21.0 → aiagents4pharma-1.22.0}/aiagents4pharma/talk2cells/agents/__init__.py +0 -0
  71. {aiagents4pharma-1.21.0 → aiagents4pharma-1.22.0}/aiagents4pharma/talk2cells/agents/scp_agent.py +0 -0
  72. {aiagents4pharma-1.21.0 → aiagents4pharma-1.22.0}/aiagents4pharma/talk2cells/states/__init__.py +0 -0
  73. {aiagents4pharma-1.21.0 → aiagents4pharma-1.22.0}/aiagents4pharma/talk2cells/states/state_talk2cells.py +0 -0
  74. {aiagents4pharma-1.21.0 → aiagents4pharma-1.22.0}/aiagents4pharma/talk2cells/tests/scp_agent/test_scp_agent.py +0 -0
  75. {aiagents4pharma-1.21.0 → aiagents4pharma-1.22.0}/aiagents4pharma/talk2cells/tools/__init__.py +0 -0
  76. {aiagents4pharma-1.21.0 → aiagents4pharma-1.22.0}/aiagents4pharma/talk2cells/tools/scp_agent/__init__.py +0 -0
  77. {aiagents4pharma-1.21.0 → aiagents4pharma-1.22.0}/aiagents4pharma/talk2cells/tools/scp_agent/display_studies.py +0 -0
  78. {aiagents4pharma-1.21.0 → aiagents4pharma-1.22.0}/aiagents4pharma/talk2cells/tools/scp_agent/search_studies.py +0 -0
  79. {aiagents4pharma-1.21.0 → aiagents4pharma-1.22.0}/aiagents4pharma/talk2knowledgegraphs/__init__.py +0 -0
  80. {aiagents4pharma-1.21.0 → aiagents4pharma-1.22.0}/aiagents4pharma/talk2knowledgegraphs/agents/__init__.py +0 -0
  81. {aiagents4pharma-1.21.0 → aiagents4pharma-1.22.0}/aiagents4pharma/talk2knowledgegraphs/agents/t2kg_agent.py +0 -0
  82. {aiagents4pharma-1.21.0 → aiagents4pharma-1.22.0}/aiagents4pharma/talk2knowledgegraphs/configs/agents/t2kg_agent/__init__.py +0 -0
  83. {aiagents4pharma-1.21.0 → aiagents4pharma-1.22.0}/aiagents4pharma/talk2knowledgegraphs/configs/agents/t2kg_agent/default.yaml +0 -0
  84. {aiagents4pharma-1.21.0 → aiagents4pharma-1.22.0}/aiagents4pharma/talk2knowledgegraphs/configs/app/__init__.py +0 -0
  85. {aiagents4pharma-1.21.0 → aiagents4pharma-1.22.0}/aiagents4pharma/talk2knowledgegraphs/configs/app/frontend/__init__.py +0 -0
  86. {aiagents4pharma-1.21.0 → aiagents4pharma-1.22.0}/aiagents4pharma/talk2knowledgegraphs/configs/app/frontend/default.yaml +0 -0
  87. {aiagents4pharma-1.21.0 → aiagents4pharma-1.22.0}/aiagents4pharma/talk2knowledgegraphs/configs/tools/__init__.py +0 -0
  88. {aiagents4pharma-1.21.0 → aiagents4pharma-1.22.0}/aiagents4pharma/talk2knowledgegraphs/configs/tools/graphrag_reasoning/__init__.py +0 -0
  89. {aiagents4pharma-1.21.0 → aiagents4pharma-1.22.0}/aiagents4pharma/talk2knowledgegraphs/configs/tools/graphrag_reasoning/default.yaml +0 -0
  90. {aiagents4pharma-1.21.0 → aiagents4pharma-1.22.0}/aiagents4pharma/talk2knowledgegraphs/configs/tools/subgraph_extraction/__init__.py +0 -0
  91. {aiagents4pharma-1.21.0 → aiagents4pharma-1.22.0}/aiagents4pharma/talk2knowledgegraphs/configs/tools/subgraph_extraction/default.yaml +0 -0
  92. {aiagents4pharma-1.21.0 → aiagents4pharma-1.22.0}/aiagents4pharma/talk2knowledgegraphs/configs/tools/subgraph_summarization/__init__.py +0 -0
  93. {aiagents4pharma-1.21.0 → aiagents4pharma-1.22.0}/aiagents4pharma/talk2knowledgegraphs/configs/tools/subgraph_summarization/default.yaml +0 -0
  94. {aiagents4pharma-1.21.0 → aiagents4pharma-1.22.0}/aiagents4pharma/talk2knowledgegraphs/datasets/__init__.py +0 -0
  95. {aiagents4pharma-1.21.0 → aiagents4pharma-1.22.0}/aiagents4pharma/talk2knowledgegraphs/datasets/biobridge_primekg.py +0 -0
  96. {aiagents4pharma-1.21.0 → aiagents4pharma-1.22.0}/aiagents4pharma/talk2knowledgegraphs/datasets/dataset.py +0 -0
  97. {aiagents4pharma-1.21.0 → aiagents4pharma-1.22.0}/aiagents4pharma/talk2knowledgegraphs/datasets/primekg.py +0 -0
  98. {aiagents4pharma-1.21.0 → aiagents4pharma-1.22.0}/aiagents4pharma/talk2knowledgegraphs/datasets/starkqa_primekg.py +0 -0
  99. {aiagents4pharma-1.21.0 → aiagents4pharma-1.22.0}/aiagents4pharma/talk2knowledgegraphs/states/__init__.py +0 -0
  100. {aiagents4pharma-1.21.0 → aiagents4pharma-1.22.0}/aiagents4pharma/talk2knowledgegraphs/states/state_talk2knowledgegraphs.py +0 -0
  101. {aiagents4pharma-1.21.0 → aiagents4pharma-1.22.0}/aiagents4pharma/talk2knowledgegraphs/tests/__init__.py +0 -0
  102. {aiagents4pharma-1.21.0 → aiagents4pharma-1.22.0}/aiagents4pharma/talk2knowledgegraphs/tests/test_agents_t2kg_agent.py +0 -0
  103. {aiagents4pharma-1.21.0 → aiagents4pharma-1.22.0}/aiagents4pharma/talk2knowledgegraphs/tests/test_datasets_biobridge_primekg.py +0 -0
  104. {aiagents4pharma-1.21.0 → aiagents4pharma-1.22.0}/aiagents4pharma/talk2knowledgegraphs/tests/test_datasets_dataset.py +0 -0
  105. {aiagents4pharma-1.21.0 → aiagents4pharma-1.22.0}/aiagents4pharma/talk2knowledgegraphs/tests/test_datasets_primekg.py +0 -0
  106. {aiagents4pharma-1.21.0 → aiagents4pharma-1.22.0}/aiagents4pharma/talk2knowledgegraphs/tests/test_datasets_starkqa_primekg.py +0 -0
  107. {aiagents4pharma-1.21.0 → aiagents4pharma-1.22.0}/aiagents4pharma/talk2knowledgegraphs/tests/test_tools_graphrag_reasoning.py +0 -0
  108. {aiagents4pharma-1.21.0 → aiagents4pharma-1.22.0}/aiagents4pharma/talk2knowledgegraphs/tests/test_tools_subgraph_extraction.py +0 -0
  109. {aiagents4pharma-1.21.0 → aiagents4pharma-1.22.0}/aiagents4pharma/talk2knowledgegraphs/tests/test_tools_subgraph_summarization.py +0 -0
  110. {aiagents4pharma-1.21.0 → aiagents4pharma-1.22.0}/aiagents4pharma/talk2knowledgegraphs/tests/test_utils_embeddings_embeddings.py +0 -0
  111. {aiagents4pharma-1.21.0 → aiagents4pharma-1.22.0}/aiagents4pharma/talk2knowledgegraphs/tests/test_utils_embeddings_huggingface.py +0 -0
  112. {aiagents4pharma-1.21.0 → aiagents4pharma-1.22.0}/aiagents4pharma/talk2knowledgegraphs/tests/test_utils_embeddings_ollama.py +0 -0
  113. {aiagents4pharma-1.21.0 → aiagents4pharma-1.22.0}/aiagents4pharma/talk2knowledgegraphs/tests/test_utils_embeddings_sentencetransformer.py +0 -0
  114. {aiagents4pharma-1.21.0 → aiagents4pharma-1.22.0}/aiagents4pharma/talk2knowledgegraphs/tests/test_utils_enrichments_enrichments.py +0 -0
  115. {aiagents4pharma-1.21.0 → aiagents4pharma-1.22.0}/aiagents4pharma/talk2knowledgegraphs/tests/test_utils_enrichments_ollama.py +0 -0
  116. {aiagents4pharma-1.21.0 → aiagents4pharma-1.22.0}/aiagents4pharma/talk2knowledgegraphs/tests/test_utils_kg_utils.py +0 -0
  117. {aiagents4pharma-1.21.0 → aiagents4pharma-1.22.0}/aiagents4pharma/talk2knowledgegraphs/tools/__init__.py +0 -0
  118. {aiagents4pharma-1.21.0 → aiagents4pharma-1.22.0}/aiagents4pharma/talk2knowledgegraphs/tools/graphrag_reasoning.py +0 -0
  119. {aiagents4pharma-1.21.0 → aiagents4pharma-1.22.0}/aiagents4pharma/talk2knowledgegraphs/tools/load_arguments.py +0 -0
  120. {aiagents4pharma-1.21.0 → aiagents4pharma-1.22.0}/aiagents4pharma/talk2knowledgegraphs/tools/subgraph_extraction.py +0 -0
  121. {aiagents4pharma-1.21.0 → aiagents4pharma-1.22.0}/aiagents4pharma/talk2knowledgegraphs/tools/subgraph_summarization.py +0 -0
  122. {aiagents4pharma-1.21.0 → aiagents4pharma-1.22.0}/aiagents4pharma/talk2knowledgegraphs/utils/embeddings/embeddings.py +0 -0
  123. {aiagents4pharma-1.21.0 → aiagents4pharma-1.22.0}/aiagents4pharma/talk2knowledgegraphs/utils/embeddings/huggingface.py +0 -0
  124. {aiagents4pharma-1.21.0 → aiagents4pharma-1.22.0}/aiagents4pharma/talk2knowledgegraphs/utils/embeddings/ollama.py +0 -0
  125. {aiagents4pharma-1.21.0 → aiagents4pharma-1.22.0}/aiagents4pharma/talk2knowledgegraphs/utils/embeddings/sentence_transformer.py +0 -0
  126. {aiagents4pharma-1.21.0 → aiagents4pharma-1.22.0}/aiagents4pharma/talk2knowledgegraphs/utils/enrichments/enrichments.py +0 -0
  127. {aiagents4pharma-1.21.0 → aiagents4pharma-1.22.0}/aiagents4pharma/talk2knowledgegraphs/utils/enrichments/ollama.py +0 -0
  128. {aiagents4pharma-1.21.0 → aiagents4pharma-1.22.0}/aiagents4pharma/talk2knowledgegraphs/utils/extractions/__init__.py +0 -0
  129. {aiagents4pharma-1.21.0 → aiagents4pharma-1.22.0}/aiagents4pharma/talk2knowledgegraphs/utils/extractions/pcst.py +0 -0
  130. {aiagents4pharma-1.21.0 → aiagents4pharma-1.22.0}/aiagents4pharma/talk2knowledgegraphs/utils/kg_utils.py +0 -0
  131. {aiagents4pharma-1.21.0 → aiagents4pharma-1.22.0}/aiagents4pharma/talk2scholars/__init__.py +0 -0
  132. {aiagents4pharma-1.21.0 → aiagents4pharma-1.22.0}/aiagents4pharma/talk2scholars/agents/__init__.py +0 -0
  133. {aiagents4pharma-1.21.0 → aiagents4pharma-1.22.0}/aiagents4pharma/talk2scholars/agents/main_agent.py +0 -0
  134. {aiagents4pharma-1.21.0 → aiagents4pharma-1.22.0}/aiagents4pharma/talk2scholars/agents/s2_agent.py +0 -0
  135. {aiagents4pharma-1.21.0 → aiagents4pharma-1.22.0}/aiagents4pharma/talk2scholars/configs/__init__.py +0 -0
  136. {aiagents4pharma-1.21.0 → aiagents4pharma-1.22.0}/aiagents4pharma/talk2scholars/configs/agents/__init__.py +0 -0
  137. {aiagents4pharma-1.21.0 → aiagents4pharma-1.22.0}/aiagents4pharma/talk2scholars/configs/agents/talk2scholars/__init__.py +0 -0
  138. {aiagents4pharma-1.21.0 → aiagents4pharma-1.22.0}/aiagents4pharma/talk2scholars/configs/agents/talk2scholars/main_agent/__init__.py +0 -0
  139. {aiagents4pharma-1.21.0 → aiagents4pharma-1.22.0}/aiagents4pharma/talk2scholars/configs/agents/talk2scholars/main_agent/default.yaml +0 -0
  140. {aiagents4pharma-1.21.0 → aiagents4pharma-1.22.0}/aiagents4pharma/talk2scholars/configs/agents/talk2scholars/s2_agent/__init__.py +0 -0
  141. {aiagents4pharma-1.21.0 → aiagents4pharma-1.22.0}/aiagents4pharma/talk2scholars/configs/agents/talk2scholars/s2_agent/default.yaml +0 -0
  142. {aiagents4pharma-1.21.0 → aiagents4pharma-1.22.0}/aiagents4pharma/talk2scholars/configs/app/__init__.py +0 -0
  143. {aiagents4pharma-1.21.0 → aiagents4pharma-1.22.0}/aiagents4pharma/talk2scholars/configs/app/frontend/__init__.py +0 -0
  144. {aiagents4pharma-1.21.0 → aiagents4pharma-1.22.0}/aiagents4pharma/talk2scholars/configs/app/frontend/default.yaml +0 -0
  145. {aiagents4pharma-1.21.0 → aiagents4pharma-1.22.0}/aiagents4pharma/talk2scholars/configs/config.yaml +0 -0
  146. {aiagents4pharma-1.21.0 → aiagents4pharma-1.22.0}/aiagents4pharma/talk2scholars/configs/tools/__init__.py +0 -0
  147. {aiagents4pharma-1.21.0 → aiagents4pharma-1.22.0}/aiagents4pharma/talk2scholars/configs/tools/multi_paper_recommendation/__init__.py +0 -0
  148. {aiagents4pharma-1.21.0 → aiagents4pharma-1.22.0}/aiagents4pharma/talk2scholars/configs/tools/multi_paper_recommendation/default.yaml +0 -0
  149. {aiagents4pharma-1.21.0 → aiagents4pharma-1.22.0}/aiagents4pharma/talk2scholars/configs/tools/retrieve_semantic_scholar_paper_id/__init__.py +0 -0
  150. {aiagents4pharma-1.21.0 → aiagents4pharma-1.22.0}/aiagents4pharma/talk2scholars/configs/tools/search/__init__.py +0 -0
  151. {aiagents4pharma-1.21.0 → aiagents4pharma-1.22.0}/aiagents4pharma/talk2scholars/configs/tools/search/default.yaml +0 -0
  152. {aiagents4pharma-1.21.0 → aiagents4pharma-1.22.0}/aiagents4pharma/talk2scholars/configs/tools/single_paper_recommendation/__init__.py +0 -0
  153. {aiagents4pharma-1.21.0 → aiagents4pharma-1.22.0}/aiagents4pharma/talk2scholars/configs/tools/single_paper_recommendation/default.yaml +0 -0
  154. {aiagents4pharma-1.21.0 → aiagents4pharma-1.22.0}/aiagents4pharma/talk2scholars/state/__init__.py +0 -0
  155. {aiagents4pharma-1.21.0 → aiagents4pharma-1.22.0}/aiagents4pharma/talk2scholars/state/state_talk2scholars.py +0 -0
  156. {aiagents4pharma-1.21.0 → aiagents4pharma-1.22.0}/aiagents4pharma/talk2scholars/tests/__init__.py +0 -0
  157. {aiagents4pharma-1.21.0 → aiagents4pharma-1.22.0}/aiagents4pharma/talk2scholars/tests/test_llm_main_integration.py +0 -0
  158. {aiagents4pharma-1.21.0 → aiagents4pharma-1.22.0}/aiagents4pharma/talk2scholars/tests/test_main_agent.py +0 -0
  159. {aiagents4pharma-1.21.0 → aiagents4pharma-1.22.0}/aiagents4pharma/talk2scholars/tests/test_s2_agent.py +0 -0
  160. {aiagents4pharma-1.21.0 → aiagents4pharma-1.22.0}/aiagents4pharma/talk2scholars/tests/test_s2_tools.py +0 -0
  161. {aiagents4pharma-1.21.0 → aiagents4pharma-1.22.0}/aiagents4pharma/talk2scholars/tests/test_state.py +0 -0
  162. {aiagents4pharma-1.21.0 → aiagents4pharma-1.22.0}/aiagents4pharma/talk2scholars/tools/__init__.py +0 -0
  163. {aiagents4pharma-1.21.0 → aiagents4pharma-1.22.0}/aiagents4pharma/talk2scholars/tools/s2/__init__.py +0 -0
  164. {aiagents4pharma-1.21.0 → aiagents4pharma-1.22.0}/aiagents4pharma/talk2scholars/tools/s2/display_results.py +0 -0
  165. {aiagents4pharma-1.21.0 → aiagents4pharma-1.22.0}/aiagents4pharma/talk2scholars/tools/s2/multi_paper_rec.py +0 -0
  166. {aiagents4pharma-1.21.0 → aiagents4pharma-1.22.0}/aiagents4pharma/talk2scholars/tools/s2/query_results.py +0 -0
  167. {aiagents4pharma-1.21.0 → aiagents4pharma-1.22.0}/aiagents4pharma/talk2scholars/tools/s2/retrieve_semantic_scholar_paper_id.py +0 -0
  168. {aiagents4pharma-1.21.0 → aiagents4pharma-1.22.0}/aiagents4pharma/talk2scholars/tools/s2/search.py +0 -0
  169. {aiagents4pharma-1.21.0 → aiagents4pharma-1.22.0}/aiagents4pharma/talk2scholars/tools/s2/single_paper_rec.py +0 -0
  170. {aiagents4pharma-1.21.0 → aiagents4pharma-1.22.0}/aiagents4pharma.egg-info/dependency_links.txt +0 -0
  171. {aiagents4pharma-1.21.0 → aiagents4pharma-1.22.0}/aiagents4pharma.egg-info/top_level.txt +0 -0
  172. {aiagents4pharma-1.21.0 → aiagents4pharma-1.22.0}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: aiagents4pharma
3
- Version: 1.21.0
3
+ Version: 1.22.0
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
@@ -30,6 +30,7 @@ Requires-Dist: ollama==0.4.6
30
30
  Requires-Dist: pandas==2.2.3
31
31
  Requires-Dist: pcst_fast==1.0.10
32
32
  Requires-Dist: plotly==5.24.1
33
+ Requires-Dist: pubchempy==1.0.4
33
34
  Requires-Dist: pydantic==2.9.2
34
35
  Requires-Dist: pylint==3.3.1
35
36
  Requires-Dist: pypdf==5.2.0
@@ -5,3 +5,4 @@ Import all the modules in the package
5
5
  from . import agents
6
6
  from . import tools
7
7
  from . import app
8
+ from . import utils
@@ -4,4 +4,5 @@ defaults:
4
4
  - tools/subgraph_extraction: default
5
5
  - tools/subgraph_summarization: default
6
6
  - tools/graphrag_reasoning: default
7
+ - utils/pubchem_utils: default
7
8
  - app/frontend: default
@@ -0,0 +1,64 @@
1
+ #!/usr/bin/env python3
2
+
3
+ """
4
+ Test cases for utils/embeddings/nim_molmim.py
5
+ """
6
+
7
+ import unittest
8
+ from unittest.mock import patch, MagicMock
9
+ from ..utils.embeddings.nim_molmim import EmbeddingWithMOLMIM
10
+
11
+ class TestEmbeddingWithMOLMIM(unittest.TestCase):
12
+ """
13
+ Test cases for EmbeddingWithMOLMIM class.
14
+ """
15
+ def setUp(self):
16
+ self.base_url = "https://fake-nim-api.com/embeddings"
17
+ self.embeddings_model = EmbeddingWithMOLMIM(self.base_url)
18
+ self.test_texts = ["CCO", "CCC", "C=O"]
19
+ self.test_query = "CCO"
20
+ self.mock_response = {
21
+ "embeddings": [[0.1, 0.2, 0.3], [0.4, 0.5, 0.6], [0.7, 0.8, 0.9]]
22
+ }
23
+
24
+ @patch("requests.post")
25
+ def test_embed_documents(self, mock_post):
26
+ '''
27
+ Test the embed_documents method.
28
+ '''
29
+ # Mock the response from requests.post
30
+ mock_post.return_value = MagicMock()
31
+ mock_post.return_value.json.return_value = self.mock_response
32
+ embeddings = self.embeddings_model.embed_documents(self.test_texts)
33
+ # Assertions
34
+ self.assertEqual(embeddings, self.mock_response["embeddings"])
35
+ mock_post.assert_called_once_with(
36
+ self.base_url,
37
+ headers={
38
+ 'accept': 'application/json',
39
+ 'Content-Type': 'application/json'
40
+ },
41
+ data='{"sequences": ["CCO", "CCC", "C=O"]}',
42
+ timeout=60
43
+ )
44
+
45
+ @patch("requests.post")
46
+ def test_embed_query(self, mock_post):
47
+ '''
48
+ Test the embed_query method.
49
+ '''
50
+ # Mock the response from requests.post
51
+ mock_post.return_value = MagicMock()
52
+ mock_post.return_value.json.return_value = {"embeddings": [[0.1, 0.2, 0.3]]}
53
+ embedding = self.embeddings_model.embed_query(self.test_query)
54
+ # Assertions
55
+ self.assertEqual(embedding, [[0.1, 0.2, 0.3]])
56
+ mock_post.assert_called_once_with(
57
+ self.base_url,
58
+ headers={
59
+ 'accept': 'application/json',
60
+ 'Content-Type': 'application/json'
61
+ },
62
+ data='{"sequences": ["CCO"]}',
63
+ timeout=60
64
+ )
@@ -0,0 +1,33 @@
1
+ #!/usr/bin/env python3
2
+
3
+ """
4
+ Test cases for utils/enrichments/pubchem_strings.py
5
+ """
6
+
7
+ import pytest
8
+ from ..utils.enrichments.pubchem_strings import EnrichmentWithPubChem
9
+
10
+ # In this test, we will consider 2 examples:
11
+ # 1. PubChem ID: 5311000 (Alclometasone)
12
+ # 2. PubChem ID: 1X (Fake ID)
13
+ # The expected SMILES representation for the first PubChem ID is:
14
+ SMILES_FIRST = 'C[C@@H]1C[C@H]2[C@@H]3[C@@H](CC4=CC(=O)C=C[C@@]'
15
+ SMILES_FIRST += '4([C@H]3[C@H](C[C@@]2([C@]1(C(=O)CO)O)C)O)C)Cl'
16
+ # The expected SMILES representation for the second PubChem ID is None.
17
+
18
+ @pytest.fixture(name="enrich_obj")
19
+ def fixture_pubchem_config():
20
+ """Return a dictionary with the configuration for the PubChem enrichment."""
21
+ return EnrichmentWithPubChem()
22
+
23
+ def test_enrich_documents(enrich_obj):
24
+ """Test the enrich_documents method."""
25
+ pubchem_ids = ["5311000", "1X"]
26
+ enriched_strings = enrich_obj.enrich_documents(pubchem_ids)
27
+ assert enriched_strings == [SMILES_FIRST, None]
28
+
29
+ def test_enrich_documents_with_rag(enrich_obj):
30
+ """Test the enrich_documents_with_rag method."""
31
+ pubchem_ids = ["5311000", "1X"]
32
+ enriched_strings = enrich_obj.enrich_documents_with_rag(pubchem_ids, None)
33
+ assert enriched_strings == [SMILES_FIRST, None]
@@ -0,0 +1,16 @@
1
+ """
2
+ Test cases for utils/pubchem_utils.py
3
+ """
4
+
5
+ from ..utils import pubchem_utils
6
+
7
+ def test_drugbank_id2pubchem_cid():
8
+ """
9
+ Test the drugbank_id2pubchem_cid method.
10
+
11
+ The DrugBank ID for Alclometasone is DB00240.
12
+ The PubChem CID for Alclometasone is 5311000.
13
+ """
14
+ drugbank_id = "DB00240"
15
+ pubchem_cid = pubchem_utils.drugbank_id2pubchem_cid(drugbank_id)
16
+ assert pubchem_cid == 5311000
@@ -5,3 +5,4 @@ from . import embeddings
5
5
  from . import enrichments
6
6
  from . import extractions
7
7
  from . import kg_utils
8
+ from . import pubchem_utils
@@ -5,3 +5,4 @@ from . import embeddings
5
5
  from . import sentence_transformer
6
6
  from . import huggingface
7
7
  from . import ollama
8
+ from . import nim_molmim
@@ -0,0 +1,54 @@
1
+ """
2
+ Embedding class using MOLMIM model from NVIDIA NIM.
3
+ """
4
+
5
+ import json
6
+ from typing import List
7
+ import requests
8
+ from .embeddings import Embeddings
9
+
10
+ class EmbeddingWithMOLMIM(Embeddings):
11
+ """
12
+ Embedding class using MOLMIM model from NVIDIA NIM
13
+ """
14
+ def __init__(self, base_url: str):
15
+ """
16
+ Initialize the EmbeddingWithMOLMIM class.
17
+
18
+ Args:
19
+ base_url: The base URL for the NIM/MOLMIM model.
20
+ """
21
+ # Set base URL
22
+ self.base_url = base_url
23
+
24
+ def embed_documents(self, texts: List[str]) -> List[float]:
25
+ """
26
+ Generate embedding for a list of SMILES strings using MOLMIM model.
27
+
28
+ Args:
29
+ texts: The list of SMILES strings to be embedded.
30
+
31
+ Returns:
32
+ The list of embeddings for the given SMILES strings.
33
+ """
34
+ headers = {
35
+ 'accept': 'application/json',
36
+ 'Content-Type': 'application/json'
37
+ }
38
+ data = json.dumps({"sequences": texts})
39
+ response = requests.post(self.base_url, headers=headers, data=data, timeout=60)
40
+ embeddings = response.json()["embeddings"]
41
+ return embeddings
42
+
43
+ def embed_query(self, text: str) -> List[float]:
44
+ """
45
+ Generate embeddings for an input query using MOLMIM model.
46
+
47
+ Args:
48
+ text: A query to be embedded.
49
+ Returns:
50
+ The embeddings for the given query.
51
+ """
52
+ # Generate the embedding
53
+ embeddings = self.embed_documents([text])
54
+ return embeddings
@@ -3,3 +3,4 @@ This package contains modules to use the enrichment model
3
3
  """
4
4
  from . import enrichments
5
5
  from . import ollama
6
+ from . import pubchem_strings
@@ -0,0 +1,49 @@
1
+ #!/usr/bin/env python3
2
+
3
+ """
4
+ Enrichment class for enriching PubChem IDs with their STRINGS representation.
5
+ """
6
+
7
+ from typing import List
8
+ import pubchempy as pcp
9
+ from .enrichments import Enrichments
10
+
11
+ class EnrichmentWithPubChem(Enrichments):
12
+ """
13
+ Enrichment class using PubChem
14
+ """
15
+ def enrich_documents(self, texts: List[str]) -> List[str]:
16
+ """
17
+ Enrich a list of input PubChem IDs with their STRINGS representation.
18
+
19
+ Args:
20
+ texts: The list of pubchem IDs to be enriched.
21
+
22
+ Returns:
23
+ The list of enriched STRINGS
24
+ """
25
+
26
+ enriched_pubchem_ids = []
27
+ pubchem_cids = texts
28
+ for pubchem_cid in pubchem_cids:
29
+ try:
30
+ c = pcp.Compound.from_cid(pubchem_cid)
31
+ except pcp.BadRequestError:
32
+ enriched_pubchem_ids.append(None)
33
+ continue
34
+ enriched_pubchem_ids.append(c.isomeric_smiles)
35
+
36
+ return enriched_pubchem_ids
37
+
38
+ def enrich_documents_with_rag(self, texts, docs):
39
+ """
40
+ Enrich a list of input PubChem IDs with their STRINGS representation.
41
+
42
+ Args:
43
+ texts: The list of pubchem IDs to be enriched.
44
+ docs: None
45
+
46
+ Returns:
47
+ The list of enriched STRINGS
48
+ """
49
+ return self.enrich_documents(texts)
@@ -0,0 +1,42 @@
1
+ #!/usr/bin/env python3
2
+
3
+ """
4
+ Enrichment class for enriching PubChem IDs with their STRINGS representation.
5
+ """
6
+
7
+ import logging
8
+ import requests
9
+ import hydra
10
+
11
+ # Initialize logger
12
+ logging.basicConfig(level=logging.INFO)
13
+ logger = logging.getLogger(__name__)
14
+
15
+ def drugbank_id2pubchem_cid(drugbank_id):
16
+ """
17
+ Convert DrugBank ID to PubChem CID.
18
+
19
+ Args:
20
+ drugbank_id: The DrugBank ID of the drug.
21
+
22
+ Returns:
23
+ The PubChem CID of the drug.
24
+ """
25
+ logger.log(logging.INFO, "Load Hydra configuration for PubChem ID conversion.")
26
+ with hydra.initialize(version_base=None, config_path="../configs"):
27
+ cfg = hydra.compose(config_name='config',
28
+ overrides=['utils/pubchem_utils=default'])
29
+ cfg = cfg.utils.pubchem_utils
30
+ # Prepare the URL
31
+ pubchem_url_for_drug = cfg.drugbank_id_to_pubchem_cid_url + drugbank_id + '/JSON'
32
+ # Get the data
33
+ response = requests.get(pubchem_url_for_drug, timeout=60)
34
+ data = response.json()
35
+ # Extract the PubChem CID
36
+ cid = None
37
+ for substance in data.get("PC_Substances", []):
38
+ for compound in substance.get("compound", []):
39
+ if "id" in compound and "type" in compound["id"] and compound["id"]["type"] == 1:
40
+ cid = compound["id"].get("id", {}).get("cid")
41
+ break
42
+ return cid
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: aiagents4pharma
3
- Version: 1.21.0
3
+ Version: 1.22.0
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
@@ -30,6 +30,7 @@ Requires-Dist: ollama==0.4.6
30
30
  Requires-Dist: pandas==2.2.3
31
31
  Requires-Dist: pcst_fast==1.0.10
32
32
  Requires-Dist: plotly==5.24.1
33
+ Requires-Dist: pubchempy==1.0.4
33
34
  Requires-Dist: pydantic==2.9.2
34
35
  Requires-Dist: pylint==3.3.1
35
36
  Requires-Dist: pypdf==5.2.0
@@ -100,11 +100,14 @@ aiagents4pharma/talk2knowledgegraphs/tests/test_tools_subgraph_extraction.py
100
100
  aiagents4pharma/talk2knowledgegraphs/tests/test_tools_subgraph_summarization.py
101
101
  aiagents4pharma/talk2knowledgegraphs/tests/test_utils_embeddings_embeddings.py
102
102
  aiagents4pharma/talk2knowledgegraphs/tests/test_utils_embeddings_huggingface.py
103
+ aiagents4pharma/talk2knowledgegraphs/tests/test_utils_embeddings_nim_molmim.py
103
104
  aiagents4pharma/talk2knowledgegraphs/tests/test_utils_embeddings_ollama.py
104
105
  aiagents4pharma/talk2knowledgegraphs/tests/test_utils_embeddings_sentencetransformer.py
105
106
  aiagents4pharma/talk2knowledgegraphs/tests/test_utils_enrichments_enrichments.py
106
107
  aiagents4pharma/talk2knowledgegraphs/tests/test_utils_enrichments_ollama.py
108
+ aiagents4pharma/talk2knowledgegraphs/tests/test_utils_enrichments_pubchem.py
107
109
  aiagents4pharma/talk2knowledgegraphs/tests/test_utils_kg_utils.py
110
+ aiagents4pharma/talk2knowledgegraphs/tests/test_utils_pubchem_utils.py
108
111
  aiagents4pharma/talk2knowledgegraphs/tools/__init__.py
109
112
  aiagents4pharma/talk2knowledgegraphs/tools/graphrag_reasoning.py
110
113
  aiagents4pharma/talk2knowledgegraphs/tools/load_arguments.py
@@ -112,14 +115,17 @@ aiagents4pharma/talk2knowledgegraphs/tools/subgraph_extraction.py
112
115
  aiagents4pharma/talk2knowledgegraphs/tools/subgraph_summarization.py
113
116
  aiagents4pharma/talk2knowledgegraphs/utils/__init__.py
114
117
  aiagents4pharma/talk2knowledgegraphs/utils/kg_utils.py
118
+ aiagents4pharma/talk2knowledgegraphs/utils/pubchem_utils.py
115
119
  aiagents4pharma/talk2knowledgegraphs/utils/embeddings/__init__.py
116
120
  aiagents4pharma/talk2knowledgegraphs/utils/embeddings/embeddings.py
117
121
  aiagents4pharma/talk2knowledgegraphs/utils/embeddings/huggingface.py
122
+ aiagents4pharma/talk2knowledgegraphs/utils/embeddings/nim_molmim.py
118
123
  aiagents4pharma/talk2knowledgegraphs/utils/embeddings/ollama.py
119
124
  aiagents4pharma/talk2knowledgegraphs/utils/embeddings/sentence_transformer.py
120
125
  aiagents4pharma/talk2knowledgegraphs/utils/enrichments/__init__.py
121
126
  aiagents4pharma/talk2knowledgegraphs/utils/enrichments/enrichments.py
122
127
  aiagents4pharma/talk2knowledgegraphs/utils/enrichments/ollama.py
128
+ aiagents4pharma/talk2knowledgegraphs/utils/enrichments/pubchem_strings.py
123
129
  aiagents4pharma/talk2knowledgegraphs/utils/extractions/__init__.py
124
130
  aiagents4pharma/talk2knowledgegraphs/utils/extractions/pcst.py
125
131
  aiagents4pharma/talk2scholars/__init__.py
@@ -20,6 +20,7 @@ ollama==0.4.6
20
20
  pandas==2.2.3
21
21
  pcst_fast==1.0.10
22
22
  plotly==5.24.1
23
+ pubchempy==1.0.4
23
24
  pydantic==2.9.2
24
25
  pylint==3.3.1
25
26
  pypdf==5.2.0
@@ -35,6 +35,7 @@ dependencies = [
35
35
  "pandas==2.2.3",
36
36
  "pcst_fast==1.0.10",
37
37
  "plotly==5.24.1",
38
+ "pubchempy==1.0.4",
38
39
  "pydantic==2.9.2",
39
40
  "pylint==3.3.1",
40
41
  "pypdf==5.2.0",
@@ -0,0 +1 @@
1
+ v1.22.0
@@ -1 +0,0 @@
1
- v1.21.0