Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Langchain #216

Draft
wants to merge 20 commits into
base: main
Choose a base branch
from
Draft

Langchain #216

wants to merge 20 commits into from

Conversation

batwood-1
Copy link
Collaborator

Description

Related Issue(s)

Motivation and Context

How Has This Been Tested?

Screenshots (if appropriate):

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • I have added tests to cover my changes.
  • All new and existing tests passed.
  • My code follows the code style of this project.

@batwood-1 batwood-1 requested review from fabiocat93 and removed request for fabiocat93 December 9, 2024 14:56
@batwood-1 batwood-1 self-assigned this Dec 9, 2024
Copy link
Collaborator

@fabiocat93 fabiocat93 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hi @batwood-1 , i have left some comments. I feel some changes are needed here. You can start addressing my comments and we can meet early Jan and discuss this merge in person. what do you think?

requirements.txt Show resolved Hide resolved
.pre-commit-config.yaml Show resolved Hide resolved
pyproject.toml Show resolved Hide resolved
references: List[str] = [line.text for line in script_lines if line.speaker == "agent" and line.text is not None]
hypotheses: List[str] = [line.text for line in script_lines if line.speaker == "user" and line.text is not None]

if not references or not hypotheses:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe you want to raise an Error here

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated evaluation.py


Args:
script_lines (List[ScriptLine]): A list of script lines to evaluate.
metrics (List[str]): A list of metrics to use for evaluation.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is metrics ever used?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Deep eval is legacy and should have been deleted but it must have copied over when I updated my branch

if not references or not hypotheses:
return {"metrics": []}

metric_instance = Rouge()
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is rouge the only metric implemented so far?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No this was just a test implementation of evaluations.py

@fabiocat93 fabiocat93 linked an issue Dec 23, 2024 that may be closed by this pull request
@fabiocat93 fabiocat93 added the enhancement New feature or request label Dec 23, 2024
@fabiocat93 fabiocat93 marked this pull request as draft December 23, 2024 16:53
@fabiocat93
Copy link
Collaborator

@batwood-1 thank you for addressing some of my comments. We will check this deeply tomorrow in person

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Integrate LLMs with langchain
2 participants