Skip to content

ploffredi/regolex

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published