Skip to content

Commit

Permalink
changes
Browse files Browse the repository at this point in the history
  • Loading branch information
franklinlindemberg committed Jul 31, 2024
1 parent 26d79f9 commit e15558b
Show file tree
Hide file tree
Showing 5 changed files with 136 additions and 8 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,6 @@ appsettings.json

__pycache__

.cache
.cache

.idea/
14 changes: 7 additions & 7 deletions ai-services/multilingual-agent/.env
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
SPEECH_API_KEY="<SEARCH_API_KEY>"
SPEECH_REGION="<SPEECH_REGION>"
TRANSLATION_KEY="<TRANSLATION_KEY>"
TRANSLATION_REGION="<TRANSLATION_REGION>"
OPENAI_KEY="<OPENAI_KEY>"
OPENAI_ENDPOINT="<OPENAI_ENDPOINT>"
ASSISTANT_ID="<ASSISTANT_ID>"
SPEECH_API_KEY="82ba399266464ed493f98174b59bae01"
SPEECH_REGION="eastus"
TRANSLATION_KEY="87134b39fc8049fbbe096b0557eec646"
TRANSLATION_REGION="eastus"
OPENAI_KEY="bde1b8434a59454698f97af211a8a3fd"
OPENAI_ENDPOINT="https://chattest-westus2-kel54xbecb3to.openai.azure.com/"
ASSISTANT_ID="asst_mduMUSYCT9T108JCB1udEF07"
21 changes: 21 additions & 0 deletions ai-services/multilingual-agent/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2024 Chris Ayers

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
105 changes: 105 additions & 0 deletions ai-services/multilingual-agent/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,105 @@
# AI-in-a-Box Multilingual Agent

<!-- <div style="display: flex;">
<div style="width: 70%;">
This solution is part of the the AI-in-a-Box framework developed by the team of Microsoft Customer Engineers and Architects to accelerate the deployment of AI and ML solutions. Our goal is to simplify the adoption of AI technologies by providing ready-to-use accelerators that ensure quality, efficiency, and rapid deployment.
</div>
<div style="width: 30%;">
<img src="./media/ai-in-a-box.png" alt="AI-in-a-box Project Logo: Description" style="width: 10%">
</div>
</div> -->
|||
|:---| ---:|
|This solution is part of the the AI-in-a-Box framework developed by the team of Microsoft Customer Engineers and Architects to accelerate the deployment of AI and ML solutions. Our goal is to simplify the adoption of AI technologies by providing ready-to-use accelerators that ensure quality, efficiency, and rapid deployment.| <img src="./media/ai-in-a-box.png" alt="AI-in-a-box Logo: Description" style="width: 70%"> |

## User Story
![multilingual-agent](./media/multilingual-agent.jpg)


This is the WHY

Insert a image here that tells an interesting story about the solution being delivered

Describe how this solution can help a user's organization, including examples on how this solution could help specific industries

Describe what makes this solution and other reasons why someone would want to deploy this. Here's some ideas that you may wish to consider:

- **Speed and Efficiency**: How does this solution accelerate the deployment of AI/ML solutions?
- **Cost-Effectiveness**: In what ways does it help save on development costs?
- **Quality and Reliability**: What measures are in place to ensure the high quality and reliability of your solution?
- **Competitive Edge**: How does it give users a competitive advantage in their domain?

## What's in the Box

- CLI (command line interface) that allows users to talk with the assistant by voice
- Orchestrator that is responsible for
1. Capture and convert the user's voice to text
2. Translate the text to the language of the assistant (english)
3. Send the text to the assistant
4. Translate the response to the user's language
5. Convert the text to voice and play it to the user
- Deployment of all azure resources needed:
- Azure AI Services (we will be using Speech and Language services)
- Azure OpenAI
- Creation of Open AI Assistant
- Integrated with File Search tool


This is WHAT they get when they deploy the solution

Describe any helpful technical benefits of this solution (for example, deploys key vault for storing keys securely, UAMI for easy and secure integration)

Describe what Azure Resources are deployed

Include Architecture Diagrams including inputs and outputs

Provide links to any associated blogs about this solution (any FTA blogs you wrote that provide more details)

## Thinking Outside of the Box

This is a WHY and a WHAT

Describe ways users can customize and enahance the solution for use inside their organization

## Deploy the Solution

Provide instructions on how to deploy the solutione:

1. **Prerequisites**: List any requirements for using this solution (e.g., software, accounts).
2. **Installation**: Step-by-step instructions for deploying the solution to Azure.
3. **Post Deployment**: Include any instructions that the user may need to do after the resources have been deployed; for example, upload files to blob storage, create an ML or an AI Services project

## Run the Solution

Include instructions on how they can run and test the solution

## Customize the Solution

Describe different ideas on how to enhance or customize for their use cases

## How to Contribute

This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit <https://cla.opensource.microsoft.com>

When you submit a pull request, a CLA bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., status check, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repos using our CLA.

This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/). For more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq) or contact <[email protected]> with any additional questions or comments.
## Key Contacts & Contributors

Highlight the main contacts for the project and acknowledge contributors. You can adapt the structure from AI-in-a-Box:

| Contact | GitHub ID | Email |
|---------|-----------|-------|
| Your Name | @YourGitHub | [email protected] |

## Acknowledgments

If applicable, offer thanks to individuals, organizations, or projects that helped inspire or support your project.

## License

This project may contain trademarks or logos for projects, products, or services. Authorized use of Microsoft trademarks or logos is subject to and must follow [Microsoft's Trademark & Brand Guidelines](https://www.microsoft.com/en-us/legal/intellectualproperty/trademarks/usage/general). Use of Microsoft trademarks or logos in modified versions of this project must not cause confusion or imply Microsoft sponsorship. Any use of third-party trademarks or logos are subject to those third-party's policies.

---

This project is part of the AI-in-a-Box series, aimed at providing the technical community with tools and accelerators to implement AI/ML solutions efficiently and effectively.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit e15558b

Please sign in to comment.