Skip to content

Instantly share code, notes, and snippets.

View kriss1897's full-sized avatar
💯

Shashank Singh Solanki kriss1897

💯
View GitHub Profile
@kriss1897
kriss1897 / llm-wiki.md
Created April 4, 2026 23:05 — 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.

@kriss1897
kriss1897 / ipc.c
Created September 27, 2021 10:46
Inter Process Communication
#include<stdio.h>
#include<unistd.h>
#include<stdlib.h>
#include<sys/types.h>
#include<math.h>
#define BUFSIZE 80
#define POWER 4
#define COUNT 3
@kriss1897
kriss1897 / Media.js
Last active December 5, 2020 15:35
Website editor and viewer
import React from 'react';
import PropTypes from 'prop-types';
import { Button } from '@material-ui/core';
const styles = {
media: {
display: 'block',
margin: '0 auto 0 auto',
maxWidth: '100%',
@kriss1897
kriss1897 / multiple_ssh_setting.md
Created February 28, 2019 06:45 — forked from jexchan/multiple_ssh_setting.md
Multiple SSH keys for different github accounts

Multiple SSH Keys settings for different github account

create different public key

create different ssh key according the article Mac Set-Up Git

$ ssh-keygen -t rsa -C "your_email@youremail.com"