Added minimum degree filter for graph queries
- Introduced min_degree parameter in graph query - Updated UI to include minimum degree setting - Modified API to handle min_degree parameter - Updated graph query logic in LightRAG
This commit is contained in:
@@ -162,11 +162,11 @@ axiosInstance.interceptors.response.use(
|
||||
|
||||
// API methods
|
||||
export const queryGraphs = async (
|
||||
label: string,
|
||||
label: string,
|
||||
maxDepth: number,
|
||||
inclusive: boolean = false
|
||||
minDegree: number
|
||||
): Promise<LightragGraphType> => {
|
||||
const response = await axiosInstance.get(`/graphs?label=${encodeURIComponent(label)}&max_depth=${maxDepth}&inclusive=${inclusive}`)
|
||||
const response = await axiosInstance.get(`/graphs?label=${encodeURIComponent(label)}&max_depth=${maxDepth}&min_degree=${minDegree}`)
|
||||
return response.data
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user