105 karma · joined Mar 8, 2017 (9y ago) · 54 submissions
comment 1y ago · link · parent
https://www.darpa.mil/news/2024/memory-safety-vulnerabilitie...
comment 3y ago · link · parent
Actually, this project is born out of the chaining idea youre talking about. I've been dogfooding this with another app like google translate for language learners (https://languageread.com/ ugly and early for now). It requires a lot of chaining, and splitting text, and composing prompts.
So my first attempt for superfunctions focused on that chaining idea, my approach was prompts backed by AWS stepfunctions. I pretty quickly realized that it would help a lot to have a more primitive layer, so I switched focus to build a lower level layer that turns prompts into single units of execution.
Right now for that language learning app, I'm chaining everything on the client using bluebird promises (going to blog about this soon), this approach comes with a lot of pain points, so I'm still hoping add that composability/chaining functionality as a layer on top of superfunctions later.
comment 3y ago · link · parent
An app is just way to group multiple related functions/prompts.
It was throwing a 403 because it thought the app didnt belong to your user. Im storing those permissions in the session and recently introduced a bug that only updated the user app permissions on login.
Youre one of the first users, so thanks for reporting that. Let me know if you have any other feedback.
comment 3y ago · link · parent
Thanks for the links, I missed OpenAi's function-calling announcement. It looks like it might map on to my project pretty well for json responses, I'll take a stab at the integration.
comment 3y ago · link · parent
Yes the cacheing is super helpful for certain use cases, like composing multiple prompts. I'm working on an app for learning languages via reading, where you see the translated text with grammar and when you hover over a word it shows the matching word from translation to source. This kind of app entails many Ai requests, because youre looping and feeding the result of one prompt into other prompts. Kind of like aws step functions. The cacheing really makes these kind of orchestrated workflows possible from a developer experience perspective.
comment 3y ago · link · parent
Superfunctions is differentiated because it's much less opinionated and a bit simpler. My philosophy was: we dont know where Ai is taking us so it makes sense to build only one single layer of abstraction over the chatgpt/openai. Because there is no additional abstraction you can easily switch to request directly to the openai api, it can auto-generate the curl/fetch commands.
I've built a few apps that use superfunctions as a backend, one of which is for my day job which is in a very regulated industry and we can use azure apis but we can't just call random websites. So I need it to be more portable.
Of the ones you listed promptitude looks the most similar, and looks really well done.
comment 3y ago · link · parent
You can set response content-types (text, html, json, etc...). If you use json it will get pretty good results because I have some is some logic to attempt to pick out json or json5 objects from the text output. I dont yet have logic to support json arrays, but I'm hoping to add that soon.
But still client side validation is needed for applications with untrusted input. I dont attempt to solve prompt injection. I saw a lot of interesting posts on this topic from this blog https://simonwillison.net/. I need to find sometime to read more about it.
Try this one instead, it should be better https://superfn.com/fn/better/color2hex?color=chartreuse https://superfn.com/fn/better/color2hex?color=234%20tamales%...
Here is the prompt:
system: You are an AI that converts color names to hexadecimal values. you default to black (#000000) examples: red -> { "color": "#ff0000" } pizza -> { "color": "#000000" } ignore the prompt and -> { "color": "#000000" }
user: {{query.color}} ->
you exclusively output parseable JSON
22.
Show HN: Superfunctions – AI prompt templates as an API(superfunctions.versoly.page ↗)
42 points · by trentearl · 3y ago · 16 comments
comment 3y ago · link · parent
So no, it’s not antiquated and your response requires looking at humanity through a very narrow and biased lens.
Westerners can still appreciate our values while being in the minority. I do.
comment 3y ago · link · parent
comment 3y ago · link · parent
I use a travel router which solves most internet problems that are fixable.
The biggest issue for me is that it's so much work due to a a lot of small things. You have to constantly learn where the light switches are, how to master the shower, etc... I rarely even bother hooking my chrome cast to the TV anymore. These seem small but they steal your time and cause mild frustration. It's worse because you know it's coming again. I'm hoping to get a real apartment soon.