feat(llm): support switch graph in api & add some query configs#184
Merged
imbajin merged 17 commits intoapache:mainfrom Mar 3, 2025
Merged
feat(llm): support switch graph in api & add some query configs#184imbajin merged 17 commits intoapache:mainfrom
imbajin merged 17 commits intoapache:mainfrom
Conversation
Change-Id: I31e9532990c2e7e09ddf518ac9c35cdf996a5a25 doc: update repo & url link for inner repo Change-Id: Ieac00904c4ab793de87c1cae7324e3d2d7946884 doc: update repo & url link for inner repo (GraphPlatform-4190) doc: update the link info
…ph/hugegraph-ai into master-icode
sync Change-Id: Id2138dfecfbd377dd39ec51fa9d46b630e9ea88f
Change-Id: I20c7fd6841df88c50933b4f54bf9bbb316b096a3
d94f5f5 to
c8b6af9
Compare
imbajin
reviewed
Feb 28, 2025
| gremlin_prompt: Optional[str] = None, | ||
| max_graph_items=30, | ||
| topk_return_results=20, | ||
| vector_dis_threshold=0.9, |
imbajin
reviewed
Feb 28, 2025
| method=rerank_method, | ||
| near_neighbor_first=near_neighbor_first, | ||
| custom_related_information=custom_related_information, | ||
| topk_return_results=topk_return_results |
Member
There was a problem hiding this comment.
this param should replace topk below ↓
# class MergeDedupRerank
def __init__(
self,
embedding: BaseEmbedding,
# get from settings & override by params if user specified it ↓
topk: int = huge_settings.topk_return_results,
graph_ratio: float = 0.5,
method: Literal["bleu", "reranker"] = "bleu",
near_neighbor_first: bool = False,
custom_related_information: Optional[str] = None,
priority: bool = False, # TODO: implement priority
):Change-Id: Idedc5f1d4fe97f7d9b8adfbfdc82d9aa36dafaa4
…stop) Change-Id: I859db5b74a916df6051f529c18a49d0fdd7dff5a
imbajin
reviewed
Mar 3, 2025
imbajin
approved these changes
Mar 3, 2025
This was referenced Mar 3, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.