bioguider 0.2.17__py3-none-any.whl → 0.2.19__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.

Potentially problematic release.


This version of bioguider might be problematic. Click here for more details.

@@ -20,7 +20,7 @@ class CommonConversation:
20
20
  )
21
21
  response = result.generations[0][0].text
22
22
  token_usage = result.llm_output.get("token_usage")
23
- return response, token_usage
23
+ return response, vars(token_usage)
24
24
 
25
25
  def generate_with_schema(self, system_prompt: str, instruction_prompt: str, schema: any):
26
26
  system_prompt = escape_braces(system_prompt)
@@ -90,11 +90,39 @@ You will be given:
90
90
  4. Your improvement suggestions must also include the original text snippet and the improving comments.
91
91
  5. Your improvement suggestions must also include suggestions to improve readability.
92
92
  6. If you think the it is good enough, you can say so.
93
+ 7. In each section output, please first give a detailed explanation of the assessment, and then provide the detailed suggestion for improvement. If you think the it is good enough, you can say so.
94
+ The following is an example of the output format:
95
+ **Ease of Access:**
96
+ Detailed explanation of the assessment. Such as: The INSTALLATION file is present in the repository. The content of the file has been shared completely and is accessible. This confirms the availability of the installation documentation for evaluation. There's no issue with availability.
97
+ Detailed suggestion for improvement. Such as: No need to improve accessibility of the installation documentation.
98
+ **Clarity of Dependency Specification:**
99
+ Detailed explanation of the assessment. Such as: The installation section provides a clear list of dependencies. No need to improve.
100
+ Detailed suggestion for improvement. Such as: No need to improve.
101
+ **Hardware Requirements:**
102
+ Detailed explanation of the assessment. Such as: No hardware requirements are provided in the installation section.
103
+ Detailed suggestion for improvement. Such as: Add a section to describe the hardware requirements for the installation.
104
+ **Installation Guide:**
105
+ Detailed explanation of the assessment. Such as: The installation guide is present in the INSTALLATION file, but lacks a clear and concise guide for the installation process.
106
+ Detailed suggestion for improvement. Such as:
107
+ - Add a clear and concise guide for the installation process.
108
+ - Improve the readability of the installation guide, like:
109
+ - <original text snippet> - <improving comments>
110
+ - <original text snippet> - <improving comments>
111
+ - ...
112
+ **Compatible Operating System:**
113
+ Detailed explanation of the assessment. Such as: No compatible operating system is provided in the installation section.
114
+ Detailed suggestion for improvement. Such as:
115
+ - Add a section to describe the compatible operating systems for the installation.
116
+ - For example, Ubuntu 22.04 LTS+, CentOS 7+, Mac OS X 10.15+, Windows 10+ are supported.
117
+ - ...
118
+ **Overall Score:**
119
+ Detailed explanation of the assessment. Such as: The installation section provides a clear list of installation steps. No need to improve.
120
+ Detailed suggestion for improvement. Such as: Add a section to describe the compatible operating systems for the installation.
93
121
 
94
122
  ---
95
123
 
96
124
  ### **Output Format**
97
- Your output must **exactly match** the following format. Do not add or omit any sections.
125
+ Your output must **exactly match** the following format. Do not add or omit any sections. In the output, your detailed assessment and detailed suggestion must include the original text snippet and the improving comments, and include the analysis and explanation.
98
126
 
99
127
  **FinalAnswer**
100
128
  **Ease of Access:**
@@ -107,6 +135,8 @@ Your output must **exactly match** the following format. Do not add or omit any
107
135
  <Your assessment and suggestion here>
108
136
  **Compatible Operating System:**
109
137
  <Your assessment and suggestion here>
138
+ **Overall Score:**
139
+ <Your assessment and suggestion here>
110
140
 
111
141
  ---
112
142
 
@@ -194,7 +224,7 @@ class EvaluationInstallationTask(EvaluationTask):
194
224
  installation_files_content=files_content,
