Skip to content

Latest commit

 

History

History
24 lines (17 loc) · 986 Bytes

README.md

File metadata and controls

24 lines (17 loc) · 986 Bytes

A chatbot implementation with an agent generated

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.

Run the chatbot

  1. Make sure the MockServer is running.
python ./MockServer/mocker.py
  1. Make sure you have an OpenAI API key
  2. Run the app
python ./Chatbot/movies.py
  1. 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.