Skip to content

Instantly share code, notes, and snippets.

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.

Verifying that "johnmontgomery.id" is my Blockstack ID. https://onename.com/johnmontgomery
/**
* Add the field to the checkout
**/
add_action('woocommerce_after_order_notes', 'my_custom_checkout_field');
function my_custom_checkout_field( $checkout ) {
echo '<div id="my_custom_checkout_field"><h3>'.__('My Field').'</h3>';
/**
add_filter( 'woocommerce_billing_fields', 'custom_woocommerce_billing_fields' );
function custom_woocommerce_billing_fields( $fields ) {
// Over-ride a single label
$fields['billing_first_name']['label'] = 'Your label';
// Over-ride a single required value
$fields['billing_first_name']['required'] = false;
@yourdesigncoza
yourdesigncoza / mediaelements
Created August 18, 2013 11:19
Style WordPress media elements : video controls
/*----------------------------------------LAUDES----------------------------------------*/
/* Mediaelements Controls */
/*--------------------------------------------------------------------------------------*/
.hentry .mejs-mediaelement,
.hentry .mejs-container .mejs-controls {
background: #191919;
}
.hentry .mejs-controls .mejs-time-rail .mejs-time-loaded,
@yourdesigncoza
yourdesigncoza / the-slug.php
Created June 25, 2013 15:29
function to get post/page slug When coding or styling a theme, it can be very useful to be able to get the slug of the current post or page, for example to create a css class. Here’s an easy function to get the slug from the current post or page. source : http://www.wprecipes.com/wordpress-function-to-get-postpage-slug
<?php
function the_slug() {
$post_data = get_post($post->ID, ARRAY_A);
$slug = $post_data['post_name'];
return $slug;
}
?>
Once done, simply call the function within the loop to get the post or page slug.
@yourdesigncoza
yourdesigncoza / ratings
Created June 9, 2013 14:42
Remove ratings
remove_action( 'woocommerce_after_shop_loop_item_title', 'woocommerce_template_loop_rating', 5 );
@yourdesigncoza
yourdesigncoza / out-of-stock
Created June 9, 2013 14:42
Out of stock custom text after title in archive pages
add_action( 'woocommerce_after_shop_loop_item_title', 'woocommerce_template_loop_out_stock', 10);
function woocommerce_template_loop_out_stock() {
global $product;
if ( ! $product->managing_stock() && ! $product->is_in_stock() )
echo '<p class="stock out-of-stock">Out of stock</p>';
}
@yourdesigncoza
yourdesigncoza / functions.php
Created June 9, 2013 11:19 — forked from jameskoster/functions.php
set image dimensions upon theme activation
<?php
/**
* Hook in on activation
*/
global $pagenow;
if ( is_admin() && isset( $_GET['activated'] ) && $pagenow == 'themes.php' ) add_action( 'init', 'yourtheme_woocommerce_image_dimensions', 1 );
/**
* Define image sizes
*/
@yourdesigncoza
yourdesigncoza / woo-breadcrumbs
Created June 5, 2013 21:28
How to modify breadcrumb appearance in WooCommerce
function laudes_woocommerce_breadcrumbs() {
return array(
'delimiter' => ' &#47; ',
'wrap_before' => '<nav class="woocommerce-breadcrumb" itemprop="breadcrumb">',
'wrap_after' => '</nav>',
'before' => '',
'after' => '',
'home' => _x( 'Home', 'breadcrumb', 'woocommerce' ),
);
}