Skip to content

Commit 6620ee9

Browse files
committed
Merge branch 'main' into multiLang
2 parents bf091f1 + eb5627c commit 6620ee9

File tree

79 files changed

+2015
-478
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

79 files changed

+2015
-478
lines changed

app/backend/approaches/chatreadretrieveread.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ async def run_until_final_call(
196196
"thoughts": [
197197
ThoughtStep(
198198
"Prompt to generate search query",
199-
[str(message) for message in query_messages],
199+
query_messages,
200200
(
201201
{"model": self.chatgpt_model, "deployment": self.chatgpt_deployment}
202202
if self.chatgpt_deployment
@@ -221,7 +221,7 @@ async def run_until_final_call(
221221
),
222222
ThoughtStep(
223223
"Prompt to generate answer",
224-
[str(message) for message in messages],
224+
messages,
225225
(
226226
{"model": self.chatgpt_model, "deployment": self.chatgpt_deployment}
227227
if self.chatgpt_deployment

app/backend/approaches/chatreadretrievereadvision.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ async def run_until_final_call(
200200
"thoughts": [
201201
ThoughtStep(
202202
"Prompt to generate search query",
203-
[str(message) for message in query_messages],
203+
query_messages,
204204
(
205205
{"model": query_model, "deployment": query_deployment}
206206
if query_deployment
@@ -225,7 +225,7 @@ async def run_until_final_call(
225225
),
226226
ThoughtStep(
227227
"Prompt to generate answer",
228-
[str(message) for message in messages],
228+
messages,
229229
(
230230
{"model": self.gpt4v_model, "deployment": self.gpt4v_deployment}
231231
if self.gpt4v_deployment

app/backend/approaches/retrievethenread.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ async def run(
155155
),
156156
ThoughtStep(
157157
"Prompt to generate answer",
158-
[str(message) for message in updated_messages],
158+
updated_messages,
159159
(
160160
{"model": self.chatgpt_model, "deployment": self.chatgpt_deployment}
161161
if self.chatgpt_deployment

app/backend/approaches/retrievethenreadvision.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ async def run(
177177
),
178178
ThoughtStep(
179179
"Prompt to generate answer",
180-
[str(message) for message in updated_messages],
180+
updated_messages,
181181
(
182182
{"model": self.gpt4v_model, "deployment": self.gpt4v_deployment}
183183
if self.gpt4v_deployment

app/backend/requirements.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ azure-identity
22
quart
33
quart-cors
44
openai>=1.3.7
5-
numpy>=1 # Used by openai embeddings.create to optimize embeddings (but not required)
5+
numpy>=1,<2.1.0 # Used by openai embeddings.create to optimize embeddings (but not required)
66
tiktoken
77
tenacity
88
azure-ai-documentintelligence

app/backend/requirements.txt

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66
#
77
aiofiles==24.1.0
88
# via quart
9-
aiohappyeyeballs==2.3.5
9+
aiohappyeyeballs==2.4.0
1010
# via aiohttp
11-
aiohttp==3.10.2
11+
aiohttp==3.10.5
1212
# via
1313
# -r requirements.in
1414
# microsoft-kiota-authentication-azure
@@ -26,7 +26,7 @@ attrs==24.2.0
2626
# via aiohttp
2727
azure-ai-documentintelligence==1.0.0b3
2828
# via -r requirements.in
29-
azure-cognitiveservices-speech==1.38.0
29+
azure-cognitiveservices-speech==1.40.0
3030
# via -r requirements.in
3131
azure-common==1.1.28
3232
# via azure-search-documents
@@ -125,7 +125,7 @@ hypercorn==0.17.3
125125
# via quart
126126
hyperframe==6.0.1
127127
# via h2
128-
idna==3.7
128+
idna==3.8
129129
# via
130130
# anyio
131131
# httpx
@@ -165,11 +165,11 @@ microsoft-kiota-abstractions==1.3.3
165165
# microsoft-kiota-serialization-text
166166
# msgraph-core
167167
# msgraph-sdk
168-
microsoft-kiota-authentication-azure==1.0.0
168+
microsoft-kiota-authentication-azure==1.1.0
169169
# via
170170
# msgraph-core
171171
# msgraph-sdk
172-
microsoft-kiota-http==1.3.2
172+
microsoft-kiota-http==1.3.3
173173
# via
174174
# msgraph-core
175175
# msgraph-sdk
@@ -198,11 +198,11 @@ numpy==2.0.1
198198
# via -r requirements.in
199199
oauthlib==3.2.2
200200
# via requests-oauthlib
201-
openai==1.40.1
201+
openai==1.42.0
202202
# via
203203
# -r requirements.in
204204
# openai-messages-token-helper
205-
openai-messages-token-helper==0.1.9
205+
openai-messages-token-helper==0.1.10
206206
# via -r requirements.in
207207
opentelemetry-api==1.26.0
208208
# via
@@ -258,7 +258,7 @@ opentelemetry-instrumentation-flask==0.47b0
258258
# via azure-monitor-opentelemetry
259259
opentelemetry-instrumentation-httpx==0.47b0
260260
# via -r requirements.in
261-
opentelemetry-instrumentation-openai==0.26.5
261+
opentelemetry-instrumentation-openai==0.27.0
262262
# via -r requirements.in
263263
opentelemetry-instrumentation-psycopg2==0.47b0
264264
# via azure-monitor-opentelemetry
@@ -375,7 +375,7 @@ sniffio==1.3.1
375375
# anyio
376376
# httpx
377377
# openai
378-
soupsieve==2.5
378+
soupsieve==2.6
379379
# via beautifulsoup4
380380
std-uritemplate==1.0.5
381381
# via microsoft-kiota-abstractions
@@ -394,7 +394,7 @@ types-beautifulsoup4==4.12.0.20240511
394394
# via -r requirements.in
395395
types-html5lib==1.1.11.20240806
396396
# via types-beautifulsoup4
397-
types-pillow==10.2.0.20240520
397+
types-pillow==10.2.0.20240822
398398
# via -r requirements.in
399399
typing-extensions==4.12.2
400400
# via
@@ -411,9 +411,9 @@ tzdata==2024.1
411411
# via pendulum
412412
urllib3==2.2.2
413413
# via requests
414-
uvicorn==0.30.5
414+
uvicorn==0.30.6
415415
# via -r requirements.in
416-
werkzeug==3.0.3
416+
werkzeug==3.0.4
417417
# via
418418
# flask
419419
# quart
@@ -428,7 +428,7 @@ wsproto==1.2.0
428428
# via hypercorn
429429
yarl==1.9.4
430430
# via aiohttp
431-
zipp==3.19.2
431+
zipp==3.20.0
432432
# via importlib-metadata
433433

434434
# The following packages are considered to be unsafe in a requirements file:

0 commit comments

Comments
 (0)