diff --git a/ENTERPRISE_DEPLOYMENT.md b/ENTERPRISE_DEPLOYMENT.md index cc0e474..d572a22 100644 --- a/ENTERPRISE_DEPLOYMENT.md +++ b/ENTERPRISE_DEPLOYMENT.md @@ -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. diff --git a/ui/chainlit.md b/ui/chainlit.md index 60b28a9..76d6d20 100644 --- a/ui/chainlit.md +++ b/ui/chainlit.md @@ -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. | diff --git a/ui/chat.py b/ui/chat.py index 4361721..a6d3bf7 100644 --- a/ui/chat.py +++ b/ui/chat.py @@ -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() @@ -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) diff --git a/ui/requirements.txt b/ui/requirements.txt index ed149a8..577c5be 100644 --- a/ui/requirements.txt +++ b/ui/requirements.txt @@ -4,4 +4,5 @@ httpx pyperclip colorlog chainlit==1.0.502 -streamlit>=1.31.1 \ No newline at end of file +streamlit>=1.31.1 +pydantic==2.10.1 \ No newline at end of file