Skip to content

Commit 2618ab6

Browse files
authored
fix progress bar always 1 short | updated generator in examples to 4o (#67)
* fix progress bar always 1 short | updated generator in examples to 4o
1 parent 9607fc0 commit 2618ab6

File tree

4 files changed

+7
-6
lines changed

4 files changed

+7
-6
lines changed

continuous_eval/generators/simple.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -273,6 +273,7 @@ def generate(
273273
num_single_hop_tries += 1
274274
continue
275275

276+
pbar.update(len(multi_hop_questions) + len(single_hop_questions) - pbar.n)
276277
pbar.close()
277278
dataset = single_hop_questions + multi_hop_questions
278279
for idx, d in enumerate(dataset):

docs/src/content/docs/examples/Advanced/dataset_generation.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ load_dotenv()
2222
def main():
2323
logging.basicConfig(level=logging.INFO)
2424

25-
generator_llm = "gpt-4-0125-preview"
25+
generator_llm = "gpt-4o"
2626
num_questions = 10
2727
multi_hop_precentage = 0.2
2828
max_try_ratio = 3

examples/simple_dataset_generation.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@
1616
def main():
1717
logging.basicConfig(level=logging.INFO)
1818

19-
generator_llm = "gpt-4-0125-preview"
20-
num_questions = 2
21-
multi_hop_precentage = 0.0
22-
max_try_ratio = 5
19+
generator_llm = "gpt-4o"
20+
num_questions = 10
21+
multi_hop_precentage = 0.2
22+
max_try_ratio = 3
2323

2424
print(f"Generating a {num_questions}-questions dataset with {generator_llm}...")
2525
db = example_data_downloader("graham_essays/small/chromadb", Path("temp"), force_download=False)

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "continuous-eval"
3-
version = "0.3.9"
3+
version = "0.3.10"
44
description = "Open-Source Evaluation for GenAI Application Pipelines."
55
authors = ["Yi Zhang <[email protected]>", "Pasquale Antonante <[email protected]>"]
66
readme = "README.md"

0 commit comments

Comments
 (0)