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

Support text2gql search for GraphRAG #2227

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

SonglinLyu
Copy link

@SonglinLyu SonglinLyu commented Dec 20, 2024

Fix #2195

Description

Support translating natural language questions directly to a cypher query with a prompt based tex2gql translator on GraphRAG.

How to use

set TEXT2GQL_SEARCH_ENABLED=True in .env
False for default

@csunny
Copy link
Collaborator

csunny commented Dec 23, 2024

Cool~

@@ -50,3 +50,7 @@ async def batch_extract(

class TranslatorBase(TransformerBase, ABC):
"""Translator base class."""

Copy link
Collaborator

@csunny csunny Dec 26, 2024

Choose a reason for hiding this comment

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

Dict needs to be import from typing

@csunny
Copy link
Collaborator

csunny commented Dec 26, 2024

@SonglinLyu Please fix the format error and add TEXT2GQL_SEARCH_ENABLED=True to env.template

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Feature][GraphRAG] Enhance GraphRAG search by Text2GQL model
2 participants