Skip to content

Instantly share code, notes, and snippets.

View lqdev's full-sized avatar

Luis Quintanilla lqdev

View GitHub Profile
@lqdev
lqdev / spec.md
Created April 12, 2026 17:56
LMP MEDI Advanced RAG Spec

LMP + MEDI Advanced RAG — Integration Spec

Goal: Build an advanced RAG sample showing how LMP (Language Model Programs) and MEDI (Microsoft.Extensions.DataIngestion) coexist and natively layer. MEDI handles pipeline infrastructure (ingestion, vector search, RRF, tree traversal). LMP handles the intelligence layer (optimizable typed predictors for every LLM call). LMP optimizers tune the whole thing end-to-end.

Domain: Survival/equipment documentation (matching the advanced-rag sample).

@lqdev
lqdev / tutorial.org
Created March 18, 2026 02:04
Install GitHub Copilot CLI on NixOS

NixOS Copilot CLI Declarative Install Guide

Overview

This document describes a **declarative installation of the GitHub Copilot CLI** on NixOS (25.11).

This method creates a small local Nix package that:

  • installs the Copilot CLI via npm
  • works with NixOS’s dynamic linking model using nix-ld
@lqdev
lqdev / model-packager-design.org
Created February 27, 2026 14:45
Models as packages

PRD + Tech Spec — .NET NuGet “Model Fetch + Cache” System (HuggingFace default, configurable source, optional MSBuild prefetch)

1. Problem Statement

We ship a .NET NuGet package that uses an AI model. The model can be large (100MB–multiple GB). Putting the model inside the NuGet package is a bad fit (slow restore, duplicated storage per version, plan quotas, painful CI).

We need a robust, boring, predictable way to:

@lqdev
lqdev / OpenAI.cs
Created January 6, 2026 05:14
OpenAI File Based App
#:package [email protected]
using Microsoft.Extensions.AI;
using OpenAI;
var key = Environment.GetEnvironmentVariable("OPENAI_KEY");
IChatClient chatClient =
new OpenAIClient(key)
.GetChatClient("gpt-4o-mini")
@lqdev
lqdev / Data-Viz.ipynb
Last active June 28, 2022 02:49
Plotly.NET C#
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@lqdev
lqdev / ImageClassifierFsAdvent2020.fsx
Created December 14, 2020 01:18
Code from F# Advent 2020 Image Classifier
#r "nuget:Microsoft.ML"
#r "nuget:Microsoft.ML.Vision"
#r "nuget:Microsoft.ML.ImageAnalytics"
#r "nuget:SciSharp.TensorFlow.Redist"
open System
open System.IO
open Microsoft.ML
open Microsoft.ML.Data
open Microsoft.ML.Vision
@lqdev
lqdev / DotnetDsML.md
Last active December 1, 2020 02:12
List of Data Science & ML Projects in .NET

Data loading

  • IDataView (ML.NET)
  • .NET for Apache Spark
  • FSharp.Data
  • Deedle

Data wrangling

  • Deedle
@lqdev
lqdev / ubuntu_wifi_adapter_fix.sh
Created September 18, 2018 16:38
Ubuntu 18.04 HP Laptop WiFi Adapter Fix
sudo apt update && sudo apt install git dkms
cd Downloads
git clone -b extended --single-branch https://github.com/lwfinger/rtlwifi_new.git
unofficial
cd rtlwifi_new
make
sudo make install
@lqdev
lqdev / GetProgrammingFS16TryThis.fsx
Created July 1, 2018 01:59
Solution to Try This Exercise in Get Programming with F# Lesson 16
//Try this
type Folder = {
Name:string
Size:int64
NumFiles:int64
AvgSize:float
DistinctExt:string list
}
open System.IO
@lqdev
lqdev / main.js
Created January 3, 2018 04:56
Largest Unique Set of Characters
/*
write a program that outputs the largest unique set of characters that can be removed
from this paragraph without letting its length drop below 50.
For example: [‘H’, ‘i’, ‘!’, ‘ ’]
*/
//Exception based on paragraph length
function ParagraphLengthException(message){
this.name = "ParagraphLengthException"
this.message = message;