-
Notifications
You must be signed in to change notification settings - Fork 4.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use prompty to store prompts (#2178)
* move-prompts-to-jinja-templates * refactor: convert few_shots to JSON format and clean up comments * Clean retreivethenread.py * Port to prompty * Configure Azure Developer Pipeline * Refactor to use a PromptManager * Inject followup at the end * Make mypy so happy, remove conversation truncation for ask approaches * Refactor text.py since it doesnt need to be its own very short file * Fix Chat approach tests * More prompty updates, test updates * Fix type annotations * Update more snapshots * Add prompty metadata, revert some unneeded changes * Fix thought process UI keys and data expectations * Resolve issue with injected prompt, update test * Pass in past messages to query rewrite prompt * Update snapshots * Updated prompty * Removing prompty from types now that it has them * Add samples to the non-vision approaches * Rename the prompts to match the tabs * Add back a comment about RAG flow * Add prompty back to pyproject.toml * Update the docs about customization * Update to pyproject now that prompty is typed * Fix vision approach missing past messages --------- Co-authored-by: Jeannot Damoiseaux <[email protected]>
- Loading branch information
1 parent
5f898db
commit 3629df8
Showing
85 changed files
with
643 additions
and
432 deletions.
There are no files selected for viewing
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
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
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
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
Oops, something went wrong.