raseel-zymr/LangChain-Youtube-Script-Generator
2
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.pywith your own OpenAI API
Running
$ streamlit run app.py
Reference
- Langchain Docs: https://python.langchain.com/en/latest/index.html
- Streamlist: https://streamlit.io/
