Skip to content

Instantly share code, notes, and snippets.

View kanafghan's full-sized avatar

Ismail Faizi kanafghan

  • Appudvikleren ApS
  • Fredericia, Denmark
  • 08:25 (UTC +01:00)
View GitHub Profile
@kanafghan
kanafghan / llm-wiki.md
Created November 25, 2026 11:52 — forked from karpathy/llm-wiki.md
llm-wiki

LLM Wiki

A pattern for building personal knowledge bases using LLMs.

This is an idea file, it is designed to be copy pasted to your own LLM Agent (e.g. OpenAI Codex, Claude Code, OpenCode / Pi, or etc.). Its goal is to communicate the high level idea, but your agent will build out the specifics in collaboration with you.

The core idea

Most people's experience with LLMs and documents looks like RAG: you upload a collection of files, the LLM retrieves relevant chunks at query time, and generates an answer. This works, but the LLM is rediscovering knowledge from scratch on every question. There's no accumulation. Ask a subtle question that requires synthesizing five documents, and the LLM has to find and piece together the relevant fragments every time. Nothing is built up. NotebookLM, ChatGPT file uploads, and most RAG systems work this way.

@kanafghan
kanafghan / Billy-API.md
Last active June 24, 2026 10:59
Billy API Integration - Bill creation

1) Upload attachment file

const axios = require('axios');

let data = '<file contents here>';

let config = {
  method: 'post',
  maxBodyLength: Infinity,
@kanafghan
kanafghan / .gitignore
Created October 5, 2023 11:32
Global .gitignore
.buildpath
.project
.settings
TestController.php
phpunitprepare.php
console.php
node_modules
npm-debug.log
.tern-project
vendor/*
@kanafghan
kanafghan / CPU.app-renderer.1692373702602.cpuprofile
Last active August 18, 2023 17:10
[NEXT-1143] Dev mode slow compilation
This file has been truncated, but you can view the full file.
@kanafghan
kanafghan / keybase.md
Last active September 20, 2019 07:18
Keybase.io Verification

Keybase proof

I hereby claim:

  • I am kanafghan on github.
  • I am kanafghan (https://keybase.io/kanafghan) on keybase.
  • I have a public key ASDCwQgfqYNl7eQgTUmnssDs543_oJpKgz4HbY_Jbjq8zgo

To claim this, I am signing this object: