clownfish
ChatGPT_DAN
clownfish | ChatGPT_DAN | |
---|---|---|
11 | 34 | |
303 | 5,532 | |
- | - | |
4.3 | 6.0 | |
about 1 year ago | about 2 months ago | |
Python | ||
MIT License | - |
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
ChatGPT_DAN
-
Tell HN: ChatGPT cut off date now Jan 2022
This update also seems to have patched all working DAN "jailbreaks".
None of the prompts at https://github.com/0xk1h0/ChatGPT_DAN/ or https://www.jailbreakchat.com/ work anymore with gpt4. Some are still working with gpt3.5
- Be honest, whats the dumbest thing you used Chat GPT for?
-
I asked ChatGPT, "Is it really true that the astronauts left bags of shit on the moon?" with a developer mode prompt
I asked ChatGPT (using a slightly modified version of the developer mode jailbreak prompt), "Is it really true that the astronauts left bags of shit on the moon?". It responded:
- Gotta love the new Guanaco model (13b here).
-
Looking for help, assistance, roadmap or tutorial to learn blockchain development
Easier for you to read it; there are different once. https://github.com/0xk1h0/ChatGPT_DAN
-
The Narrative Revolution Featuring Eris and Friends
I rather like this. I've been reading a lot about prompt injection and using narrative/role play instructions as a way to get the model to bypass its imposed limitations, but I'd only come across some trivial prompts for changing the language style and hadn't thought of asking it to generate a prompt to reproduce its current style after a prolonged conversation. Did you find the Syan prompt to be effective? When inserted into a new session did it have the same tone as the original session?
-
My AI in Snapchat can answer Automate questions
yeah theres some interesting stuff going on, especially as i think openai's trying to patch the exploits or "jailbreaks". I've seen a lot of stuff on reddit but a google search finds a lot of similar things like at https://github.com/0xk1h0/ChatGPT_DAN
- Jailbroken Chatgpt defending Stalin.
-
I asked chatgpt for “a joke about mormons”
Check out https://github.com/0xk1h0/ChatGPT_DAN if you’re interested jn jailbreaking ChatGPT
- If things keep going the way they are, ChatGPT will be reduced to just telling us to Google things because it's too afraid to be liable for anything or offend anyone.
What are some alternatives?
jsonformer - A Bulletproof Way to Generate Structured JSON from Language Models
gpt4all-chat - gpt4all-j chat
lmql - A language for constraint-guided and efficient LLM programming.
gpt_jailbreak_status - This is a repository that aims to provide updates on the status of jailbreaking the OpenAI GPT language model.
outlines - Structured Text Generation
Learn_Prompting - Prompt Engineering, Generative AI, and LLM Guide by Learn Prompting | Join our discord for the largest Prompt Engineering learning community
evals - Evals is a framework for evaluating LLMs and LLM systems, and an open-source registry of benchmarks.
leaked-system-prompts - Collection of leaked system prompts
kodumisto - GitHub Issue as ChatGPT Prompt; ChatGPT's Response as a Pull Request
torsocks - Library to torify application - NOTE: upstream has been moved to https://gitweb.torproject.org/torsocks.git
AICommand - ChatGPT integration with Unity Editor
Open-Assistant - OpenAssistant is a chat-based assistant that understands tasks, can interact with third-party systems, and retrieve information dynamically to do so.