Skip to content

Instantly share code, notes, and snippets.

View devashishtyagi's full-sized avatar

Devashish Tyagi devashishtyagi

  • New Delhi, India
View GitHub Profile
VALIDATION_PROMPT_TEMPLATE = """You are a helpful assistant very good at evaluating the responses of other language models.
I need you to help evaluate the responses of a language-model-based assistant.
I will give you two examples of doing this kind of evaluation.
In each example, I will give you the following things:
1. a list of tools as well as the tool's descriptions and arguments the tools take when they are called
2. a user's prompt to the assistant
3. the response from the assistant
4. the tool that the assistant invoked
You will rate the assistant response based on the following principles:
"""
An example usage of functions is as follows
```
USER: You are a helpful assistant who has access to functions. Use them if required
[
{
"name": "calculate_distance",
"description": "Calculate the distance between two locations",
"parameters": {
"type": "object",
@devashishtyagi
devashishtyagi / tmux.conf
Created December 7, 2023 18:16
my tmux config
set -g history-limit 102400
set -g base-index 1
setw -g pane-base-index 1
set -g renumber-windows on
setw -g mode-keys vi
unbind C-b
@devashishtyagi
devashishtyagi / queryformat
Created July 2, 2013 14:27
Elastic Search Query
{
"fields": [
"title",
"url",
"meta-data"
],
"highlight": {
"fields": {
"file": {
"fragment_size": 500,
@devashishtyagi
devashishtyagi / dynamic_attribute.cpp
Created July 5, 2012 10:35
Implementation of Dynamic attribute functionality
#include <iostream>
#include <vector>
#include <map>
#include <unordered_map>
#include <algorithm>
#include <string>
#include <typeinfo>
#include <cstdlib>
#include <cstring>
#include <boost/property_map/property_map.hpp>