Skip to content

Commit

Permalink
feat: graph search api support metadata filter
Browse files Browse the repository at this point in the history
  • Loading branch information
Mini256 committed Jan 7, 2025
1 parent c1efd7f commit 555aaa3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ class GraphSearchRequest(BaseModel):
include_meta: bool = True
depth: int = 2
with_degree: bool = True
relationship_meta_filters: dict = {}


class KnowledgeRequest(BaseModel):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ def search_graph(session: SessionDep, kb_id: int, request: GraphSearchRequest):
request.include_meta,
request.with_degree,
False,
{},
request.relationship_meta_filters,
)
return {
"entities": entities,
Expand Down

0 comments on commit 555aaa3

Please sign in to comment.