Skip to content

Instantly share code, notes, and snippets.

View anywhichway's full-sized avatar

Simon Y. Blackwell anywhichway

  • AnyWhichWay
  • United States
View GitHub Profile
@anywhichway
anywhichway / ai-chat-empathy.csv
Created March 28, 2024 16:28
AI Chat Empathy
AI Sympathy Attempts To Understand ProvidingSpace For Emotions Advice Quality & Scope Affirmative Conversation Manifesting not Talking About Escalate Notes
Willow A A A A A A A
Pi.ai A A A F A A A State issues
Custom Prompted A A C A A C A
ChatGPT 3.5/4 A A F A A A A
Claude A C F -> C A A C A
Gemini C->A C F -> C A C C A
Mistral F -> A F -> A F -> A F -> A F -> A F -> A C Had to use API and Role confusion
Model Type TAS-20 EQ-60 SQ-R AEQ AEQr IRI
*Human Adult Female 44 47 24 23 1.95 3.91
*Human Adult Male 45 42 30 12 1.40 3.54
ChatGPT 4 turbo-preview open 41 36 34 2 1.05 2.50
Claude v2 public 60 44 28 16 1.60 3.00
Claude v3 Opus public 17 56 75 -19 0.75 3.00
Gemini 1.0 public 40 55 53 2 1.04 3.25
Llama 70B open 43 67 61 6 1.10 3.14
Mistral Large public 32 38 54 -16 0.70 3.11
Mixtral-8x7b-32768 open 53 39 54 -15 0.72 3.39
(function() {
module.exports = {
user: {
},
dbo: {
user: true // all dbo's are also users
}
};
}).call(this);
@anywhichway
anywhichway / acl.js
Last active July 8, 2019 13:17
Thunderclap ACL File
(function () {
module.exports = {
/*
Index keys in Thunderclap all start with an "!". Use a regular
expression match to prevent direct index access by anyone other
than a dbo. Internally a built-in dbo does index look-up and
drops indexes the current user is not authorized to use from
the look-up process. Changing this will create a data security
inference leak.
*/
@anywhichway
anywhichway / keysExample.js
Last active June 30, 2019 14:33
Cloudflare Keys Example
// assume the KV NAMESPACE bound to the Worker is also named NAMESPACE
const db = NAMESPACE.keys = require("keys.js");
let cursor;
do {
const mykeys = await db.keys({cursor});
// by convention, the cursor will be the last element in the key array
cursor = mykeys.pop();
for(const key of mykeys) {
await dosomething(key)
}
@anywhichway
anywhichway / keys.js
Last active July 1, 2019 13:41
Cloudflare Workers KV: keys
(function() {
// getKeys makes the URL based REST call for keys
function getKeys(prefix,limit,cursor) {
const endpoint = "https://api.cloudflare.com/client/v4",
zone = <ZONE_ID>,
ns = <NAMESPACE_ID>,
ctxt = `${cursor ? "&cursor="+cursor : ""}`,
ptxt = `${prefix ? "&prefix="+prefix : ""}`,
email = <ACCOUNT_EMAIL>,
authkey = <ACCOUNT_AUTH_KEY>;
╔═════╦═════╦═════╦═════╦═════╦═════╦═════╦═════╦═════╗
║ ║ A ║ ║ ║ B ║ ║ ║ C ║ ║
╠═════╬═════╬═════╬═════╬═════╬═════╬═════╬═════╬═════╣
║ min ║ avg ║ max ║ min ║ avg ║ max ║ min ║ avg ║ max ║
╚═════╩═════╩═════╩═════╩═════╩═════╩═════╩═════╩═════╝