This repository contains scripts following tutorials on LangChain. The tutorials can be found on YouTube:
Follow these steps to set up the environment:
-
Create the Conda environment:
conda create -n lang_chain python=3.9
-
Activate the environment:
conda activate lang_chain
-
Install dependencies:
pip install -r requirements.txt
-
langchain_openai_example1.py Description: Uses LangChain and openai_key to demonstrate a LangChain model on Streamlit.
-
single_prompt_template.py Description: Demonstrates how to use LLMChain with a single prompt template.
-
multiple_prompt_template.py Description: Combines multiple prompts by taking the output of one prompt template as input for a second prompt template, using PromptTemplate and LLMChain.
-
langchain_memory_conversation_openai.py Description: Saves conversation history to memory for continuous conversation
-
prompt_eng_langchain.py Description: Covers prompt engineering techniques using LangChain.