This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
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", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"fields": [ | |
"title", | |
"url", | |
"meta-data" | |
], | |
"highlight": { | |
"fields": { | |
"file": { | |
"fragment_size": 500, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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> |