Skip to content

Instantly share code, notes, and snippets.

View luisquintanilla's full-sized avatar
🛸
Astral Plane

Luis Quintanilla luisquintanilla

🛸
Astral Plane
View GitHub Profile
@luisquintanilla
luisquintanilla / 00-problem-baseline.cs
Created July 1, 2026 00:48
Runnable scope for dotnet/extensions #7516 — MEDI chunk metadata propagation (typed provenance vs loose-dict copy)
// 00-problem-baseline.cs
// SPIKE 0 — Prove or KILL hypothesis H1.
//
// H1: With MEDI PR #7516's current first-wins metadata propagation, a chunk that spans
// multiple source pages produces a WRONG/INCOMPLETE source citation, AND the typed
// PageNumber (the field that actually matters for citation) is dropped entirely.
//
// JTBD under test: "Given a retrieved chunk, what page(s) of the source does it cite?"
// This is the #1 production-RAG requirement (legal/medical/financial attribution).
//
@luisquintanilla
luisquintanilla / AudioTranscriptionGemma3n.ipynb
Last active June 27, 2025 20:29
Gemma3n Audio Transcription Ollama
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@luisquintanilla
luisquintanilla / WheresWaldo.ipynb
Created June 27, 2025 20:02
Where's Waldo? AI Edition
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@luisquintanilla
luisquintanilla / Agent.cs
Last active June 12, 2025 14:46
SK-MEAI-Agent
[Description("Calculate tax given a receipt and tax rate")]
float CalculateTax(float total, float taxRate)
{
return total * (1 + taxRate);
}
ILoggerFactory loggerFactory = LoggerFactory.Create(builder =>
{
builder.SetMinimumLevel(LogLevel.Trace).AddConsole();
});
@luisquintanilla
luisquintanilla / CustomMiddleware.ipynb
Created April 22, 2025 18:55
Custom Middleware MEAI
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@luisquintanilla
luisquintanilla / AnonymousDelegatingChatClient.ipynb
Created March 12, 2025 02:07
Creating custom middleware using MEAI AnonymousDelegatingChatClient
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@luisquintanilla
luisquintanilla / MEAI-SK-Agents.ipynb
Created March 11, 2025 19:45
Using Microsoft.Extensions.AI and Semantic Kernel Agents with GitHub Models
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@luisquintanilla
luisquintanilla / Program.cs
Created November 26, 2024 20:51
AI Webpage to .NET DataFrame
using Microsoft.Extensions.AI;
using Azure.AI.Inference;
using Azure;
using ChatRole = Microsoft.Extensions.AI.ChatRole;
using Microsoft.Data.Analysis;
IChatClient client =
new ChatCompletionsClient(
endpoint: new Uri("https://models.inference.ai.azure.com"),
new AzureKeyCredential(Environment.GetEnvironmentVariable("GH_TOKEN")))
@luisquintanilla
luisquintanilla / Program.cs
Created November 26, 2024 20:25
AI WebPage Builder
using Microsoft.Extensions.AI;
using Azure.AI.Inference;
using Azure;
using ChatRole = Microsoft.Extensions.AI.ChatRole;
IChatClient client =
new ChatCompletionsClient(
endpoint: new Uri("https://models.inference.ai.azure.com"),
new AzureKeyCredential(Environment.GetEnvironmentVariable("GH_TOKEN")))
.AsChatClient("gpt-4o-mini");