Skip to content

jetzlstorfer/AOAI-RAG-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Demo for showcasing RAG with Azure OpenAI services

Setup & Prerequisites

Azure OpenAI Models

Tested with Azure OpenAI models gpt-35-turbo and text-embedding-ada-002.

Name of models in the code (can be changed, of course):

  • gpt-35-turbo
  • text-embedding-3-small

Environment variables

Populate a .env file with the following variables:

AZURE_OPENAI_API_KEY=
AZURE_OPENAI_ENDPOINT=

Run it locally via Docker

docker build -t rag-demo .
docker run --env-file ./.env -p 8080:8080 rag-demo

Demo run

Open a browser and navigate to http://localhost:8080/

Example demo run

Ask the question: Will there be drinks at the event? and see the response 😀

demo run

Acknowledgements

Thanks to Philipp Bergsmann for the initial implementation of the RAG model with Azure OpenAI services.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published