Skip to content

Instantly share code, notes, and snippets.

schema passage {
document passage {
field doc_id type long {} #duplicated for every passage extracted from doc
field title type string {} #duplicated for every passage from doc
field passage type string {}
field embedding type tensor<float>(x[768]) {}
}
rank-profile hybrid {
inputs {
query(q): tensor<float>(x[768])
@evilcel3ri
evilcel3ri / init.vim
Last active December 1, 2021 15:15
nvim configuration
let mapleader=","
call plug#begin()
set rtp+=~/.fzf
" colorschemes
Plug 'ayu-theme/ayu-vim'
" syntax helpers
Plug 'jparise/vim-graphql'
@katydecorah
katydecorah / email-drafter.js
Last active July 19, 2023 22:06
Draft emails in Gmail from a Google spreadsheet and a Google doc template: https://katydecorah.com/code/google-sheets-to-gmail-template/
// What is the Google Document ID for your email template?
var googleDocId = "abcd0000abcd0000abcd0000abcd0000";
// Which column has the email address? Enter the column row header exactly.
var emailField = 'Email';
// What is the subject line?
var emailSubject = 'You\'re bringing {Type}!';
// Which column is the indicator for email drafted? Enter the column row header exactly.
var emailStatus = 'Date drafted';
/* ----------------------------------- */