Git Product home page Git Product logo

kresmo's Introduction

Kresmo

Kresmo refers to Χρησμός, of ancient Greek oracular fame. Seekers came to speak to Pythia, the Oracle at Delphi, to gain wisdom and advice, but often left with puzzling pronouncements that had ambigious interpretations.

Now that we now have Large Language Models, we don't have to chew bay leaves and inhale the osmic steam emerging from the chasm, unless of course you want to.

Kresmo is an Arduino sketch that uses an OpenAI-compatible API to generate a random and brief pithy saying. The sketch uses the U8g2 library for displaying text on an OLED screen, and the WiFi library for connecting to the internet. The ESP32-C3-0.42 module combines all this hardware into one tiny board.

prophecy.jpg

Hardware Requirements

  • ESP32-C3-0.42 RISC-V CPU with Wifi annd LCD

Configuration

Before running the sketch, you need to configure the following settings in the config.h file:

#define ssid "your_network_ssid"
#define pass "your_network_password"
#define server "localllm.example.com"
#define port 5000
#define path "/v1/generate"

There's no provision for authentication, so you will have to add one if you use openAI or other public API endpoints.

Usage

The sketch will connect to the internet and display a random and brief pithy saying on the OLED screen.

Credits

This sketch was created by Leigh Klotz (WA5ZNU) and is based on the Arduino WiFi Client and the ESP32-C3-0.42LCD examples.

Future Work

  • better word wrapping and scrolling
  • add a magnifying lens and put in a mysterious case
  • prompt tuning, perhaps take into account some current conditions via local httP GET and inject into prompt
  • Use a bigger screen

References

kresmo's People

Contributors

leighklotz avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.