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 / 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");
@luisquintanilla
luisquintanilla / Program.cs
Created March 18, 2024 15:51
Movie Recommender RAG (SK + Ollama + AOAI Embeddings)
#pragma warning disable
using System.Net.Http.Json;
using System.Text.Json;
using System.Numerics.Tensors;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.SemanticKernel;
using Microsoft.SemanticKernel.Connectors.Ollama;
using Microsoft.SemanticKernel.Connectors.OpenAI;
using Microsoft.SemanticKernel.Embeddings;
@luisquintanilla
luisquintanilla / TensorPrimitivesCosineSimSample.ipynb
Created October 4, 2023 14:00
Calculating Cosine Similarity with Different Implementations
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@luisquintanilla
luisquintanilla / SchemaDefinition.ipynb
Created September 27, 2023 22:38
Define IDataView schema using anonymous types
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@luisquintanilla
luisquintanilla / Sample.ipynb
Created December 8, 2022 17:37
GPT-2 ONNX ML.NET Tokenizers Sample
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@luisquintanilla
luisquintanilla / TransformerScope.ipynb
Last active November 2, 2022 17:58
Use transformer scopes to ignore labels when scoring
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.