- Second price auctions (2PA) are a type of auction where the highest bidder pays the second highest bid
- In contrast to first price auctions (FPA), where the highest bidder pays her own bid
- Why 2PA work better than FPA
| #!/usr/bin/env python | |
| import argparse | |
| import sys | |
| import sqlparse | |
| from pygments import highlight | |
| from pygments.lexers import get_lexer_by_name | |
| from pygments.formatters import TerminalTrueColorFormatter | |
| def prettyPrint(raw_sql): |
| query IntrospectionQuery { | |
| __schema { | |
| queryType { name } | |
| mutationType { name } | |
| types { | |
| ...FullType | |
| } | |
| directives { | |
| name | |
| description |
| #!/bin/sh | |
| # message can come from script args or environment | |
| message=${message:-"${*}"} | |
| model=${model:-"@cf/mistral/mistral-7b-instruct-v0.1"} | |
| system=${system:-"You are a consice AI assistant. You help the user the best you can. If you don't know something, you admin it and ask clarifying questions. Use markdown as needed."} | |
| post_data=$(cat <<JSON | |
| {"messages":[{"role":"system","content":"${system}"},{"role":"user","content":"${message}"}],"max_tokens":10240,"stream":true} | |
| JSON | |
| ) |