raseel-zymr's picture
Understanding Langchain by building script generator
5b4830a
---
title: LangChain Youtube Script Generator
emoji: 😻
colorFrom: yellow
colorTo: indigo
sdk: streamlit
sdk_version: 1.21.0
app_file: app.py
pinned: false
license: mit
---
# First LangChain tutorial
This is the first LangChain tutorial hands-on.
It's a Youtube script generator using OpenAI LLM.
It covers the following topics:
* Streamlist for Web App development
* LLMChain
* PromptTemplate
* SimpleSequentialChain
* SequentialChain
* ConversationalMemoryBuffer
* WikipediaAPIWrapper
### Pre-requisites
$ pip install openai langchain streamlit wikipedia chromadb tiktoken
Or
$ pip install -r requirements.txt
* Install the above Python packages
* Replace the API key in the file `apikey.py` with your own OpenAI API
### Running
$ streamlit run app.py
## Reference
* Langchain Docs: https://python.langchain.com/en/latest/index.html
* Streamlist: https://streamlit.io/