clownfish
AICommand
clownfish | AICommand | |
---|---|---|
11 | 19 | |
303 | 3,920 | |
- | - | |
4.3 | 3.3 | |
about 1 year ago | 6 months ago | |
Python | C# | |
MIT License | The Unlicense |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
clownfish
-
Show HN: LLMs can generate valid JSON 100% of the time
I'm not sure how this is different than:
https://github.com/1rgs/jsonformer
or
https://github.com/newhouseb/clownfish
or
https://github.com/mkuchnik/relm
or
https://github.com/ggerganov/llama.cpp/pull/1773
or
https://github.com/Shopify/torch-grammar
Overall there are a ton of these logit based guidance systems, the reason they don't get tons of traction is the SOTA models are behind REST APIs that don't enable this fine-grained approach.
Those models perform so much better that people generally settle for just re-requesting until they get the correct format (and with GPT-4 that ends up being a fairly rare occurrence in my experience)
- OpenAI Function calling and API updates
-
Adding GPT to a web app. The real experience.
I can see some specific problems there, like malformed json (or json not matching intended schema being generated). Approaches like https://github.com/1rgs/jsonformer and https://github.com/newhouseb/clownfish could be interesting there, as well as approaches to validate outputs like https://medium.com/@markherhold/validating-json-patch-requests-44ca5981a7fc (references jsonpatch which could be interesting as well, but the approach is somewhat agnostic to how the changes actually get applied while still allowing you to enforce structure around what changes and how).
-
When you lose the ability to write, you also lose some of your ability to think
https://github.com/newhouseb/clownfish
Structural Alignment: Modifying Transformers (like GPT) to Follow a JSON Schema
- Clownfish: Constrained Decoding for LLMs Against JSON Schema
-
Jsonformer: A bulletproof way to generate structured output from LLMs
Oh nice! I built a similar system a few weeks ago: https://github.com/newhouseb/clownfish
I think the main differentiating factor here is that this is better if you have a simpler JSON schema without enums or oneOf constraints. If you do have these constraints, i.e. let's say you wanted an array of different types that represented a items on a menu { kind: pizza, toppings: [pepperoni] } or { kind: ice_cream, flavor: vanilla | strawberry } then you would need something more sophisticated like clownfish that can ask the LLM to pick specific properties.
-
Prompt injection: what’s the worst that can happen?
And on the other end, there's https://github.com/newhouseb/clownfish to force the model to produce structured output.
-
Teaching ChatGPT to Speak My Son’s Invented Language
It doesn't help with repetition, but when it comes to force structure on the output data, this approach looks interesting:
https://github.com/newhouseb/clownfish
TL;DR: it exploits the fact that the model returns probabilities for all the possible following tokens to enforce a JSON schema on the output as it is produced, backtracking as needed.
- Structural Alignment: Modifying Transformers (Like GPT) to Follow a JSON Schema
- Structural Alignment of LLMs with ControLogits
AICommand
-
The biggest week in AI history. Here's whats happening
Edit Unity using natural language with GPT [Link]
- Software Engineers are screwed
-
Introducing here BASI: like BabyAGI, but Autonomous and Self-Improving
Not yet, but I am implementing an embedding system to analyze and edit large files, like in TeenageAGI, and I'll probably add AICommand for unity later.
-
Made my own little Clippy with Unity, ChatGPT, and Google Text-to-Speech
ChatGPT - Homebrew API Integration using UnityWebRequest (but good starting point here)
-
3D designers are going to love this. This is ChatGPT for Unity. & It’s available for everyone to try👇
Try it out here: https://github.com/keijiro/AICommand
-
BlenderGPT: Use commands in English to control Blender with OpenAI's GPT-4
yeah there’s also AICommand for Unity that uses a similar technique: https://github.com/keijiro/AICommand
- Chatgpt and unity
-
GPT-4 Week One. The biggest week in AI history. Here's whats happening
Edit Unity using natural language with GPT [Link]
-
Unity is going to announce Unity AI, looks like integrated IA tools directly in the engine! They have a hidden video here 👀
I tested https://github.com/keijiro/AICommand made by an Unity employee, and I was quite disappointed by the result and that's an understatement.
-
Having fun with ChatGPT 🤖
It’s easier to make than it might look, see https://github.com/keijiro/AICommand for an example of something similar.
What are some alternatives?
jsonformer - A Bulletproof Way to Generate Structured JSON from Language Models
vosk-unity-asr - Automatic Speech Recognition in Unity using Vosk library
lmql - A language for constraint-guided and efficient LLM programming.
BlenderGPT - Use commands in English to control Blender with OpenAI's GPT-4
outlines - Structured Text Generation
DuckGPT - Ask questions, let GPT do the SQL.
evals - Evals is a framework for evaluating LLMs and LLM systems, and an open-source registry of benchmarks.
babyagi-asi - BabyAGI: an Autonomous and Self-Improving agent, or BASI
ChatGPT_DAN - ChatGPT DAN, Jailbreaks prompt
wolverine
kodumisto - GitHub Issue as ChatGPT Prompt; ChatGPT's Response as a Pull Request
browser_extension - A browser extension that redirects popular sites to alternative privacy friendly frontends