Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/rishabkumar7/langchain-azure-ai-search-rag


https://github.com/rishabkumar7/langchain-azure-ai-search-rag

Last synced: 2 days ago
JSON representation

Awesome Lists containing this project

README

        

# LangChain RAG with Azure AI Search

This repository contains a Streamlit application that generates project ideas based on Microsoft Azure Certifications and the level of the project (beginner, intermediate, advanced). The application uses the LangChain RAG (Retrieval-Augmented Generation) model with Azure AI Search to generate the project ideas.

## Architecture

![Architecture for the project](./architecture.png)

## Features

- Select a Microsoft Azure Certification from a dropdown list (AZ-900, AZ-104, AZ-305, AZ-400).
- Select a project level from a dropdown list (beginner, intermediate, advanced).
- Generate a detailed project idea, including the project name, description, list of services used, and steps to make the project.
- Prompt Template used:

```
template="""
You are a helpful cloud instructor that provides cloud project ideas about Microsoft Azure Certifications based on the certification guide.

Give me a project idea for certification: {certification} of the level: {level}
By searching the following certification guide: {docs}

Only use the factual information from the guide to provide the project idea.

If you feel like you don't have enough information to answer the question, say "I don't know".

Your answers should be verbose and detailed. Include a Project Name, Project Description, list of Services Used and Steps to make the project. Make sure your response is in markdown format like:

### Project Name:
Project Description:
Services Used:
- Service 1
- Service 2
#### Steps:
- Step 1
- Step 2
"""
```

## Setup

- Clone this repository.
- Create a [virtual environment.](https://docs.python.org/3/library/venv.html)
- Install the required Python packages:

``` python
pip install -r requirements.txt
```

- Set up your Azure AI Search service and get your endpoint URL and admin key.
- Set up your OpenAI API key.
- Create a .env file in the root directory of the project and add your Azure Search endpoint URL, admin key, and OpenAI API key (look at the `.env.example):

``` bash
AZURE_SEARCH_ENDPOINT=""
AZURE_SEARCH_ADMIN_KEY=""
OPENAI_API_KEY=""
```

## Usage

1. Run the Streamlit application:
``` python
streamlit run streamlit.py
```
2. Open the application in your web browser.
3. Select a Microsoft Azure Certification and a project level.
4. Click the "Generate" button to generate a project idea.

## License

This project is licensed under the terms of the MIT license. See the LICENSE file for details.

## Author

- GitHub: [@rishabkumar7](https://github.com/rishabkumar7)
- Twitter: [@rishabincloud](https://x.com/rishabincloud)