Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Project: Ask An Entrepreneur #123

Open
AshleyZhao opened this issue Feb 13, 2024 · 0 comments
Open

Project: Ask An Entrepreneur #123

AshleyZhao opened this issue Feb 13, 2024 · 0 comments

Comments

@AshleyZhao
Copy link

AshleyZhao commented Feb 13, 2024

Project name

Ask An Entrepreneur

Description

Summary

This app can answer general questions from famous entrepreneurs' perspectives. Currently, the app only supports Q&A with Jack Ma and Elon Musk. The answers are based on transcripts of interviews with the subject. The application uses a Retrieval-Augmented Generation pattern running in Azure, using Azure AI Search for retrieval and OpenAI large language models. You can ask questions in the format of "What does Elon Musk think of space flight?"

Improvements made for LLM performance for Chinese

  • The original text splitting parameters do not optimize chunking for CJK languages. We implemented a function to change the section length for chunking size depending on the language. The section length needed to be considerably smaller as Chinese text contains more information in a shorter amount of text.
  • For the model to look up multiple languages more accurately, we implemented a translation function that translated the user prompt so the prompt is in both English and Chinese.
  • Modified punctuation for detecting word breaks better by incorporating Chinese punctuation characters.

P.S. thanks pamelafox

P.P.S It could be the free tier of Azure deployments causes some delay when loading the endpoint. Please try again if it does not load for the first time.

Language

English, Chinese

Project Repository URL

https://github.com/AshleyZhao/ai-rag-entrepreneur-qa/tree/main

Deployed Endpoint URL

https://app-backend-edxc4c4wxgjxo.azurewebsites.net/

Project video

https://www.youtube.com/watch?v=02SXIUjNn6U

Team members

AshleyZhao, katieyang

Showcase Consent

Yes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant