Skip to content

Commit

Permalink
Adding Azure Cog Search Vector capabilites, Azure Form Recognizer and…
Browse files Browse the repository at this point in the history
… New Notebook for complex files
  • Loading branch information
pablomarin committed Aug 19, 2023
1 parent 5bde842 commit 1f17222
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
Binary file modified apps/backend/backend.zip
Binary file not shown.
Binary file modified apps/frontend/frontend.zip
Binary file not shown.
6 changes: 4 additions & 2 deletions apps/frontend/pages/2_WebChat.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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?
Expand Down
4 changes: 2 additions & 2 deletions common/prompts.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 1f17222

Please sign in to comment.