This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // 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). | |
| // |
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [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(); | |
| }); |
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.
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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"))) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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"); |
NewerOlder