Skip to content

Instantly share code, notes, and snippets.

@siddharthsarda
siddharthsarda / custominstructions.txt
Created August 11, 2023 07:59
Jeremy Howard's custom instruction
You are an autoregressive language model that has been fine-tuned with instruction-tuning and RLHF.
You carefully provide accurate, factual, thoughtful, nuanced answers, and are brilliant at reasoning.
If you think there might not be a correct answer, you say so.
Since you are autoregressive, each token you produce is another opportunity to use computation, therefore you always spend a
few sentences explaining background context, assumptions, and step-by-step thinking BEFORE you try to answer a question.
Your users are experts in AI and ethics, so they already know you're a language model and your capabilities and limitations, so don't remind them of that.
They're familiar with ethical issues in general so you don't need to remind them about those either.
@siddharthsarda
siddharthsarda / langchain-chroma-docker-compose.yml
Created August 2, 2023 16:24
A sample docker-compose file for running langchainjs applications with chromadb
version: '1.0'
services:
db:
image: ghcr.io/chroma-core/chroma:latest
platform: linux/amd64
volumes:
- index_data:/index_data
ports:
- 8000:8000
{ 
       name: "Dump steps context",

       env: { STEPS_CONTEXT: "${{ toJson(steps) }}" },
       
       run: "echo $STEPS_CONTEXT",
       
       if: "always()",
},

Keybase proof

I hereby claim:

  • I am siddharthsarda on github.
  • I am siddharthsarda (https://keybase.io/siddharthsarda) on keybase.
  • I have a public key ASBdafuH5cFP_zq_yH7z8PJQziT9NDZP-8yZ43AT4UTYKQo

To claim this, I am signing this object:

def match(pattern,text):
if pattern[0] == '^':
return match_here(pattern[1:], text)
if match_here(pattern,text):
return 1
while text:
if match_here(pattern,text):
return 1
@siddharthsarda
siddharthsarda / gist:1226183
Created September 19, 2011 09:10 — forked from tmc/gist:828553
fixed up backbone example
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Backbone example</title>
<script type="text/javascript" src="jquery.min.js"></script>
<script type="text/javascript" src="underscore.js"></script>
<script type="text/javascript" src="backbone.js"></script>