To process the source code, you need to install the dependencies and setup the virtual environment.
The source code is processed by the following steps:
- The source code is enriched using Jupiter Notebook
01_code_enrichment.ipynb - The enriched source code is indexed using Jupiter Notebook
02_code_indexing.ipynb
python -m venv ./.venv
cd ./.venv/Scripts
./activatecd ../..
pip install -r processing/requirements.txtThe vector store used for this demo is currently Redis Stack.
You can also use Azure Cache for Redis with the Enterprise tier (RefdiSearch is required). You can find more information here: Azure OpenAI Embeddings QnA.
To setup Redis Stack locally using Docker you can follow the instructions in the Redis Stack documentation.
To setup Redis Stack on Azure Container Instances, you create a container instance using redis/redis-stack image as shown on the figure below. Be sure to provide enough core and memory to run it smoothly.
Then you need to expose the port 6379 to be able to connect to it and the port 8001 for Redis Insight.
Now you are good to go. Set the parameters in the notebooks and run them one after the other.

