The movies.py
script implements a simple chatbot using the LangGraph graph builder, based on an example from LangGraph documentation.
While OpenAI's LLM is the default choice, it can be replaced with other LLMs, such as Ollama Llama3.
The moviesAPi.py
is a code-generated script. Reference its OpenAPI spec at the MockServer
folder.
- Make sure the
MockServer
is running.
python ./MockServer/mocker.py
- Make sure you have an OpenAI API key
- Run the app
python ./Chatbot/movies.py
- Enter your queries about the movies, or enter
.exit
to exit the conversation
A list of sample questions has been provided at the end of the movies.py
file.
You can also enable LandSmith tracing as described here.