{"id":109,"date":"2023-03-22T07:58:59","date_gmt":"2023-03-22T14:58:59","guid":{"rendered":"https:\/\/devblogs.microsoft.com\/semantic-kernel\/?p=109"},"modified":"2024-03-18T11:24:20","modified_gmt":"2024-03-18T18:24:20","slug":"semantic-kernel-embeddings-and-memories-explore-github-repos-with-chat-ui","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/agent-framework\/semantic-kernel-embeddings-and-memories-explore-github-repos-with-chat-ui\/","title":{"rendered":"Semantic Kernel Embeddings and Memories: Explore GitHub Repos with Chat UI"},"content":{"rendered":"<p><img decoding=\"async\" src=\"https:\/\/devblogs.microsoft.com\/semantic-kernel\/wp-content\/uploads\/sites\/78\/2023\/03\/skpatternlarge-1536x128.png\" \/><\/p>\n<p>&nbsp;<\/p>\n<p><strong>UPDATE<\/strong>: This Sample has been deprecated.\u00a0 See the <a href=\"https:\/\/learn.microsoft.com\/en-us\/semantic-kernel\/chat-copilot\/\">Chat Copilot<\/a> example app on how to use embeddings and memories.<\/p>\n<p>&nbsp;<\/p>\n<p>Have you ever wanted to <strong>Ask<\/strong> questions to a GitHub repo? How many files are there, what languages are used, who contributed to it, what topics are covered, and so on? If you are a developer, researcher, or curious learner, you probably have. And you probably know that finding these answers can be tedious and time-consuming. You must clone the repo, browse through the folders and files, open and read the code or documentation, run some commands or scripts, and hope that everything works as expected.<\/p>\n<p>But what if there was a better way? A way that lets you explore any GitHub repo with just a few natural language questions? A way that uses the power of <a href=\"https:\/\/aka.ms\/sk\/embeddings\">embeddings<\/a> and <a href=\"https:\/\/aka.ms\/sk\/memories\">memories<\/a> to create a rich representation of the repo&#8217;s content and structure.<\/p>\n<p>That&#8217;s exactly what we have created with our new sample app: <a href=\"https:\/\/learn.microsoft.com\/en-us\/semantic-kernel\/chat-copilot\/\">Repo Example<\/a>. This sample shows how you can use a SK function to download any GitHub repo, store it in <a href=\"https:\/\/aka.ms\/sk\/memories\">memories<\/a> (collections of <a href=\"https:\/\/aka.ms\/sk\/embeddings\">embeddings<\/a>), and query it with a chat UI. You don&#8217;t need to clone the repo or install any dependencies. You just need to provide the URL of the repo and let the sample app do the rest.<\/p>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/semantic-kernel\/wp-content\/uploads\/sites\/78\/2023\/03\/Embedding_SK_Picture.jpg\"><img decoding=\"async\" class=\" wp-image-113 alignleft\" src=\"https:\/\/devblogs.microsoft.com\/semantic-kernel\/wp-content\/uploads\/sites\/78\/2023\/03\/Embedding_SK_Picture-1024x576.jpg\" alt=\"Image Embedding SK Picture\" width=\"714\" height=\"396\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>Use this sample as a guide for storing and querying items like:<\/p>\n<ul>\n<li>Large internal procedure manuals<\/li>\n<li>Educational materials for students<\/li>\n<li>Corporate contracts<\/li>\n<li>Product documentation<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<p><strong>Next steps:<\/strong><\/p>\n<p>Explore the sample in GitHub: <a href=\"https:\/\/aka.ms\/sk\/repo\/samples\/github-repo-qa-bot\">https:\/\/aka.ms\/sk\/repo\/samples\/github-repo-qa-bot<\/a><\/p>\n<p>Read the documentation about the sample: <a href=\"https:\/\/aka.ms\/sk\/github-bot\">https:\/\/aka.ms\/sk\/github-bot<\/a><\/p>\n<p>Join the community and let us know what you think: <a href=\"https:\/\/aka.ms\/sk\/discord\">https:\/\/aka.ms\/sk\/discord<\/a><\/p>\n<p><img decoding=\"async\" src=\"https:\/\/devblogs.microsoft.com\/semantic-kernel\/wp-content\/uploads\/sites\/78\/2023\/03\/skpatternsmallbw.png\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>&nbsp; UPDATE: This Sample has been deprecated.\u00a0 See the Chat Copilot example app on how to use embeddings and memories. &nbsp; Have you ever wanted to Ask questions to a GitHub repo? How many files are there, what languages are used, who contributed to it, what topics are covered, and so on? If you are [&hellip;]<\/p>\n","protected":false},"author":111479,"featured_media":113,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"video","meta":{"_acf_changed":false,"footnotes":""},"categories":[1],"tags":[6],"class_list":["post-109","post","type-post","status-publish","format-video","has-post-thumbnail","hentry","category-semantic-kernel","tag-embeddings","post_format-post-format-video"],"acf":[],"blog_post_summary":"<p>&nbsp; UPDATE: This Sample has been deprecated.\u00a0 See the Chat Copilot example app on how to use embeddings and memories. &nbsp; Have you ever wanted to Ask questions to a GitHub repo? How many files are there, what languages are used, who contributed to it, what topics are covered, and so on? If you are [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/agent-framework\/wp-json\/wp\/v2\/posts\/109","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/agent-framework\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/agent-framework\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/agent-framework\/wp-json\/wp\/v2\/users\/111479"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/agent-framework\/wp-json\/wp\/v2\/comments?post=109"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/agent-framework\/wp-json\/wp\/v2\/posts\/109\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/agent-framework\/wp-json\/wp\/v2\/media\/113"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/agent-framework\/wp-json\/wp\/v2\/media?parent=109"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/agent-framework\/wp-json\/wp\/v2\/categories?post=109"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/agent-framework\/wp-json\/wp\/v2\/tags?post=109"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}