The Langraph-Based Langchain Developer Assistant is a Retrieval-Augmented Generation (RAG) application built using the langraph
library. This tool helps developers by allowing them to scrape Langchain documentation (or any other specified documentation) and query it for debugging, coding assistance, and general information. It utilizes Ollama Phi Llama 3.1 for content generation with local models.
- Documentation Scraping: Automatically scrape Langchain documentation or other specified sources.
- Query Assistance: Retrieve relevant information and suggestions based on user queries.
- Content Generation: Generate answers and content using local models.
- Customizable: Configure sources and settings to tailor the assistant to your needs.
To install and set up the Langraph-Based Langchain Developer Assistant, follow these steps:
-
Clone the Repository:
git clone https://github.com/Ibzie/Langraph-Based-Langchain-Developer-Assistant.git cd Langraph-Based-Langchain-Developer-Assistant
-
Set Up a Virtual Environment:
python3 -m venv .venv source .venv/bin/activate
-
Install Dependencies:
pip install -r requirements.txt
-
Obtain Langchain API Key:
- Visit the Langchain API website to register and obtain your API key.
- Once you have your API key, create a .env file in the root of your project directory.
-
Configure Your Environment:
- Add the following lines to your .env file, replacing YOUR_API_KEY with the API key you obtained:
LANGCHAIN_API_KEY=YOUR_API_KEY
-
Run the Application:
python app.py
-
Start the Application:
-
Run the app.py script. It will start the application and scrape the specified documentation.
-
Interact with the Assistant:
- Enter your query when prompted. The assistant will provide relevant information based on the documentation and the query.
-
Customize:
- Modify config.py to change settings such as URLs to scrape, depth of scraping, and local model configuration.
Python 3.10 or higher Ollama Phi Llama 3.1
pip install -r requirements.txt
This project is licensed under the MIT License.
Contributions are welcome! Please open an issue or submit a pull request to contribute.
For any questions or feedback, please reach out!