Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Python: Graphrag demo #10064

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

eavanvalkenburg
Copy link
Member

Motivation and Context

Create a demo for integrating Graphrag with Semantic Kernel.

Description

Adds several pieces to setup and run the Graphrag index, based on their getting started docs.
Create a ChatCompletion client based on GraphRag, and finally a chat script to interact with it.

Contribution Checklist

@eavanvalkenburg eavanvalkenburg requested a review from a team as a code owner January 6, 2025 09:35
@markwallace-microsoft markwallace-microsoft added python Pull requests for the Python Semantic Kernel documentation labels Jan 6, 2025
@eavanvalkenburg eavanvalkenburg marked this pull request as draft January 6, 2025 09:35
Copy link
Contributor

@moonbox3 moonbox3 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very cool! A few small comments.

python/samples/demos/graphrag/README.md Outdated Show resolved Hide resolved
python/samples/demos/graphrag/README.md Outdated Show resolved Hide resolved
python/samples/demos/graphrag/graphrag_service.py Outdated Show resolved Hide resolved
python/samples/demos/graphrag/README.md Outdated Show resolved Hide resolved

class GraphRagChatCompletion(ChatCompletionClientBase):
"""GraphRagChatCompletion is a class that extends ChatCompletionClientBase to provide
chat completion functionalities using a GraphRag setup.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Question: This embeds the memory into the connector. Is this a recommended approach of doing rag with SK?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation python Pull requests for the Python Semantic Kernel
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants