semantic-kernel
semantic-kernel copied to clipboard
Sample 4: Using memory and embeddings with GitHub (#94)
Motivation and Context
This sample continues in the spirit of prior samples in the samples/apps folder with a goal of teaching developers how the concepts of memory and embeddings can be integrated.
Description
This sample includes a frontend app that allows the developer to enter the address of a publicly available Github repository, which is downloaded to the temp directory of the machine hosting the KernelHttpService sample application (can be the same machine).
Once downloaded the developer is able to have a conversation with the repository and see the impact of the relevance slider on the responses.
Contribution Checklist
- [x] The code builds clean without any errors or warnings
- [x] The PR follows SK Contribution Guidelines (https://github.com/microsoft/semantic-kernel/blob/main/CONTRIBUTING.md)
- [x] The code follows the .NET coding conventions (https://learn.microsoft.com/dotnet/csharp/fundamentals/coding-style/coding-conventions) verified with
dotnet format - [x] All unit tests pass, and I have added new tests where possible
- [x] I didn't break anyone :smile:
Getting a 400 on a local run:

Because after the save on Completion Mode, it's triggering the conditional that validates EmbeddingConfig
However, the 400 seems to be related to something else, and even with --verbose logging, it's not apparent:

Getting a
400on a local run...
Thank you for the feedback - I suspect this may have been due to the bug we fixed with long files
AWESOME! 🎉
Wooooo!!
—Adrian
From: Devis Lucato @.> Sent: Tuesday, March 21, 2023 7:29:11 PM To: microsoft/semantic-kernel @.> Cc: Adrian Bonar (HE/HIM) @.>; Comment @.> Subject: Re: [microsoft/semantic-kernel] Sample 4: Using memory and embeddings with GitHub (#94) (PR #96)
AWESOME! 🎉
— Reply to this email directly, view it on GitHubhttps://github.com/microsoft/semantic-kernel/pull/96#issuecomment-1478836624, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ANONW5DJDKXL2PH6VGDEG23W5JPXPANCNFSM6AAAAAAV6X5A6Q. You are receiving this because you commented.Message ID: @.***>