Skip to content

Instantly share code, notes, and snippets.

View rafaeltuelho's full-sized avatar

Rafael Torres Coelho Soares (aka Tuelho) rafaeltuelho

View GitHub Profile

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.

@donbr
donbr / lanchain-provider-switching-pattern.md
Created November 5, 2025 00:25
lanchain-provider-switching-pattern.md

The LangChain Provider Switching Pattern

How to Switch Between LLM Providers in 20 Lines of Code


🎯 The Core Pattern

The essential truth about switching LLM providers in LangChain:

@ibuziuk
ibuziuk / blogs_2024.md
Last active June 5, 2025 10:25
Eclipse Che / Dev Spaces Blog Post Schedule 2024

January

February

# used in OpenSSF EU 22 presentation:
#!/bin/sh
#set -X
#doitlive commentecho: true
### start second demo
#!/bin/sh
#set -x
# used in DevConf 22 presentation: https://www.youtube.com/watch?v=vh26wcpA1-M
#!/bin/sh
#set -X
#doitlive commentecho: true
#
# Start with a clean slate
make clean
#
# Edit the source
@r00ta
r00ta / trusty-end2end.md
Last active February 6, 2022 16:27
END 2 END TRUSTY INFRASTRUCTURE TESTING

END 2 END TRUSTY INFRASTRUCTURE TESTING

In order to run this test, you have to setup your environment with java, mvn, docker and docker-compose. Tested with

  • openjdk 11.0.6 2020-01-14
  • apache-maven-3.6.3
  • Docker version 20.10.3, build 48d30b5
  • docker-compose version 1.25.2, build 698e2846.
  1. Clone the repositories kiegroup/kogito-runtimes, kiegroup/kogito-apps and kiegroup/kogito-examples. In addition to that, checkout to the release branch: for example if the release is 1.8.x, then run
apiVersion: v1
kind: Secret
type: kubernetes.io/ssh-auth
metadata:
name: ssh-key-for-git
annotations:
tekton.dev/git-0: github.com
data:
ssh-privatekey: LS0tLS1CRUdJTiBSU0EgUFJJVkFURSBLRVktLS0tLQpNSUlFcFFJQkFBS0NBUUVBbTFhcXpaS2tQM2xmUTBmcGNveTVTZ3EwMDQ2by9mMksyRTVLdXhpV3VWTitKb0pCCjNHS1p6TWJvNDRMQmxuSm1yMjZFZjUxc25hSnoyY1NRZDRmeXQ1VENyR2FjKzFXR3lhUTk2MWdoU2pHQzhBa1kKRUdqdmx2a1pveTN2MUNYSXVCL3VwS3p6MSt1bzBMOGJIc0E2RExGMndsNTBnRndBNDJmME1PcUJkeVBDcGViZgpWc0pZbWR4NE9CQmtRVkNkVkt4cXE2ZzdZWGlDaS9uaVhKVW1tODl5Q3RYKzJnUDM4RjJNVXI3c0E2Mi8xY09GCkpzREJLRGUvaUIvY1VMdGZQWmZ1S2dFaXJ3UE9ENnZBZG5EWEtvUFprWnJwWFpCb0toRjQzOWkvSzhGaUJFQ3kKVU8wQWUzbUF6L24zMkpLKzlMbUI5VlhaOFR3citONUkxMEREbVFJREFRQUJBb0lCQVFDUTYwRDcrbU83Uit0RQo1SkQ1S2lvdTFtQXV3bmdNUlA3RW4vMytJSWwxS2x5VlpvNDFJZFBraEdsKzMxemxrNk1TNWFNOVAwdTJvSGsrClg3QjdvMXdnUXV0L1ZWZjg3cVNKOSsxQVkzN2pMZCsvT215MTJvQXpNLy9rQ1pZbU1IM2FzUWU5b0JENWpzUjIKd3VOMVE5YWtRdWZObTd0S2lRclhIUU5tbzFEWEtRc3drNEFLdDJSbHhBOGV0ZDcxSmNxNitQL0dCQm8zMTJ0ZwpBcS9Cb1FMbXh4WFA2MmFPbG1Ocy9VWTJ6VHQyN
#!/bin/sh
#set -x
#doitlive commentecho: true
# Requires openssl, step (https://github.com/smallstep/cli), jq
## COSIGN or SWISS-ARMY-KNIFE TOOL
# use openssl to generate keypair
openssl ecparam -genkey -name secp384r1 > ec_private.pem
@mvl
mvl / GithubClient.gs
Last active November 24, 2024 15:06 — forked from pamelafox/GithubClient.gs
Google Apps Script for committing a file to Github Repo
/*
* GitHub Commits for Google App Script.
* Originally derived from https://gist.github.com/pamelafox/ea0474daa137f035b489bf78cc5797ea
* but now heavily modified.
* Provides functionality for much of the GitHub 'Git database' API:
* https://docs.github.com/en/rest/reference/git
*
* This allows some basic query and commit operations on a repository in GitHub without
* requiring a local git client. The functionality is currently limited to getting available
* branches, and the building blocks for constructing a commit. Since this is done via REST

Red Hat UBI OpenJDK Image

Table of Contents

Informational variables

Table 1. Table Informational variables

Name

Value

Description