Search Graph
Enhanced graph search that finds relevant content and builds visualization data.
Query Parameters
querystring
Search query
limit?integer
Default
30Range
1 <= value <= 100depth?integer
Traversal depth for graph search
Default
2Range
1 <= value <= 5node_types?|null
edge_types?|null
include_metadata?boolean
Include metadata in results
Default
trueResponse Body
application/json
application/json
curl -X GET "http://127.0.0.1:14242/graph/search?query=string&limit=30&depth=2&node_types=string&edge_types=string&include_metadata=true"{
"nodes": [
{
"id": "string",
"label": "string",
"node_type": "string",
"node_subtype": "string",
"size": 0,
"color": "string",
"community": "string",
"importance": 0,
"hop_count": 0,
"pagerank_score": 0,
"thread_id": "string",
"metadata": {
"entity_type": "string",
"confidence": 0,
"degree": 0,
"community_id": 0,
"pagerank_score": 0,
"hop_count": 0,
"description": "string",
"title": "string",
"content": "string",
"importance": 0,
"entity_count": 0,
"thread_id": "string",
"created_at": "string",
"updated_at": "string",
"source": "string"
}
}
],
"edges": [
{
"id": "string",
"source": "string",
"target": "string",
"edge_type": "string",
"weight": 0,
"label": "string",
"relevance_score": 0,
"metadata": {
"relation_type": "string",
"relationship_type": "string",
"context": "string",
"path_length": 0,
"hop_count": 0,
"description": "string",
"strength": 0,
"confidence": 0,
"conditions": "string",
"temporal_info": "string",
"source_reference": "string",
"source_name": "string",
"target_name": "string",
"source_id": "string",
"target_id": "string",
"path_position": 0,
"total_path_length": 0,
"visualization": {}
}
}
],
"communities": [
{
"id": "string",
"name": "string",
"description": "",
"member_count": 0,
"strength": 1,
"algorithm": "louvain",
"resolution": 1,
"metadata": {}
}
],
"community_hulls": [
{
"community_id": "string",
"community_name": "string",
"member_nodes": [
"string"
],
"member_count": 0,
"hull_type": "convex",
"color": "#9B59B6",
"opacity": 0.1,
"stroke_color": "#8E44AD",
"stroke_width": 2,
"metadata": {}
}
],
"visualization_config": {
"node_size_range": [
0
],
"edge_weight_range": [
0
],
"layout_recommendations": {}
},
"metadata": {
"total_nodes": 0,
"total_edges": 0,
"total_communities": 0,
"entity_nodes": 0,
"memory_nodes": 0,
"relationship_edges": 0,
"mention_edges": 0,
"traversal_depth": 0,
"query_method": "string",
"filter_type": "string",
"error": "string"
},
"query": "string",
"search_metadata": {
"search_method": "string",
"search_results": {
"memories_found": 0,
"entities_found": 0,
"threads_found": 0,
"communities_found": 0
},
"graph_stats": {
"memory_nodes": 0,
"entity_nodes": 0,
"community_nodes": 0,
"mention_edges": 0,
"relation_edges": 0
},
"filters_applied": {
"node_types": [
"string"
],
"edge_types": [
"string"
]
},
"visualization_ready": true,
"unified_query": true
}
}{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string"
}
]
}