Commit 3629df8
Use prompty to store prompts (Azure-Samples#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]>1 parent 5f898db commit 3629df8
File tree
85 files changed
+643
-432
lines changed- app
- backend
- approaches
- prompts
- core
- frontend/src/components
- AnalysisPanel
- SupportingContent
- docs
- tests
- snapshots/test_app
- test_ask_rtr_hybrid
- client0
- client1
- test_ask_rtr_text_filter_public_documents/auth_public_documents_client0
- test_ask_rtr_text_filter/auth_client0
- test_ask_rtr_text_semanticcaptions
- client0
- client1
- test_ask_rtr_text_semanticranker
- client0
- client1
- test_ask_rtr_text
- client0
- client1
- test_ask_vision
- client0
- client1
- test_chat_followup
- client0
- client1
- test_chat_hybrid_semantic_captions
- client0
- client1
- test_chat_hybrid_semantic_ranker
- client0
- client1
- test_chat_hybrid
- client0
- client1
- test_chat_prompt_template_concat
- client0
- client1
- test_chat_prompt_template
- client0
- client1
- test_chat_seed
- client0
- client1
- test_chat_session_state_persists
- client0
- client1
- test_chat_stream_followup
- client0
- client1
- test_chat_stream_session_state_persists
- client0
- client1
- test_chat_stream_text_filter/auth_client0
- test_chat_stream_text
- client0
- client1
- test_chat_stream_vision
- client0
- client1
- test_chat_text_filter_public_documents/auth_public_documents_client0
- test_chat_text_filter/auth_client0
- test_chat_text_semantic_ranker
- client0
- client1
- test_chat_text_semanticcaptions
- client0
- client1
- test_chat_text_semanticranker
- client0
- client1
- test_chat_text
- client0
- client1
- test_chat_vector_semantic_ranker
- client0
- client1
- test_chat_vector
- client0
- client1
- test_chat_vision_vectors
- client0
- client1
- test_chat_vision
- client0
- client1
- test_chat_with_history
- client0
- client1
- test_chat_with_long_history
- client0
- client1
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
85 files changed
+643
-432
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
| 54 | + | |
54 | 55 | | |
55 | 56 | | |
56 | 57 | | |
| |||
642 | 643 | | |
643 | 644 | | |
644 | 645 | | |
645 | | - | |
646 | | - | |
| 646 | + | |
| 647 | + | |
| 648 | + | |
| 649 | + | |
647 | 650 | | |
648 | 651 | | |
649 | 652 | | |
| |||
657 | 660 | | |
658 | 661 | | |
659 | 662 | | |
| 663 | + | |
660 | 664 | | |
661 | 665 | | |
| 666 | + | |
662 | 667 | | |
663 | 668 | | |
664 | 669 | | |
| |||
672 | 677 | | |
673 | 678 | | |
674 | 679 | | |
| 680 | + | |
675 | 681 | | |
676 | 682 | | |
677 | 683 | | |
| |||
696 | 702 | | |
697 | 703 | | |
698 | 704 | | |
| 705 | + | |
699 | 706 | | |
700 | 707 | | |
701 | 708 | | |
| |||
716 | 723 | | |
717 | 724 | | |
718 | 725 | | |
| 726 | + | |
719 | 727 | | |
720 | 728 | | |
721 | 729 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| 27 | + | |
27 | 28 | | |
28 | | - | |
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| |||
109 | 109 | | |
110 | 110 | | |
111 | 111 | | |
| 112 | + | |
112 | 113 | | |
113 | 114 | | |
114 | 115 | | |
| |||
121 | 122 | | |
122 | 123 | | |
123 | 124 | | |
| 125 | + | |
124 | 126 | | |
125 | 127 | | |
126 | 128 | | |
| |||
205 | 207 | | |
206 | 208 | | |
207 | 209 | | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
208 | 214 | | |
209 | 215 | | |
210 | 216 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | 12 | | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
| 13 | + | |
43 | 14 | | |
44 | 15 | | |
45 | 16 | | |
46 | 17 | | |
47 | 18 | | |
48 | | - | |
| 19 | + | |
| 20 | + | |
49 | 21 | | |
50 | | - | |
51 | | - | |
52 | | - | |
| 22 | + | |
53 | 23 | | |
54 | | - | |
55 | | - | |
56 | | - | |
| 24 | + | |
57 | 25 | | |
58 | | - | |
| 26 | + | |
59 | 27 | | |
60 | 28 | | |
61 | 29 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
16 | 17 | | |
17 | 18 | | |
18 | 19 | | |
| |||
38 | 39 | | |
39 | 40 | | |
40 | 41 | | |
| 42 | + | |
41 | 43 | | |
42 | 44 | | |
43 | 45 | | |
| |||
52 | 54 | | |
53 | 55 | | |
54 | 56 | | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
65 | 61 | | |
66 | 62 | | |
67 | 63 | | |
| |||
101 | 97 | | |
102 | 98 | | |
103 | 99 | | |
104 | | - | |
105 | | - | |
106 | | - | |
107 | | - | |
108 | | - | |
109 | | - | |
110 | | - | |
111 | | - | |
112 | | - | |
113 | | - | |
114 | | - | |
115 | | - | |
116 | | - | |
117 | | - | |
118 | | - | |
119 | | - | |
120 | | - | |
121 | | - | |
122 | | - | |
123 | | - | |
124 | | - | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
125 | 105 | | |
126 | 106 | | |
127 | 107 | | |
128 | 108 | | |
129 | 109 | | |
130 | | - | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
131 | 114 | | |
132 | | - | |
133 | | - | |
134 | | - | |
135 | 115 | | |
136 | 116 | | |
137 | 117 | | |
| |||
169 | 149 | | |
170 | 150 | | |
171 | 151 | | |
172 | | - | |
173 | | - | |
174 | | - | |
175 | 152 | | |
176 | | - | |
177 | | - | |
178 | | - | |
179 | | - | |
180 | | - | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
181 | 163 | | |
182 | 164 | | |
183 | 165 | | |
184 | 166 | | |
185 | 167 | | |
186 | | - | |
187 | | - | |
188 | | - | |
189 | | - | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
190 | 171 | | |
191 | 172 | | |
192 | 173 | | |
193 | 174 | | |
194 | | - | |
195 | | - | |
196 | 175 | | |
197 | | - | |
| 176 | + | |
198 | 177 | | |
199 | 178 | | |
200 | 179 | | |
| |||
0 commit comments