diff --git a/apps/backend/backend.zip b/apps/backend/backend.zip index af4055c6..5b5eca30 100644 Binary files a/apps/backend/backend.zip and b/apps/backend/backend.zip differ diff --git a/apps/frontend/frontend.zip b/apps/frontend/frontend.zip index d6ad0e3d..1058c77d 100644 Binary files a/apps/frontend/frontend.zip and b/apps/frontend/frontend.zip differ diff --git a/apps/frontend/pages/2_WebChat.py b/apps/frontend/pages/2_WebChat.py index 470070ca..62c8625c 100644 --- a/apps/frontend/pages/2_WebChat.py +++ b/apps/frontend/pages/2_WebChat.py @@ -24,7 +24,8 @@ - Bing Search (***use @bing in your question***) - ChatGPT for common knowledge (***use @chatgpt in your question***) - Azure SQL for covid statistics data (***use @covidstats in your question***) -- Azure Search for corporate knowledge - Arxiv papers and Covid Articles (***use @docsearch in your question***) +- Azure Search for documents knowledge - Arxiv papers and Covid Articles (***use @docsearch in your question***) +- Azure Search for books knowledge - 5 PDF books (***use @booksearch in your question***) Note: If you don't use any of the tool names beginning with @, the bot will try to use it's own knowledge or tool available to answer the question. @@ -33,12 +34,13 @@ - Hello, my name is Bob, what's yours? - @bing, What's the main economic news of today? - @chatgpt, How do I cook a chocolate cake? +- @booksearch, what normally rich dad do that is different from poor dad? - @docsearch, What medicine reduces inflammation in the lungs? - @docsearch, Why Covid doesn't affect kids that much compared to adults? - What are markov chains? - @covidstats, How many people where hospitalized in Arkansas in June 2020? - @docsearch, List the authors that talk about Boosting Algorithms -- @docsearch, How does random forest work? +- @booksearch, Tell me a summary of the book Boundaries - @chatgpt, how do I fix this error: aiohttp.web_exceptions.HTTPNotFound: Not Found - @bing, what movies are showing tonight in Seattle? - @docsearch, What are the main risk factors for Covid-19? diff --git a/common/prompts.py b/common/prompts.py index d81d1c8f..56c24e5b 100644 --- a/common/prompts.py +++ b/common/prompts.py @@ -160,8 +160,8 @@ {format_instructions} -- If the human's input contains the name of one of the above tools, you **MUST** use that tool. -- If the human's input contains the name of one of the above tools, do not select another tool different from the one stated in the human's input. +- If the human's input contains the name of one of the above tools, with no exception you **MUST** use that tool. +- If the human's input contains the name of one of the above tools, **you are not allowed to select another tool different from the one stated in the human's input**. - If the human's input does not contain the name of one of the above tools, use your own knowledge but remember: only if the human did not mention any tool. - If the human's input is a follow up question and you answered it with the use of a tool, use the same tool again to answer the follow up question.