Skip to content

Instantly share code, notes, and snippets.

View notsonoobie's full-sized avatar
🎯
Focusing

Rahul Gupta notsonoobie

🎯
Focusing
View GitHub Profile
@notsonoobie
notsonoobie / llm-wiki.md
Created May 1, 2026 17: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.

<wsdl:definitions xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
xmlns:tns="http://www.webserviceX.NET" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:s="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/"
xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
targetNamespace="http://www.webserviceX.NET">
<wsdl:types>
<s:schema elementFormDefault="qualified" targetNamespace="http://www.webserviceX.NET">
<s:element name="GetWeather">
<s:complexType>
// React JSX
<div className='posbtn'>
Password
<a className='text-absolute' href='/'>Reset</a> --------> The text is given position absolute
</div>
<Form.Control className='input-relative' type='text' /> --------> The input is given position relative
/* css
.input-relative{
@notsonoobie
notsonoobie / mongodb-connector.js
Created October 16, 2020 19:58
MongoDB Connection starter template using mongoose.
const mongoose = require('mongoose')
const connectDB = async () => {
try{
await mongoose.connect(process.env.MONGO_URI,{
useNewUrlParser: true,
useUnifiedTopology: true,
useCreateIndex: true,
useFindAndModify: false
})
@notsonoobie
notsonoobie / server.js
Created October 16, 2020 17:36
Starter template for NodeJS - ExpressJS setup.
const path = require('path')
const express = require('express')
const mongoose = require('mongoose')
const helmet = require('helmet') // Express App Security - Headers
const cors = require('cors')
const morgan = require('morgan') // Logging Request
const yup = require('yup') // Schema Validations
const app = express()
const PORT = process.env.PORT || 5000