Coder Social home page Coder Social logo

gg-off / poked Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ariya/ask-llm

2.0 0.0 0.0 77 KB

Interact with groq to ask mixtral-8x7b-32768 to serve random pokemon JSON files

License: MIT License

JavaScript 37.03% Python 19.55% Clojure 16.12% Go 19.47% Shell 7.84%

poked's Introduction

poked ~ straightforward zero-dependency AI POWERED CLI POKEDEX (o)

Fork of ariya's ask-llm [[https://github.com/ariya/ask-llm]]

point is : trying to force standard JSON ouput while maximising temperature (creativity)

forcing by prompt is working BUT this is also a GROQ feature to force JSON :o

it needs Linux Shell + Python version v3.10 or higher (JS GO and CLJ are pretty artefacts for art colors stats and references)

git clone https://github.com/GG-off/poked/
cd poked
chmod +x agent.sh
export LLM_API_KEY="[YOUR_OWN_FREE_GROQ_API_KEY]"
./agent.sh [number_of_fire_pokemon_you_want_to_be_serve_with_in_the_JSON_FILE]

known problems and few solutions

  • hallucinate, like giving parasect with bug+fire type
  • easy prompt injection (any text can be taken as input aside from numbers in decimals or letters) -> exemple of prompt injection input : "three digimon and two birds" instead of "5" :P
  • it tries sometimes to serve a link to illustrate the pokemon, like https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/other/dream-world/653.svg and it and matches when it doesn't mix different pokedex indexes (this is going deep lol) or generate fakemon after prompt injection
  • not random but supposed to be, no seed controle yet

JSON output

without JSON mode it can have trouble generating end of JSON output -- with 200 tokens it was almost always broken, with maximum token it will broke when very big list asked -- and broke randomly because AI lol --> automated options do exist to fix it but should only be use if you have the motivation ton build it (i don't) --> OR a second agent correcting the ouput adding more error sources ? So thanks for JSON Mode! Next : pushing creativity then constrain it

to do :

  • alias poked

  • few ideas lol

  • more options

  • pikachu!

      (
      '
    

|||||'''>@ Please God of Memory Let me NOT Forget, never, any Secret API Key in any Repo (and be told if so) <<'

read doc for rights questions I guess ; MIT was the one of ariya's ask-llm [[https://github.com/ariya/ask-llm]] NOT related to NINTENDO or any GAMEFREAK or whatever company or holding.

poked's People

Contributors

ariya avatar gg-off avatar

Stargazers

Alex avatar  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.