So I'm guessing you've been hearing a bit about watsonx. Well...now you can build your very own app with itπ (I know...crazy right?!). In this tutorial you'll learn how to build your own LLM powered Streamlit with the IBMGen library.
- Create a virtual environment
python -m venv watxonx
- Activate it:
- Windows:
.\watxonx\Scripts\activate
- Mac:
source watxonx/bin/activate
- Windows:
- Clone this repo by running
git clone <this repo name>
- Install the dependencies by running
pip install -r requirements.txt
- Update your watsonx.ai API key on Line 11 of
app.py
e.g. APIKEY = 'pak-2SuHPQ8y9eDznqXa-7ml-ecMAUJGLseuC3j8Cc41ZVQ' - Run the app by running the command
streamlit run app.py
-IBMGen Documentation:documentation for the IBMGen library available through the tech preview UI.
-IBMGen Langchain Extension:Langchain is a highly popular LLM library, it's used to structure prompt chains and llm workflows. In this tutorial we use the IBMGen langchain extension to generate responses.
π¨πΎβπ» Author: Nick Renotte
π
Version: 1.x
π License: This project is licensed under the MIT License