azure-open-ai-embeddings-qna
A simple web application for a OpenAI-enabled document search. This repo uses Azure OpenAI Service for creating embeddings vectors from documents. For answering the question of a user, it retrieves the most relevant document and then uses GPT-3, GPT-3.5 or GPT-4 to extract the matching answer for the question.
File Explorer
Download Latest Version (.zip)- WebApp.yml
- extensions.json
- launch.json
- settings.json
- tasks.json
- __init__.py
- function.json
- __init__.py
- function.json
- __init__.py
- function.json
- microsoft.png
- 00_Chat.py
- 01_Add_Document.py
- 02_Document_Management.py
- 04_Index_Management.py
- 10_Sandbox.py
- 10_Utils - Document_Summary.py
- 11_Utils - Conversation_Data_Extraction.py
- 12_Utils - Prompt Exploration.py
- __init__.py
- azureblobstorage.py
- azuresearch.py
- customprompt.py
- formrecognizer.py
- helper.py
- pgvector.py
- redis.py
- translator.py
- .funcignore
- embeddings_text.csv
- environment.yml
- host.json
- OpenAI_Queries.py
- requirements.txt
- .dockerignore
- architecture.png
- demo.py
- Dockerfile
- helper.py
- microsoft.png
- requirements.txt
- architecture.png
- architecture_acre.png
- architecture_acs.png
- architecture_pg.png
- architecture_redis.png
- deployment.json
- deployment_ACS.json
- deployment_azcn.json
- deployment_pg.json
- deployment_pg_azcn.json
- deploymentACRE.json
- .env.template
- .gitignore
- BatchProcess.Dockerfile
- BatchProcess.Dockerfile.dockerignore
- docker-compose.yml
- LICENSE
- README.md
- WebApp.Dockerfile
- WebApp.Dockerfile.dockerignore
π Installation Guide
git clone https://github.com/ruoccofabrizio/azure-open-ai-embeddings-qna
Downloads the entire project code from GitHub to your computer.
cd azure-open-ai-embeddings-qna
Moves into the project folder you just downloaded.
2. Docker
Easy Recommended- Git Needed to download the project code from GitHub.
- Docker Desktop Needed to build and run containers. Install it and keep it running in the background.
docker compose up
Builds and starts all defined containers (server, database, etc.) at once, in the background.
docker run -p 6379:6379 redis/redis-stack-server:latest
Runs the built image as an actual container.
docker run -p 7071:80 fruocco/oai-batch:latest
Runs the built image as an actual container.
docker run --env-file .env -p 8080:80 fruocco/oai-embeddings:latest
Runs the built image as an actual container.
docker build . -f Dockerfile -t your_docker_registry/your_docker_image:your_tag
Builds a runnable image based on the Dockerfile.
Pulled directly from this repo's README.
3. Python
Easypython -m venv .venv
Runs the Python script (or module).
pip install -r code\requirements.txt
Installs the Python libraries listed in requirements.txt (or similar).
Pulled directly from this repo's README.
