Skip to content

Latest commit

 

History

History
29 lines (20 loc) · 730 Bytes

README.md

File metadata and controls

29 lines (20 loc) · 730 Bytes

Software-Patterns-for-LLMs

This project implements a modular state machine using LangGraph and FastAPI, designed to handle workflows through independent nodes. The nodes interact via a shared state, ensuring flexibility and scalability.


Installation

  1. Set OpenAI API Key:

    • Rename .env.example to .env and add your OPENAI_API_KEY to the .env file:
      OPENAI_API_KEY=your_openai_api_key
      
  2. Install Dependencies:

    • Use Poetry as the dependency manager to install the required packages:
      poetry install
  3. Run the FastAPI Server:

    • Start the server:
      poetry run uvicorn main:app --reload