-
Notifications
You must be signed in to change notification settings - Fork 1.1k
feat: Automatic Prompt adaptation [language] #407
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
Merged
shahules786
merged 66 commits into
explodinggradients:main
from
shahules786:prompt-adaptation
Jan 1, 2024
Merged
Changes from all commits
Commits
Show all changes
66 commits
Select commit
Hold shift + click to select a range
8b8d1fe
add langchain loaders to docs
shahules786 cd7f411
Merge branch 'main' of https://github.com/explodinggradients/ragas
shahules786 5b18325
Merge branch 'main' of https://github.com/explodinggradients/ragas
shahules786 bb8d984
Merge branch 'main' of https://github.com/explodinggradients/ragas
shahules786 9cbb57d
Merge branch 'main' of https://github.com/explodinggradients/ragas
shahules786 479e636
Merge branch 'main' of https://github.com/explodinggradients/ragas
shahules786 3eeb7ea
Merge branch 'main' of https://github.com/explodinggradients/ragas
shahules786 b09003f
Merge branch 'main' of https://github.com/explodinggradients/ragas
shahules786 0d28d62
Merge branch 'main' of https://github.com/explodinggradients/ragas
shahules786 8e7c0c4
Merge branch 'main' of https://github.com/explodinggradients/ragas
shahules786 dd218e1
Merge branch 'main' of https://github.com/explodinggradients/ragas
shahules786 eab12df
Merge branch 'main' of https://github.com/explodinggradients/ragas
shahules786 a0f1b9b
Merge branch 'main' of https://github.com/explodinggradients/ragas
shahules786 2487430
Merge branch 'main' of https://github.com/explodinggradients/ragas
shahules786 fb5064e
Merge branch 'main' of https://github.com/explodinggradients/ragas
shahules786 fd8f458
Merge branch 'main' of https://github.com/explodinggradients/ragas
shahules786 c2f4be8
Merge branch 'main' of https://github.com/explodinggradients/ragas
shahules786 716807b
Added prompt class
tinomaxthayil 22dd97b
fixed Lint errors
tinomaxthayil 9dbcf49
resolve type issue
tinomaxthayil 3247925
hindi prompts for faithfulness
shahules786 677732b
prompt adaptation
shahules786 a5fcded
Merge branch 'main' of https://github.com/explodinggradients/ragas
shahules786 0f91d79
merge main
shahules786 93e184a
added prompt objects to metrics
tinomaxthayil dfb8f03
added adaption
shahules786 d090df5
noqa
shahules786 180ed99
Merge branch 'main' of https://github.com/explodinggradients/ragas in…
shahules786 f39a9ca
Merge branch 'main' of https://github.com/explodinggradients/ragas
shahules786 c9b1e6c
Merge branch 'main' into add-metric-prompts
shahules786 3deb30e
prompt
shahules786 8c158f5
merge prompts
shahules786 d793798
added name to prompts
shahules786 ebc33da
added attr to prompts
shahules786 92261d9
convert json loader
shahules786 0b5f190
rmv unused imports
shahules786 c57c1d7
added json loader
shahules786 6d9ac0d
moved json loader
shahules786 b8f9ca1
change json loader path
shahules786 b4087b8
linting change
shahules786 838eaf6
merge metrics-prompts
shahules786 da3a2ed
prompt adaption fix
shahules786 3693b5a
add ragas cache
shahules786 d4a423a
add name
shahules786 c82861c
added adapt and save
shahules786 7b9f906
removed json_loader
shahules786 92f3116
json loader without circular import error
shahules786 29d8667
safe load json
shahules786 3890fe9
merge metrics-prompts
shahules786 5d87601
merge metrics-prompts
shahules786 6da261b
fix tests
shahules786 8d8d60c
fix tests
shahules786 fc48c9b
remove loader
shahules786 258f179
linting
shahules786 c1f6d6b
adapting logs
shahules786 62db651
add support to dict type
shahules786 f68f008
add support to dict type
shahules786 1fd1fb0
add support to dict type
shahules786 4ae9113
remove prompts
shahules786 4835510
accept dict return type
shahules786 a2aa64f
fix return type
shahules786 2cb33c8
accept dict return type
shahules786 dce0eed
change to logging
shahules786 27ceb4b
return prompt objects
shahules786 ad0a464
logging and classes
jjmachan 1595a27
fixed default factor error
jjmachan File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should this raise an exception or is it okay
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
leaving it as assert itself - with the assumption that there is no try - except method we can do to catch this.
the con is that the whole operation fails in this case. I think we should raise an Exception and catch it and throw a warning