Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion ENTERPRISE_DEPLOYMENT.md
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ The user has two options:
1. The user can deploy the solution to an Azure Web App. In the `deployment` folder, the user can the `deployment.sh` bash script to deploy the web app.


## Azure Arquitecture Review:
## Azure Architecture Review:

This repository contains the Bicep code to deploy an Azure App Services baseline architecture with zonal redundancy and the Azure Open Ai resource deployed in the four regions that are currently (**as of Jan 2024**) supported to run the GPT -4 Vision model.

Expand Down
2 changes: 1 addition & 1 deletion ui/chainlit.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ This document outlines the primary commands and options available in the testing
| **cmd index** | Type `cmd index` to change the name of the AI Search index. |
| **cmd password** | Type `cmd password` to change the PDF password (if PDFs are password-protected). |
| **cmd tag_limit** | Type `cmd tag_limit` to change the upper limits of the generated tags per query for the search. |
| **cmd topN** | Type `cmd topN` to change how many top N results to fetch while executing the search. |
| **cmd top_n** | Type `cmd top_n` to change how many top N results to fetch while executing the search. |
| **cmd pdf_mode** | Type `cmd pdf_mode` to change the PDF extraction mode. Allowed values are 'gpt-4-vision' or 'document-intelligence'. |
| **cmd docx_mode** | Type `cmd docx_mode` to change the docx extraction mode. Allowed values are 'document-intelligence' or 'py-docx'. |
| **cmd threads** | Type `cmd threads` to change the number of threads. Allows for multi-threading during ingestion. Make sure that AZURE_OPENAI_RESOURCE_x and AZURE_OPENAI_KEY_x are properly configured in your .env file. |
Expand Down
4 changes: 2 additions & 2 deletions ui/chat.py
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ async def main(message: cl.Message):
elif cmd == 'pdf_mode':
res = await cl.AskUserMessage(content="What is the PDF extraction mode?", timeout=1000).send()
if res:
pdf_extraction_mode = res['output'].strip().upper()
pdf_extraction_mode = res['output'].strip().lower()
if pdf_extraction_mode in ['gpt-4-vision', 'document-intelligence']:
pdf_extraction_modes[cl.user_session.get("id")] = pdf_extraction_mode
await update_task_list()
Expand Down Expand Up @@ -363,7 +363,7 @@ async def main(message: cl.Message):
except:
pass

elif cmd == 'topN':
elif cmd == 'top_n':
res = await cl.AskUserMessage(content="What is the Top N for the Search Results?", timeout=1000).send()
if res:
log_message(res)
Expand Down
3 changes: 2 additions & 1 deletion ui/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@ httpx
pyperclip
colorlog
chainlit==1.0.502
streamlit>=1.31.1
streamlit>=1.31.1
pydantic==2.10.1