Skip to content

Latest commit

 

History

History
25 lines (19 loc) · 1.69 KB

README.md

File metadata and controls

25 lines (19 loc) · 1.69 KB

Regolex

Regolex is a Phoenix application that connects to the Regolo AI API Regolo as an Elixir playground to create a micro chatbot application. It has been written to demonstrate how to connect to the Regolo API streaming the result to the client using Phoenix LiveView.

To start your Phoenix server:

  • If you don't have Elixir installed in macOS/Ubuntu/Windows, you can install it by following the instructions here
  • Run mix setup to install and setup dependencies
  • Set the environment variables REGOLO_TOKEN, REGOLO_ENDPOINT, REGOLO_MODEL, REGOLO_IDENTITY the application will use them to connect to the Regolo API
    • REGOLO_TOKEN is the API token provided by Regolo
    • REGOLO_ENDPOINT is the endpoint provided by Regolo
    • REGOLO_MODEL is the LLM Model you want to use (from the available in regolo Available models) e.g. 'meta-llama/Llama-3.3-70B-Instruct'
    • REGOLO_IDENTITY is the identity you want to use for the chatbot e.g. "You are an expert in cities, and your name is Regolo." this will change the behavior of the chatbot
  • Start Phoenix endpoint with mix phx.server or inside IEx with iex -S mix phx.server

Now you can visit localhost:4000 from your browser.

Ready to run in production? Please check our deployment guides.

Learn more