Skip to content

Commit

Permalink
Merge pull request #33 from oindrillac/main
Browse files Browse the repository at this point in the history
added framework to score evaluation metrics
  • Loading branch information
hemajv authored Feb 7, 2024
2 parents 406fcec + dbe271c commit ae8e26b
Show file tree
Hide file tree
Showing 5 changed files with 5,184 additions and 19 deletions.
2 changes: 1 addition & 1 deletion app/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -316,4 +316,4 @@ def main(prompt_success: bool, prompt_diff: int, actual_doc: str):
on_submit=store_feedback,
optional_text_label="Please tell us how we could make this more useful",
align="flex-start",
)
)
10 changes: 3 additions & 7 deletions app/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -218,8 +218,8 @@ def generate_text(
)
response = responses[0].results[0]
print(response)
generated_patch = response.generated_text
return generated_patch
generated_text = response.generated_text
return generated_text


def generate_text_using_OpenAI(prompt: str, openai_key: str):
Expand Down Expand Up @@ -297,8 +297,4 @@ def eval_using_langchain(prediction: str, query: str):
eval_result = evaluator.evaluate_strings(prediction=prediction,input=query)
evaluation.append(eval_result)

return evaluation




return evaluation
Binary file added notebooks/evaluation/eval_df.pkl
Binary file not shown.
Loading

0 comments on commit ae8e26b

Please sign in to comment.