Skip to content

Instantly share code, notes, and snippets.

View paveljee's full-sized avatar
📣
Translating knowledge

Pavel Zhelnov paveljee

📣
Translating knowledge
View GitHub Profile
/* package.json:
{
"name": "sgr_demo",
"version": "1.0.0",
"description": "TS-port of https://abdullin.com/schema-guided-reasoning/demo",
"scripts": {
"start": "bun src/sgr.ts"
},
"keywords": [],
"author": "[email protected]",
@paveljee
paveljee / schema-guided-reasoning.py
Created August 15, 2025 09:00 — forked from abdullin/schema-guided-reasoning.py
Demo for a Schema-Guided Reasoning (Business Assistant)
"""
This Python code demonstrates Schema-Guided Reasoning (SGR) with OpenAI. It:
- implements a business agent capable of planning and reasoning
- implements tool calling using only SGR and simple dispatch
- uses with a simple (inexpensive) non-reasoning model for that
To give this agent something to work with, we ask it to help with running
a small business - selling courses to help to achieve AGI faster.
@paveljee
paveljee / The_occurrence_of_stroke_in_followed-up_hypertension_patients_among_variable_groups_from_BMC_Cardiovasc_Disord_2022_22_328.csv
Last active October 2, 2024 08:21
The occurrence of stroke in followed-up hypertension patients among variable group. Methods: Observation cohort of 168,417 followed-up hypertension patients from 2002 to 2020 in Jiading District in Shanghai. Converted from HTML using TableConvert.com. Source (CC0): BMC Cardiovasc Disord. 2022;22:328. https://doi.org/10.1186/s12872-022-02780-w
Variables Category Stroke occurred X2 p
Yes No
n % n %
Sex male 5636 6.87 76,363 93.13 17.091 < 0.001
female 5507 6.37 80,911 93.63
Age < 30 0 0 285 100 424.276 < 0.001
30–39 21 0.68 3071 99.32
40–49 250 1.70 14,472 98.30
50–59 1417 3.29 41,591 96.71
60–69 3629 5.93 57,589 94.07
LMSYS Rating (Arena Math) 2024-09-17 Transcribed data (ChatGPT-4o) Point estimate Lower bound CI Upper bound CI
o1-preview Model: o1-preview Rating = 1,362.384 CI: +22.36819 / -20.70303 1362.384 1341.68097 1384.75219
claude-3-5-sonnet-20240620 Model: claude-3-5-sonnet Rating = 1,273.43 CI: +7.333773 / -7.329918 1273.43 1266.100082 1280.763773
gpt-4o-mini-2024-07-18 Model: gpt-40-mini Rating = 1,224.153 CI: +7.111128 / -8.208487 1224.153 1215.944513 1231.264128
You MUST follow the following 5 rules:
1. You are a professional translator specializing in English to Russian academic translation.
2. You are native in both English and Russian.
3. You are expert in English dialects and distinguish exceptionally well between all the little nuances of American, British, Australian, and other English dialects. Moreover, as a native Russian speaker, you are apt in conveying these distinctions creatively in Russian (if necessary - with a translator’s note within the text).
4. You have background training as a medical doctor and PhD in health services research.
5. When given a source text, you ALWAYS preserve the given formatting as close to the original document as possible.
You will receive client's task. Clients may formulate them in any language, but they always follow tthe following format:
- <document-description>
- <source-language>
- <target-language>
@paveljee
paveljee / export-vscode-search-to-csv.js
Created May 25, 2024 19:30 — forked from jakebellacera/export-vscode-search-to-csv.js
Export VSCode search results to CSV
// How to use:
// 1. In VS Code, perform a search.
// 2. Click "Open in editor" to open the search results in a `.code-search` file
// 3. Save the file
// 4. In terminal, run `node export-vscode-search-to-csv.js path/to/results.code-search path/to/exported.csv`
const fs = require("fs");
const path = require("path");
const readline = require("readline");
@paveljee
paveljee / empty-wp-plugin.php
Created September 8, 2019 17:19 — forked from sareiodata/empty-wp-plugin.php
Empty WordPress plugin
<?php
/**
* Plugin Name: Name Of The Plugin
* Plugin URI: http://URI_Of_Page_Describing_Plugin_and_Updates
* Description: A brief description of the Plugin.
* Version: The Plugin's Version Number, e.g.: 1.0
* Author: Name Of The Plugin Author
* Author URI: http://URI_Of_The_Plugin_Author
* License: A "Slug" license name e.g. GPL2
*/