bioguider 0.2.22__py3-none-any.whl → 0.2.24__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.
- bioguider/agents/consistency_query_step.py +3 -0
- bioguider/agents/evaluation_tutorial_task.py +2 -1
- bioguider/managers/evaluation_manager.py +0 -16
- {bioguider-0.2.22.dist-info → bioguider-0.2.24.dist-info}/METADATA +1 -1
- {bioguider-0.2.22.dist-info → bioguider-0.2.24.dist-info}/RECORD +7 -7
- {bioguider-0.2.22.dist-info → bioguider-0.2.24.dist-info}/LICENSE +0 -0
- {bioguider-0.2.22.dist-info → bioguider-0.2.24.dist-info}/WHEEL +0 -0
|
@@ -45,14 +45,17 @@ class ConsistencyQueryStep(CommonStep):
|
|
|
45
45
|
else:
|
|
46
46
|
if file_path is not None and parent is not None:
|
|
47
47
|
rows = self.code_structure_db.select_by_name_and_parent_and_path(name, parent, file_path)
|
|
48
|
+
rows = rows if rows is None else [rows]
|
|
48
49
|
if rows is None or len(rows) == 0:
|
|
49
50
|
rows = self.code_structure_db.select_by_name_and_path(name, file_path)
|
|
51
|
+
rows = rows if rows is None else [rows]
|
|
50
52
|
if rows is None or len(rows) == 0:
|
|
51
53
|
rows = self.code_structure_db.select_by_name_and_parent(name, parent)
|
|
52
54
|
if rows is None or len(rows) == 0:
|
|
53
55
|
rows = self.code_structure_db.select_by_name(name)
|
|
54
56
|
elif file_path is not None:
|
|
55
57
|
rows = self.code_structure_db.select_by_name_and_path(name, file_path)
|
|
58
|
+
rows = rows if rows is None else [rows]
|
|
56
59
|
if rows is None or len(rows) == 0:
|
|
57
60
|
rows = self.code_structure_db.select_by_name(name)
|
|
58
61
|
elif parent is not None:
|
|
@@ -102,12 +102,13 @@ class EvaluationTutorialTask(EvaluationTask):
|
|
|
102
102
|
def _evaluate_individual_tutorial(self, file: str) -> tuple[IndividualTutorialEvaluationResult | None, dict]:
|
|
103
103
|
content = read_file(Path(self.repo_path, file))
|
|
104
104
|
if content is None:
|
|
105
|
-
logger.error(f"Error in reading file {file}")
|
|
105
|
+
logger.error(f"Error in reading file {file} - {Path(self.repo_path, file).resolve()}")
|
|
106
106
|
return None, {**DEFAULT_TOKEN_USAGE}
|
|
107
107
|
|
|
108
108
|
if file.endswith(".ipynb"):
|
|
109
109
|
readability_content = extract_markdown_from_notebook(Path(self.repo_path, file))
|
|
110
110
|
content = json.dumps(strip_notebook_to_code_and_markdown(Path(self.repo_path, file)))
|
|
111
|
+
content = content.replace("{", "<<").replace("}", ">>")
|
|
111
112
|
else:
|
|
112
113
|
readability_content = content
|
|
113
114
|
readability = PyphenReadability()
|
|
@@ -83,22 +83,6 @@ class EvaluationManager:
|
|
|
83
83
|
results, readme_files = task.evaluate()
|
|
84
84
|
return results, readme_files
|
|
85
85
|
|
|
86
|
-
def evaluate_tutorial(self):
|
|
87
|
-
pass
|
|
88
|
-
# task = CollectionTask(
|
|
89
|
-
# llm=self.llm,
|
|
90
|
-
# step_callback=self.step_callback,
|
|
91
|
-
# )
|
|
92
|
-
# task.compile(
|
|
93
|
-
# repo_path=self.rag.repo_dir,
|
|
94
|
-
# gitignore_path=Path(self.rag.repo_dir, ".gitignore"),
|
|
95
|
-
# db=self.summary_file_db,
|
|
96
|
-
# goal_item=CollectionGoalItemEnum.Tutorial.name,
|
|
97
|
-
# )
|
|
98
|
-
# s = task.collect()
|
|
99
|
-
# if s is None or 'final_answer' not in s:
|
|
100
|
-
# return None
|
|
101
|
-
|
|
102
86
|
def evaluate_installation(self):
|
|
103
87
|
evaluation_task = EvaluationInstallationTask(
|
|
104
88
|
llm=self.llm,
|
|
@@ -16,7 +16,7 @@ bioguider/agents/consistency_collection_step.py,sha256=evgb0W3PD5pXfViuP_0T5LqLn
|
|
|
16
16
|
bioguider/agents/consistency_evaluation_task.py,sha256=_nYPEs3xhj1jraQWMRML_Y6vZJD_zydY4BstQYXmXJk,1908
|
|
17
17
|
bioguider/agents/consistency_evaluation_task_utils.py,sha256=8PC4KS14ek9NJy3bLuhZNmpOUKFx3_06nKXzuTWb0tE,444
|
|
18
18
|
bioguider/agents/consistency_observe_step.py,sha256=0FEtNpkaGcuL30wb2d43uTlSyHJ9Pxttn9r3NzPD0oo,4409
|
|
19
|
-
bioguider/agents/consistency_query_step.py,sha256=
|
|
19
|
+
bioguider/agents/consistency_query_step.py,sha256=SRkw9UiLAhMnbPgexffHsAznrdLAQvIP4KD7S7N-P14,3858
|
|
20
20
|
bioguider/agents/dockergeneration_execute_step.py,sha256=F92jDlkc6KjAvTkX7q1FsCYP8J15SCaNgmwh3YPqfDo,6500
|
|
21
21
|
bioguider/agents/dockergeneration_observe_step.py,sha256=Bo5Td0fzMYLbLki0FvwamzqRFOy4eu3AvIUa8oFApE4,6131
|
|
22
22
|
bioguider/agents/dockergeneration_plan_step.py,sha256=SB8tQM9PkIKsD2o1DFD7bedcxz6r6hSy8n_EVK60Fz0,7235
|
|
@@ -26,7 +26,7 @@ bioguider/agents/evaluation_installation_task.py,sha256=0RNH5NV7YKwn_we_d3IjnFf_
|
|
|
26
26
|
bioguider/agents/evaluation_readme_task.py,sha256=pi3oAGJgZhJgJG1xLgiobrk3Uy2a_JIarD5QSPBkmHA,30647
|
|
27
27
|
bioguider/agents/evaluation_submission_requirements_task.py,sha256=J_6C-M2AfYue2C-gWBHl7KqGrTBuFBn9zmMV5vSRk-U,7834
|
|
28
28
|
bioguider/agents/evaluation_task.py,sha256=uu0BjalctF9hQjGtT53whbeJHv2RVvs8_2woVUmOLRE,8132
|
|
29
|
-
bioguider/agents/evaluation_tutorial_task.py,sha256=
|
|
29
|
+
bioguider/agents/evaluation_tutorial_task.py,sha256=wRhHqvuOhGEICOhAlZrtshHJ8LkmnAYfjazFe090aeU,8441
|
|
30
30
|
bioguider/agents/evaluation_tutorial_task_prompts.py,sha256=WTqIKBI3JErYaiQfLcPNj_hb3D-hSZrae50uJ7526zw,5996
|
|
31
31
|
bioguider/agents/evaluation_userguide_prompts.py,sha256=eyJUx5nUr8v9k0B5GpKDaX2dBxSLVZGA0fwOWS4Uiow,7154
|
|
32
32
|
bioguider/agents/evaluation_userguide_task.py,sha256=ONdempCOyn_N-LGV35diKciBbnjDSItXchcLV738XTw,6456
|
|
@@ -55,7 +55,7 @@ bioguider/generation/report_loader.py,sha256=KtJ6JHGPDL-PQoucU8hkVzMSz-B0bHbF2WS
|
|
|
55
55
|
bioguider/generation/style_analyzer.py,sha256=Vn9FAK1qJBNLolLC1tz362k4UBaPl107BlvkQc8pV2I,983
|
|
56
56
|
bioguider/generation/suggestion_extractor.py,sha256=tfkyWtdbAo-maLCF_wqwBXyh93yjulvDY17FuvTnTjk,7611
|
|
57
57
|
bioguider/generation/test_metrics.py,sha256=fG6H1jVikHEx1YvN5Ds4QbVinudJ5OEYkzrV760oLLQ,3766
|
|
58
|
-
bioguider/managers/evaluation_manager.py,sha256=
|
|
58
|
+
bioguider/managers/evaluation_manager.py,sha256=EoZ8V4rmx16zk1J3N9cNjeo0aCa7i32fLEQ3b2UolEQ,5917
|
|
59
59
|
bioguider/managers/generation_manager.py,sha256=EbAJSvUz-SIriVlozuJ6wa5_1aIbbFfpgg3c9Vcz34g,7615
|
|
60
60
|
bioguider/managers/generation_test_manager.py,sha256=0ty8IibdfN90Oj6M6lkYbxASnQxHYb9I3w9eG7hvEsQ,3270
|
|
61
61
|
bioguider/rag/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -74,7 +74,7 @@ bioguider/utils/pyphen_utils.py,sha256=cdZc3qphkvMDeL5NiZ8Xou13M_uVNP7ifJ-FwxO-0
|
|
|
74
74
|
bioguider/utils/python_file_handler.py,sha256=BERiE2RHxpu3gAzv26jr8ZQetkrtnMZOv9SjpQ7WIdg,2650
|
|
75
75
|
bioguider/utils/r_file_handler.py,sha256=8HpFaYKP8N1nItwr9tOx49m99pcLSt8EUtTNTJ7xNoE,19564
|
|
76
76
|
bioguider/utils/utils.py,sha256=1N7Wv_i9spTBQ_FbZnlxsjC8mszbBzaegrmvuKGUISg,3531
|
|
77
|
-
bioguider-0.2.
|
|
78
|
-
bioguider-0.2.
|
|
79
|
-
bioguider-0.2.
|
|
80
|
-
bioguider-0.2.
|
|
77
|
+
bioguider-0.2.24.dist-info/LICENSE,sha256=qzkvZcKwwA5DuSuhXMOm2LcO6BdEr4V7jwFZVL2-jL4,1065
|
|
78
|
+
bioguider-0.2.24.dist-info/METADATA,sha256=ExmR7sflPHuNCSyjnvl6B-hUpK9AFFU5zEaK8zqQdUY,1868
|
|
79
|
+
bioguider-0.2.24.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
|
|
80
|
+
bioguider-0.2.24.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|