Skip to content

Instantly share code, notes, and snippets.

View kevinkirkup's full-sized avatar

Kevin S Kirkup kevinkirkup

  • Digital Realty Trust
  • Raleigh, NC
View GitHub Profile
@Donavan
Donavan / self-directed.md
Last active November 25, 2023 00:40
Self-Directed Q&A Over Documents

Self-Directed Q&A Over Documents

In the expanding universe of machine learning, the task of accurately answering questions based on a corpus of proprietary documents presents an exciting yet challenging frontier. At the intersection of natural language processing and information retrieval, the quest for efficient and accurate "Q&A over documents" systems is a pursuit that drives many developers and data scientists.

While large language models (LLMs) such as GPT have greatly advanced the field, there are still hurdles to overcome. One such challenge is identifying and retrieving the most relevant documents based on user queries. User questions can be tricky; they're often not well-formed and can cause our neatly designed systems to stumble.

In this blog post, we'll first delve into the intricacies of this challenge and then explain a simple yet innovative solution that leverages the new function calling capabilities baked into the chat completion API for GPT. This approach aims to streamline the retrieval

@pojntfx
pojntfx / README.md
Last active June 29, 2022 20:04
Cattle Alpine Linux in QEMU (based on custom image)
@pojntfx
pojntfx / README.md
Last active May 1, 2021 12:19
Pet Alpine Linux in QEMU
@lisawolderiksen
lisawolderiksen / git-commit-template.md
Last active July 15, 2024 19:38
Use a Git commit message template to write better commit messages

Using Git Commit Message Templates to Write Better Commit Messages

The always enthusiastic and knowledgeable mr. @jasaltvik shared with our team an article on writing (good) Git commit messages: How to Write a Git Commit Message. This excellent article explains why good Git commit messages are important, and explains what constitutes a good commit message. I wholeheartedly agree with what @cbeams writes in his article. (Have you read it yet? If not, go read it now. I'll wait.) It's sensible stuff. So I decided to start following the

# GIT heart FZF
# -------------
is_in_git_repo() {
git rev-parse HEAD > /dev/null 2>&1
}
fzf-down() {
fzf --height 50% --min-height 20 --border --bind ctrl-/:toggle-preview "$@"
}
@yoanisgil
yoanisgil / docker-compose.yml
Last active October 1, 2018 12:10
Elastic Search - Docker Compose
master:
image: elasticsearch:2
ports:
- "9200:9200"
restart: always
container_name: es_master
es-node:
image: elasticsearch:2
command: elasticsearch --discovery.zen.ping.unicast.hosts=es_master
@bitjockey42
bitjockey42 / 00_OSX_Docker_Machine_Setup.md
Last active November 9, 2020 13:49 — forked from andystanton/Start up local Docker Machine on OSX automatically.md
Use native virtualization on OS X docker with xhyve

What this?

So one of the painful points of using docker on OS X is that you need to run a virtualbox VM, which often suffers from performance issues. With xhyve, a OS X virtualization system, and docker-machine-xhyve you can now have docker use the native OS X hypervisor to run containers.

No more dealing with virtualbox shenanigans!

In this script, I've also set up a way to autoconfigure terminal sessions to load docker's environment vars (dependent on docker-machine) so you do not have to run eval $(docker-machine env whatever) every time you open a new terminal window.

Requirements

@jrrickard
jrrickard / README.md
Last active June 17, 2022 00:49
Creating a Docker Jenkins Slave Running on a VMware Photon VM

Let's setup a Docker based Jenkins slave using VMware Photon (currently using Tech Preview #2) as the docker host.

This assumes you have Jenkins installed.

Install Jenkins Plugin(s)

First, let's install the Jenkins Docker Plugin, plus all of it's dependencies (if you don't already have them):

@likethesky
likethesky / elixirphoenix.bash
Last active June 7, 2024 17:26
Installing Elixir & the Phoenix framework with Homebrew on OS X
$ brew update && brew doctor # Repeat, until you've done *all* the Dr. has ordered!
$ brew install postgresql # You'll need postgres to do this... you may also need to 'initdb' as well. Google it.
$ brew install elixir
$ mix local.hex # Answer y to any Qs
$ createuser -d postgres # create the default 'postgres' user that Chris McCord seems to like -- I don't create mine w/a pw...
# Use the latest Phoenix from here: http://www.phoenixframework.org/docs/installation -- currently this is 1.0.3
# ** Answer y to any Qs **
$ mix archive.install https://github.com/phoenixframework/phoenix/releases/download/v1.0.3/phoenix_new-1.0.3.ez