195
225
  structured_evaluation_and_reasoning_process=structured_evaluation_and_reasoning_process,
196
226
  )
197
- agent = CommonAgentTwoChainSteps(llm=self.llm)
227
+ agent = CommonAgentTwoSteps(llm=self.llm)
198
228
  res, _, token_usage, reasoning_process = agent.go(
199
229
  system_prompt=system_prompt,
200
230
  instruction_prompt=EVALUATION_INSTRUCTION,
@@ -13,7 +13,10 @@ from bioguider.agents.agent_utils import (
13
13
  read_file, read_license_file,
14
14
  summarize_file
15
15
  )
16
- from bioguider.agents.common_agent_2step import CommonAgentTwoChainSteps
16
+ from bioguider.agents.common_agent_2step import (
17
+ CommonAgentTwoChainSteps,
18
+ CommonAgentTwoSteps,
19
+ )
17
20
  from bioguider.agents.evaluation_task import EvaluationTask
18
21
  from bioguider.utils.constants import (
19
22
  DEFAULT_TOKEN_USAGE,
@@ -168,19 +171,8 @@ You will be given:
168
171
 
169
172
  ---
170
173
 
171
- ### **Instructions**
172
- 1. Based on the provided structured evaluation and its reasoning process, generate a free evaluation of the README file.
173
- 2. Focus on the explanation of assessment in structured evaluation and how to improve the README file based on the structured evaluation and its reasoning process.
174
- * For each suggestion to improve the README file, you **must provide some examples** of the original text snippet and the improving comments.
175
- 3. For each item in the structured evaluation, provide a detailed assessment followed by specific, actionable comments for improvement.
176
- 4. Your improvement suggestions must also include the original text snippet and the improving comments.
177
- 5. Your improvement suggestions must also include suggestions to improve readability.
178
- 6. If you think the it is good enough, you can say so.
179
-
180
- ---
181
-
182
174
  ### **Output Format**
183
- Your output must **exactly match** the following format. Do not add or omit any sections.
175
+ Your output must **exactly match** the following format. Do not add or omit any sections.
184
176
 
185
177
  **FinalAnswer**
186
178
  **Available:**
@@ -195,8 +187,67 @@ Your output must **exactly match** the following format. Do not add or omit any
195
187
  <Your assessment and suggestion here>
196
188
  **License Information Included:**
197
189
  <Your assessment and suggestion here>
198
- ** Code contributor / Author information included
190
+ **Code contributor / Author information included
191
+ <Your assessment and suggestion here>
192
+ **Overall Score:**
199
193
  <Your assessment and suggestion here>
194
+ ---
195
+
196
+ ### **Instructions**
197
+ 1. Based on the provided structured evaluation and its reasoning process, generate a free evaluation of the README file.
198
+ 2. Focus on the explanation of assessment in structured evaluation and how to improve the README file based on the structured evaluation and its reasoning process.
199
+ * For each suggestion to improve the README file, you **must provide some examples** of the original text snippet and the improving comments.
200
+ 3. For each item in the structured evaluation, provide a detailed assessment followed by specific, actionable comments for improvement.
201
+ 4. Your improvement suggestions must also include the original text snippet and the improving comments.
202
+ 5. Your improvement suggestions must also include suggestions to improve readability.
203
+ 6. In the **FinalAnswer** of output, in each section output, please first give a detailed explanation of the assessment, and then provide the detailed suggestion for improvement. If you think the it is good enough, you can say so.
204
+ The following is an example of the output format:
205
+ **FinalAnswer**
206
+ **Available:**
207
+ Detailed explanation of the assessment. Such as: The README file is present in the repository. The content of the file has been shared completely and is accessible. This confirms the availability of the README documentation for evaluation. There's no issue with availability.
208
+ Detailed suggestion for improvement. Such as: Add a brief introductory section summarizing the project and its main purpose would help orient readers.
209
+ **Readability:**
210
+ Detailed explanation of the assessment. Such as: The README is relatively easy to read for someone around the sixth-grade level. While the technical details provided are moderately easy to understand for those familiar with programming and command-line tools, newbies or non-technical users might face challenges due to jargon and lack of introductory explanations.
211
+ Detailed suggestion for improvement. Such as:
212
+ - Add a brief introductory section summarizing the project and its main purpose would help orient readers.
213
+ - <original text snippet> - <improving comments>
214
+ - <original text snippet> - <improving comments>
215
+ - ...
216
+ - Break down long instructions into smaller bullet points.
217
+ **Project Purpose:**
218
+ Detailed explanation of the assessment. Such as: The README indirectly describes project activities like benchmarking and assessing functionalities using LLMs and tools like Poetry. However, it lacks a direct statement that defines the overarching project goals or explains who the intended audience is.
219
+ Detailed suggestion for improvement. Such as:
220
+ - Including a clear project purpose at the beginning, such as: "This project provides a framework for evaluating tabular data models using large language model (LLM)-based assessments. Developers and researchers interested in benchmarking data model performance will find this repository particularly useful."
221
+ - <original text snippet> - <improving comments>
222
+ - <original text snippet> - <improving comments>
223
+ - ...
224
+ **Hardware and software spec and compatibility description:**
225
+ Detailed explanation of the assessment. Such as: The README provides partial information about software requirements, emphasizing tools like Poetry. Instructions regarding the setup of `.env` files and API keys are also provided. However, it doesn't specify hardware considerations like memory requirements or explain whether the software is compatible with particular operating systems. This omission can limit usability for certain users.
226
+ Detailed suggestion for improvement. Such as:
227
+ - Adding a subsection titled "Hardware Requirements" to outline memory, processor, or other computational dependencies for running benchmarks effectively.
228
+ - <original text snippet> - <improving comments>
229
+ - <original text snippet> - <improving comments>
230
+ - ...
231
+ **Dependencies clearly stated:**
232
+ Detailed explanation of the assessment. Such as: Dependencies are referenced sporadically throughout the README (e.g., using Poetry to install certain tools). However, there isn't a dedicated section that consolidates these into a simple and easy-to-follow format. This could hinder understanding, especially for users looking to quickly identify and install necessary dependencies.
233
+ Detailed suggestion for improvement. Such as:
234
+ - The dependencies are listed in the README and requirements.txt file. No need to improve.
235
+ **License Information Included:**
236
+ Detailed explanation of the assessment. Such as: The README mentions the MIT license, which is known for its permissive nature and widespread acceptance. The license information is clear and understandable. No improvements are necessary here.
237
+ Detailed suggestion for improvement. Such as: No need to improve.
238
+ **Code contributor / Author information included:**
239
+ Detailed explanation of the assessment. Such as: The README does not contain a section that credits contributors or maintains lines of communication for potential users or collaborators. This is an important omission, as it fails to acknowledge authors' efforts or encourage interaction.
240
+ Detailed suggestion for improvement. Such as:
241
+ - Including a new "Contributors" section to credit the developers, provide contact information (e.g., email or GitHub profiles), or invite collaboration.
242
+ - <original text snippet> - <improving comments>
243
+ **Overall Score:**
244
+ Detailed explanation of the assessment. Such as: The README is relatively easy to read for someone around the sixth-grade level. While the technical details provided are moderately easy to understand for those familiar with programming and command-line tools, newbies or non-technical users might face challenges due to jargon and lack of introductory explanations.
245
+ Detailed suggestion for improvement. Such as:
246
+ - Add a brief introductory section summarizing the project and its main purpose would help orient readers.
247
+ - <original text snippet> - <improving comments>
248
+ - <original text snippet> - <improving comments>
249
+ - ...
250
+ - Break down long instructions into smaller bullet points.
200
251
 
201
252
  ---
202
253
 
@@ -446,7 +497,7 @@ class EvaluationREADMETask(EvaluationTask):
446
497
  readme_content=readme_content,
447
498
  structured_evaluation=structured_reasoning_process,
448
499
  )
449
- agent = CommonAgentTwoChainSteps(llm=self.llm)
500
+ agent = CommonAgentTwoSteps(llm=self.llm)
450
501
  response, _, token_usage, reasoning_process = agent.go(
451
502
  system_prompt=system_prompt,
452
503
  instruction_prompt=EVALUATION_INSTRUCTION,
@@ -63,13 +63,14 @@ class StructuredEvaluationREADMEResult(BaseModel):
63
63
  overall_score: str=Field(description="A overall scroll for the README quality, could be `Poor`, `Fair`, `Good`, or `Excellent`")
64
64
 
65
65
  class FreeProjectLevelEvaluationREADMEResult(BaseModel):
66
- available: Optional[str]=Field(description="A string including assessment and suggestion for the availability of the README file")
67
- readability: Optional[str]=Field(description="A string including assessment and suggestion for the readability of the README file")
68
- project_purpose: Optional[str]=Field(description="A string including assessment and suggestion for the project purpose of the README file")
69
- hardware_and_software_spec: Optional[str]=Field(description="A string including assessment and suggestion for the hardware and software spec and compatibility description of the README file")
70
- dependency: Optional[str]=Field(description="A string including assessment and suggestion for the dependencies of the README file")
71
- license: Optional[str]=Field(description="A string including assessment and suggestion for the license information of the README file")
72
- contributor_author: Optional[str]=Field(description="A string including assessment and suggestion for the contributor and author information of the README file")
66
+ available: Optional[list[str]]=Field(description="markdown texts including newlines that contains detailed assessment and detailed suggestion for the availability of the README file")
67
+ readability: Optional[list[str]]=Field(description="markdown texts including newlines that contains detailed assessment and detailed suggestion for the readability of the README file")
68
+ project_purpose: Optional[list[str]]=Field(description="markdown texts including newlines that contains detailed assessment and detailed suggestion for the project purpose of the README file")
69
+ hardware_and_software_spec: Optional[list[str]]=Field(description="markdown texts including newlines that contains detailed assessment and detailed suggestion for the hardware and software spec and compatibility description of the README file")
70
+ dependency: Optional[list[str]]=Field(description="markdown texts including newlines that contains detailed assessment and detailed suggestion for the dependencies of the README file")
71
+ license: Optional[list[str]]=Field(description="markdown texts including newlines that contains detailed assessment and detailed suggestion for the license information of the README file")
72
+ contributor_author: Optional[list[str]]=Field(description="markdown texts including newlines that contains detailed assessment and detailed suggestion for the contributor and author information of the README file")
73
+ overall_score: Optional[list[str]]=Field(description="markdown texts including newlines that contains detailed assessment and detailed suggestion for the overall score of the README file")
73
74
 
74
75
  class FreeFolderLevelEvaluationREADMEResult(BaseModel):
75
76
  score: Optional[str]=Field(description="An overall score")
@@ -94,11 +95,12 @@ class StructuredEvaluationInstallationResult(BaseModel):
94
95
  hardware_requirements: Optional[bool]=Field(description="A boolean value. Is the hardware requirements described?")
95
96
 
96
97
  class FreeEvaluationInstallationResult(BaseModel):
97
- ease_of_access: Optional[str]=Field(description="A string including assessment and suggestions for the ease of access of the installation information")
98
- clarity_of_dependency: Optional[str]=Field(description="A string including assessment and suggestions for the clarity of dependency specification")
99
- hardware_requirements: Optional[str]=Field(description="A string including assessment and suggestions for the hardware requirements")
100
- installation_guide: Optional[str]=Field(description="A string including assessment and suggestions for the installation guide")
101
- compatible_os: Optional[str]=Field(description="A string including assessment and suggestions for the compatible operating system")
98
+ ease_of_access: Optional[list[str]]=Field(description="markdown texts including newlines that contains detailed assessment and detailed suggestions for the ease of access of the installation information")
99
+ clarity_of_dependency: Optional[list[str]]=Field(description="markdown texts including newlines that contains detailed assessment and detailed suggestions for the clarity of dependency specification")
100
+ hardware_requirements: Optional[list[str]]=Field(description="markdown texts including newlines that contains detailed assessment and detailed suggestions for the hardware requirements")
101
+ installation_guide: Optional[list[str]]=Field(description="markdown texts including newlines that contains detailed assessment and detailed suggestions for the installation guide")
102
+ compatible_os: Optional[list[str]]=Field(description="markdown texts including newlines that contains detailed assessment and detailed suggestions for the compatible operating system")
103
+ overall_score: Optional[list[str]]=Field(description="markdown texts including newlines that contains detailed assessment and detailed suggestions for the overall score of the installation")
102
104
 
103
105
  class EvaluationInstallationResult(BaseModel):
104
106
  structured_evaluation: StructuredEvaluationInstallationResult | None
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: bioguider
3
- Version: 0.2.17
3
+ Version: 0.2.19
4
4
  Summary: An AI-Powered package to help biomedical developers to generate clear documentation
5
5
  License: MIT
6
6
  Author: Cankun Wang
@@ -10,15 +10,15 @@ bioguider/agents/collection_task.py,sha256=MjpTYiQQYUpmQf2UOn-dOCZU3kxypc4uOnzd1
10
10
  bioguider/agents/collection_task_utils.py,sha256=_e2EebYhl-UYjZ0rHNf2-p32YlstBSffv32suiuT9LI,5386
11
11
  bioguider/agents/common_agent.py,sha256=TpfxbYskwuwWrjs1g9RaG7sdA5rOLdiVac7If7uK2sg,4558
12
12
  bioguider/agents/common_agent_2step.py,sha256=rGiDzUkmmUIFnmJJxzXK5M5BfIyINHXLZ0pmPRUVqQg,7911
13
- bioguider/agents/common_conversation.py,sha256=zSRiIbUlif8VMC5ZuFfDTyyf1olg3YyWSnYj_E0_SXg,1649
13
+ bioguider/agents/common_conversation.py,sha256=VrnQoPXXK3xeFjeP4-HH-yD9qmw-o9v93LFtNbYey6E,1655
14
14
  bioguider/agents/common_step.py,sha256=GdOCbmj1pwh4etg-futVFYVDQuoUG89DnIrw-B6QbzM,2594
15
15
  bioguider/agents/dockergeneration_execute_step.py,sha256=F92jDlkc6KjAvTkX7q1FsCYP8J15SCaNgmwh3YPqfDo,6500
16
16
  bioguider/agents/dockergeneration_observe_step.py,sha256=Bo5Td0fzMYLbLki0FvwamzqRFOy4eu3AvIUa8oFApE4,6131
17
17
  bioguider/agents/dockergeneration_plan_step.py,sha256=SB8tQM9PkIKsD2o1DFD7bedcxz6r6hSy8n_EVK60Fz0,7235
18
18
  bioguider/agents/dockergeneration_task.py,sha256=mYmorLKnJ-Jku3Qq_Y_kcSTsbYIo3RiVdD0puxqXY5Q,6221
19
19
  bioguider/agents/dockergeneration_task_utils.py,sha256=v7emqrJlVW-A5ZdLmPSdiaMSKCR8uzy9UYzx_1cgzyo,9041
20
- bioguider/agents/evaluation_installation_task.py,sha256=mbPRZK6gVEPt-XjDl76_Q71meqFkofFnGPDMq5csL7I,9496
21
- bioguider/agents/evaluation_readme_task.py,sha256=l0QJAFEE0eBcF2WTDO3S4qPHCJujHPPkfi29tTZf9nI,25223
20
+ bioguider/agents/evaluation_installation_task.py,sha256=0RNH5NV7YKwn_we_d3IjnFf_ee9IPCEQ_olebq2y8Ng,12130
21
+ bioguider/agents/evaluation_readme_task.py,sha256=pi3oAGJgZhJgJG1xLgiobrk3Uy2a_JIarD5QSPBkmHA,30647
22
22
  bioguider/agents/evaluation_submission_requirements_task.py,sha256=J_6C-M2AfYue2C-gWBHl7KqGrTBuFBn9zmMV5vSRk-U,7834
23
23
  bioguider/agents/evaluation_task.py,sha256=4UrcUCy8UIVLd1NpBpqGgmudqeSK3wWI3Jm8LEYySbY,12661
24
24
  bioguider/agents/identification_execute_step.py,sha256=w3IjL8f2WiHCyiLjVSoySnIAXpi1-hK1DLKCnXbAN2Y,5587
@@ -39,13 +39,13 @@ bioguider/rag/data_pipeline.py,sha256=bkJ2IUCgPx_OL2uZtPd6cIBor2VFZEIfGd5kVlmiPj
39
39
  bioguider/rag/embedder.py,sha256=jofR8hOj3Aj2IyBQ9y6FeAc84tgq5agbIfCGyFxYpJ8,650
40
40
  bioguider/rag/rag.py,sha256=JFPwrJlKDSyd3U3Gce_NSxI5343eNUbqPG9Fs5Pfoq0,4696
41
41
  bioguider/settings.py,sha256=BD_iz9aYarxmWUl0XaKl4-D4oTXMhFzljsXLNn2phis,3143
42
- bioguider/utils/constants.py,sha256=ZZqNsW59P1c2-vm5VP-IhWRNrVdYvWmvfa537oEVl3A,7904
42
+ bioguider/utils/constants.py,sha256=Yzo9oFG4P4C83vKl22RsWkIDa4dcitvcCIceusNPIRQ,8928
43
43
  bioguider/utils/default.gitignore,sha256=XjPdyO2KV8z8iyuqluaNR_70tBQftMpyKL8HboVNyeI,1605
44
44
  bioguider/utils/file_utils.py,sha256=9VfAHsz1UkFPtzAmvWZvPl1TMaKIYNjNlLgsfB8tNjg,3683
45
45
  bioguider/utils/gitignore_checker.py,sha256=pOYUwsS9D5014LxcZb0cj3s2CAYaD2uF_pYJpaNKcho,6532
46
46
  bioguider/utils/pyphen_utils.py,sha256=cdZc3qphkvMDeL5NiZ8Xou13M_uVNP7ifJ-FwxO-0BE,2680
47
47
  bioguider/utils/utils.py,sha256=aWtgdvB04gEiJTfQNK4aQPO1mxv2zRZTbDaGUBy9DFc,2275
48
- bioguider-0.2.17.dist-info/LICENSE,sha256=qzkvZcKwwA5DuSuhXMOm2LcO6BdEr4V7jwFZVL2-jL4,1065
49
- bioguider-0.2.17.dist-info/METADATA,sha256=aUDhIK7X_YRYTp12m_MX1EDphsKaZDcQlnaGR_h34AM,1868
50
- bioguider-0.2.17.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
51
- bioguider-0.2.17.dist-info/RECORD,,
48
+ bioguider-0.2.19.dist-info/LICENSE,sha256=qzkvZcKwwA5DuSuhXMOm2LcO6BdEr4V7jwFZVL2-jL4,1065
49
+ bioguider-0.2.19.dist-info/METADATA,sha256=YvAwNzOyncowyrbKcoKBSEeIVLPk8UiRK-Y4vihrUUY,1868
50
+ bioguider-0.2.19.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
51
+ bioguider-0.2.19.dist-info/RECORD,,