Update functions.py
Browse files- functions.py +3 -0
functions.py
CHANGED
@@ -509,6 +509,9 @@ def generate_eval(raw_text, N, chunk):
|
|
509 |
sub_sequences = [raw_text[i:i+chunk] for i in starting_indices]
|
510 |
chain = QAGenerationChain.from_llm(ChatOpenAI(temperature=0, model_name='gpt-4'))
|
511 |
eval_set = []
|
|
|
|
|
|
|
512 |
for i, b in enumerate(sub_sequences):
|
513 |
try:
|
514 |
|
|
|
509 |
sub_sequences = [raw_text[i:i+chunk] for i in starting_indices]
|
510 |
chain = QAGenerationChain.from_llm(ChatOpenAI(temperature=0, model_name='gpt-4'))
|
511 |
eval_set = []
|
512 |
+
|
513 |
+
print(sub_sequences)
|
514 |
+
|
515 |
for i, b in enumerate(sub_sequences):
|
516 |
try:
|
517 |
|