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
[Sample] Add a sample which converts a langchain app to flex flow with custom connection #3090
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
elliotzh
previously approved these changes
Apr 30, 2024
brynn-code
reviewed
May 6, 2024
examples/flex-flows/eval-criteria-with-langchain/langchain-eval.ipynb
Outdated
Show resolved
Hide resolved
brynn-code
previously approved these changes
May 7, 2024
wangchao1230
reviewed
May 7, 2024
wangchao1230
previously approved these changes
May 7, 2024
brynn-code
approved these changes
May 8, 2024
wangchao1230
approved these changes
May 8, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Please add an informative description that covers that changes made by the pull request and link all relevant issues.
This pull request introduces a new feature to the
langchain-eval
example in theflex-flows
directory. The new feature includes a workflow for evaluating language chains, as well as changes to the README, data, and requirements files. The most significant changes are:A new GitHub workflow file
.github/workflows/samples_flexflows_langchaineval_langchaineval.yml
was added. This workflow is scheduled to run daily and on pull requests that modify specific paths. It sets up a Python 3.9 environment, installs requirements, and runs a notebook test, among other steps.The
examples/README.md
file was updated to include a link to thelangchain-eval.ipynb
notebook and its corresponding workflow badge.Two new data entries were added to the
examples/flex-flows/langchain-eval/data.jsonl
file.The
examples/flex-flows/langchain-eval/flow.flex.yaml
file was added, which contains the schema and entry point for the new feature.A new Python file
examples/flex-flows/langchain-eval/flow.py
was added. This file contains theLangChainEvaluator
class, which is used to evaluate language chains.The
examples/flex-flows/langchain-eval/langchain-eval.ipynb
notebook was added. This notebook provides a tutorial on how to use the new feature.The
examples/flex-flows/langchain-eval/requirements.txt
file was updated to include thepromptflow
andlangchain
packages, as well as thepython-dotenv
package.All Promptflow Contribution checklist:
General Guidelines and Best Practices
Testing Guidelines