bioguider 0.2.4__tar.gz → 0.2.5__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.
Potentially problematic release.
This version of bioguider might be problematic. Click here for more details.
- {bioguider-0.2.4 → bioguider-0.2.5}/PKG-INFO +1 -1
- {bioguider-0.2.4 → bioguider-0.2.5}/bioguider/agents/evaluation_task.py +63 -8
- {bioguider-0.2.4 → bioguider-0.2.5}/pyproject.toml +1 -1
- {bioguider-0.2.4 → bioguider-0.2.5}/LICENSE +0 -0
- {bioguider-0.2.4 → bioguider-0.2.5}/README.md +0 -0
- {bioguider-0.2.4 → bioguider-0.2.5}/bioguider/__init__.py +0 -0
- {bioguider-0.2.4 → bioguider-0.2.5}/bioguider/agents/__init__.py +0 -0
- {bioguider-0.2.4 → bioguider-0.2.5}/bioguider/agents/agent_task.py +0 -0
- {bioguider-0.2.4 → bioguider-0.2.5}/bioguider/agents/agent_tools.py +0 -0
- {bioguider-0.2.4 → bioguider-0.2.5}/bioguider/agents/agent_utils.py +0 -0
- {bioguider-0.2.4 → bioguider-0.2.5}/bioguider/agents/collection_execute_step.py +0 -0
- {bioguider-0.2.4 → bioguider-0.2.5}/bioguider/agents/collection_observe_step.py +0 -0
- {bioguider-0.2.4 → bioguider-0.2.5}/bioguider/agents/collection_plan_step.py +0 -0
- {bioguider-0.2.4 → bioguider-0.2.5}/bioguider/agents/collection_task.py +0 -0
- {bioguider-0.2.4 → bioguider-0.2.5}/bioguider/agents/collection_task_utils.py +0 -0
- {bioguider-0.2.4 → bioguider-0.2.5}/bioguider/agents/common_agent.py +0 -0
- {bioguider-0.2.4 → bioguider-0.2.5}/bioguider/agents/common_agent_2step.py +0 -0
- {bioguider-0.2.4 → bioguider-0.2.5}/bioguider/agents/common_step.py +0 -0
- {bioguider-0.2.4 → bioguider-0.2.5}/bioguider/agents/dockergeneration_execute_step.py +0 -0
- {bioguider-0.2.4 → bioguider-0.2.5}/bioguider/agents/dockergeneration_observe_step.py +0 -0
- {bioguider-0.2.4 → bioguider-0.2.5}/bioguider/agents/dockergeneration_plan_step.py +0 -0
- {bioguider-0.2.4 → bioguider-0.2.5}/bioguider/agents/dockergeneration_task.py +0 -0
- {bioguider-0.2.4 → bioguider-0.2.5}/bioguider/agents/dockergeneration_task_utils.py +0 -0
- {bioguider-0.2.4 → bioguider-0.2.5}/bioguider/agents/identification_execute_step.py +0 -0
- {bioguider-0.2.4 → bioguider-0.2.5}/bioguider/agents/identification_observe_step.py +0 -0
- {bioguider-0.2.4 → bioguider-0.2.5}/bioguider/agents/identification_plan_step.py +0 -0
- {bioguider-0.2.4 → bioguider-0.2.5}/bioguider/agents/identification_task.py +0 -0
- {bioguider-0.2.4 → bioguider-0.2.5}/bioguider/agents/identification_task_utils.py +0 -0
- {bioguider-0.2.4 → bioguider-0.2.5}/bioguider/agents/peo_common_step.py +0 -0
- {bioguider-0.2.4 → bioguider-0.2.5}/bioguider/agents/prompt_utils.py +0 -0
- {bioguider-0.2.4 → bioguider-0.2.5}/bioguider/agents/python_ast_repl_tool.py +0 -0
- {bioguider-0.2.4 → bioguider-0.2.5}/bioguider/agents/rag_collection_task.py +0 -0
- {bioguider-0.2.4 → bioguider-0.2.5}/bioguider/conversation.py +0 -0
- {bioguider-0.2.4 → bioguider-0.2.5}/bioguider/database/summarized_file_db.py +0 -0
- {bioguider-0.2.4 → bioguider-0.2.5}/bioguider/managers/evaluation_manager.py +0 -0
- {bioguider-0.2.4 → bioguider-0.2.5}/bioguider/rag/__init__.py +0 -0
- {bioguider-0.2.4 → bioguider-0.2.5}/bioguider/rag/config.py +0 -0
- {bioguider-0.2.4 → bioguider-0.2.5}/bioguider/rag/data_pipeline.py +0 -0
- {bioguider-0.2.4 → bioguider-0.2.5}/bioguider/rag/embedder.py +0 -0
- {bioguider-0.2.4 → bioguider-0.2.5}/bioguider/rag/rag.py +0 -0
- {bioguider-0.2.4 → bioguider-0.2.5}/bioguider/settings.py +0 -0
- {bioguider-0.2.4 → bioguider-0.2.5}/bioguider/utils/constants.py +0 -0
- {bioguider-0.2.4 → bioguider-0.2.5}/bioguider/utils/default.gitignore +0 -0
- {bioguider-0.2.4 → bioguider-0.2.5}/bioguider/utils/file_utils.py +0 -0
- {bioguider-0.2.4 → bioguider-0.2.5}/bioguider/utils/gitignore_checker.py +0 -0
- {bioguider-0.2.4 → bioguider-0.2.5}/bioguider/utils/pyphen_utils.py +0 -0
- {bioguider-0.2.4 → bioguider-0.2.5}/bioguider/utils/utils.py +0 -0
|
@@ -71,8 +71,22 @@ For each criterion below, provide a brief assessment followed by specific, actio
|
|
|
71
71
|
* **Assessment**: Based on these scores, evaluate the overall readability and technical complexity of the language used.
|
|
72
72
|
|
|
73
73
|
**Final Answer**
|
|
74
|
-
|
|
75
|
-
|
|
74
|
+
The final answer **must exactly match** the following format:
|
|
75
|
+
```
|
|
76
|
+
* Project-Level README: Yes / No
|
|
77
|
+
* **Score:** <number from 0 to 100>
|
|
78
|
+
* **Key Strengths**: <brief summary of the README's strongest points in 2-3 sentences>
|
|
79
|
+
* **Improvement Suggestions:**
|
|
80
|
+
- "Original text snippet 1" - Improving comment 1
|
|
81
|
+
- "Original text snippet 2" - Improving comment 2
|
|
82
|
+
- ...
|
|
83
|
+
```
|
|
84
|
+
|
|
85
|
+
* **Project-Level README**: Indicate “Yes” if the README is project-level, otherwise “No.”
|
|
86
|
+
* **Score**: Provide an overall quality score (100 = perfect).
|
|
87
|
+
* **Key Strengths**: Provide the README's strongest points in 2-3 sentences
|
|
88
|
+
* **Overall Improvement Suggestions**:
|
|
89
|
+
* List each original text snippet that needs improvement, followed by your suggestion.
|
|
76
90
|
|
|
77
91
|
---
|
|
78
92
|
|
|
@@ -108,8 +122,9 @@ For each criterion below, provide a brief assessment followed by specific, actio
|
|
|
108
122
|
* **Assessment**: Based on these scores, evaluate the overall readability and technical complexity of the language used.
|
|
109
123
|
|
|
110
124
|
**Final Answer**
|
|
125
|
+
The final answer **must exactly match** the following format:
|
|
111
126
|
* Project-Level README: Yes / No
|
|
112
|
-
*
|
|
127
|
+
* Overall Assessment: provide a final, overall assessment of the README file's quality, summarizing the key strengths and areas for improvement.
|
|
113
128
|
---
|
|
114
129
|
|
|
115
130
|
### **README path:**
|
|
@@ -167,8 +182,38 @@ class EvaluationTask(ABC):
|
|
|
167
182
|
pass
|
|
168
183
|
|
|
169
184
|
class EvaluationREADMEResult(BaseModel):
|
|
170
|
-
project_level: Optional[bool]=Field(description="
|
|
171
|
-
|
|
185
|
+
project_level: Optional[bool]=Field(description="A boolean value specifying if the README file is **project-level** README. TRUE: project-level, FALSE, folder-level")
|
|
186
|
+
score: Optional[float]=Field(description="An overall score")
|
|
187
|
+
key_strengths: Optional[str]=Field(description="A string specifying the key strengths of README file.")
|
|
188
|
+
overall_improvement_suggestions: Optional[list[str]]=Field(description="A list of overall improvement suggestions")
|
|
189
|
+
|
|
190
|
+
EvaluationREADMEResultSchema = {
|
|
191
|
+
"title": "EvaluationREADMEResult",
|
|
192
|
+
"type": "object",
|
|
193
|
+
"properties": {
|
|
194
|
+
"project_level": {
|
|
195
|
+
"anyOf": [{"type": "boolean"}, {"type": "null"}],
|
|
196
|
+
"description": "A boolean value specifying if the README file is **project-level** README. TRUE: project-level, FALSE: folder-level.",
|
|
197
|
+
"title": "Project Level"
|
|
198
|
+
},
|
|
199
|
+
"score": {
|
|
200
|
+
"anyOf": [{"type": "number"}, {"type": "null"}],
|
|
201
|
+
"description": "An overall score",
|
|
202
|
+
"title": "Score"
|
|
203
|
+
},
|
|
204
|
+
"key_strengths": {
|
|
205
|
+
"anyOf": [{"type": "string"}, {"type": "null"}],
|
|
206
|
+
"description": "A string specifying the key strengths of README file.",
|
|
207
|
+
"title": "Key Strengths",
|
|
208
|
+
},
|
|
209
|
+
"overall_improvement_suggestions": {
|
|
210
|
+
"anyOf": [{"items": {"type": "string"}, "type": "array"}, {"type": "null"}],
|
|
211
|
+
"description": "A list of improvement suggestions",
|
|
212
|
+
"title": "Overall Improvement Suggestions"
|
|
213
|
+
}
|
|
214
|
+
},
|
|
215
|
+
"required": ["project_level", "score", "key_strengths", "overall_improvement_suggestions"]
|
|
216
|
+
}
|
|
172
217
|
|
|
173
218
|
class EvaluationREADMETask(EvaluationTask):
|
|
174
219
|
def __init__(
|
|
@@ -195,7 +240,14 @@ class EvaluationREADMETask(EvaluationTask):
|
|
|
195
240
|
logger.error(f"Error in reading file {readme_file}")
|
|
196
241
|
continue
|
|
197
242
|
if len(readme_content.strip()) == 0:
|
|
198
|
-
|
|
243
|
+
readme_evaluations[readme_file] = {
|
|
244
|
+
"evaluation": {
|
|
245
|
+
"project_level": "/" in readme_file,
|
|
246
|
+
"overall_assessment": f"{readme_file} is an empty file."
|
|
247
|
+
},
|
|
248
|
+
"reasoning_process": f"{readme_file} is an empty file.",
|
|
249
|
+
}
|
|
250
|
+
continue
|
|
199
251
|
|
|
200
252
|
readability = PyphenReadability()
|
|
201
253
|
flesch_reading_ease, flesch_kincaid_grade, gunning_fog_index, smog_index, \
|
|
@@ -215,14 +267,17 @@ class EvaluationREADMETask(EvaluationTask):
|
|
|
215
267
|
response, _, token_usage, reasoning_process = agent.go(
|
|
216
268
|
system_prompt=system_prompt,
|
|
217
269
|
instruction_prompt="Before arriving at the conclusion, clearly explain your reasoning step by step. Now, let's begin the evaluation.",
|
|
218
|
-
schema=
|
|
270
|
+
schema=EvaluationREADMEResultSchema,
|
|
219
271
|
)
|
|
272
|
+
response = EvaluationREADMEResult(**response)
|
|
220
273
|
self.print_step(step_output=f"README: {readme_file}")
|
|
221
274
|
self.print_step(step_output=reasoning_process)
|
|
222
275
|
readme_evaluations[readme_file] = {
|
|
223
276
|
"evaluation": {
|
|
224
277
|
"project_level": response.project_level,
|
|
225
|
-
"
|
|
278
|
+
"score": response.score,
|
|
279
|
+
"key_strengths": response.key_strengths,
|
|
280
|
+
"overall_assessment": response.overall_improvement_suggestions,
|
|
226
281
|
},
|
|
227
282
|
"reasoning_process": reasoning_process
|
|
228
283
|
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|