Skip to content

Instantly share code, notes, and snippets.

View andrewBatutin's full-sized avatar

Andriy Batutin andrewBatutin

View GitHub Profile
import math
from openai import OpenAI
client = OpenAI()
response = client.chat.completions.create(
model="gpt-4o-mini",
messages=[{"role": "system", "content": "Answer in 1 word"},{"role": "user", "content": "The capital of Spain, East Prussia is"}],
max_tokens=1,
logprobs=True,
{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# Unit Economics: Edge vs Cloud AI Video Editor\n",
"\n",
"**The Thesis:** Local AI inference fundamentally changes the economics of multimodal applications.\n",
"\n",
@andrewBatutin
andrewBatutin / Basic_Retriever.csv
Created November 6, 2023 16:10
Basic Retriever
We can make this file beautiful and searchable if this error is corrected: It looks like row 7 should actually have 8 columns, instead of 4 in line 6.
index,doc_id,enrichment_type,question,question_type,actual_answer,expected_answer,is_correct
0,10-K.html,None,What is the value of cash and cash equivalents in 2022?,Specific,The value of cash and cash equivalents in 2022 is not provided in the given context.,"16,253 $ millions",NO
1,10-K.html,None,What is the value of cash and cash equivalents in 2021?,Specific,"The value of cash and cash equivalents in 2021 is $8,028 million.","17,576 $ millions",NO
2,10-K.html,None,What is the net value of accounts receivable in 2022?,Specific,The net value of accounts receivable in 2022 is not provided in the given context.,"2,952 $ millions",NO
3,10-K.html,None,What is the net value of accounts receivable in 2021?,Specific,The net value of accounts receivable in 2021 is not provided in the given context.,"1,913 $ millions",NO
4,10-K.html,None,What is the total stockholders' equity? in 2022?,Specific,The total stockholders' equity in 2022 is not provided in the given context.,"44,704 $ millions",NO
5,10-K.html,None,What i