-
Notifications
You must be signed in to change notification settings - Fork 29
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
feat(llm): added the process of text2gql in graphrag V1.0 #105
Conversation
…rieval before subgraph retrieval
After implementing |
# Conflicts: # hugegraph-llm/src/hugegraph_llm/operators/hugegraph_op/graph_rag_query.py
Yes, and it has been removed in new commit. |
# Conflicts: # hugegraph-llm/src/hugegraph_llm/demo/rag_demo/app.py # hugegraph-llm/src/hugegraph_llm/demo/rag_demo/other_block.py
We should add a
|
# Conflicts: # hugegraph-llm/src/hugegraph_llm/operators/hugegraph_op/graph_rag_query.py
# Conflicts: # hugegraph-llm/src/hugegraph_llm/demo/gremlin_generate_web_demo.py
…added a graph search flag
query_embedding = context["query_embedding"] | ||
else: | ||
query_embedding = self.embedding.get_text_embedding(query) | ||
context["match_result"] = self.vector_index.search(query_embedding, self.num_examples, dis_threshold=2) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why we set dis_threshold
to 2? (means always match topK?)
Seems not reasonable
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Merg it & split it to separate PR for dev
address #10