Overview
The List RAPTOR RAG Nodes endpoint allows you to retrieve information about RAPTOR RAG nodes within a flow. RAPTOR RAG nodes process documents by constructing hierarchical tree structures with multiple abstraction levels, enabling sophisticated multi-level retrieval operations that capture both detailed and high-level semantic content.- Method:
GET - URL:
https://{flow_name}.flows.graphorlm.com/raptor-rag - Authentication: Required (API Token)
Authentication
All requests must include a valid API token in the Authorization header:Learn how to generate API tokens in the API Tokens guide.
Request Format
Headers
| Header | Value | Required |
|---|---|---|
Authorization | Bearer YOUR_API_TOKEN | Yes |
Parameters
No query parameters are required for this endpoint.Example Request
Response Format
Success Response (200 OK)
The response contains an array of RAPTOR RAG node objects:Response Structure
Each RAPTOR RAG node in the array contains:| Field | Type | Description |
|---|---|---|
id | string | Unique identifier for the RAPTOR RAG node |
type | string | Node type (always “raptor-rag” for RAPTOR RAG nodes) |
position | object | Position coordinates in the flow canvas |
style | object | Visual styling properties (height, width) |
data | object | RAPTOR RAG node configuration and results |
Position Object
| Field | Type | Description |
|---|---|---|
x | number | X coordinate position in the flow canvas |
y | number | Y coordinate position in the flow canvas |
Style Object
| Field | Type | Description |
|---|---|---|
height | integer | Height of the node in pixels |
width | integer | Width of the node in pixels |
Data Object
| Field | Type | Description |
|---|---|---|
name | string | Display name of the RAPTOR RAG node |
config | object | Node configuration including tree and retrieval settings |
result | object | Processing results and hierarchical tree metrics (optional) |
Config Object
| Field | Type | Description |
|---|---|---|
topK | integer | null | Number of top results to retrieve from the RAPTOR tree. Set to null for unlimited retrieval |
max_level | integer | Maximum number of levels in the RAPTOR tree hierarchy (default: 3) |
Result Object (Optional)
| Field | Type | Description |
|---|---|---|
updated | boolean | Whether the node has been processed with current configuration |
processing | boolean | Whether the node is currently building the RAPTOR tree |
waiting | boolean | Whether the node is waiting for dependencies |
has_error | boolean | Whether the node encountered an error during tree construction |
updatedMetrics | boolean | Whether evaluation metrics have been computed |
total_processed | integer | Number of documents processed through the RAPTOR pipeline |
total_chunks | integer | Number of base-level chunks generated from documents |
total_retrieved | integer | Number of documents retrieved in recent hierarchical queries |
tree_levels | integer | Number of levels built in the RAPTOR tree structure |
total_clusters | integer | Total number of clusters created across all tree levels |
total_summaries | integer | Number of summary nodes generated through hierarchical abstraction |
Code Examples
JavaScript/Node.js
Python
cURL
PHP
Error Responses
Common Error Codes
| Status Code | Description | Example Response |
|---|---|---|
| 401 | Unauthorized - Invalid or missing API token | {"detail": "Invalid authentication credentials"} |
| 404 | Not Found - Flow not found | {"detail": "Flow not found"} |
| 500 | Internal Server Error - Server error | {"detail": "Failed to retrieve RAPTOR RAG nodes"} |
Error Response Format
Example Error Responses
Invalid API Token
Flow Not Found
Server Error
Use Cases
RAPTOR Tree Management
Use this endpoint to:- Hierarchical Analysis: Examine tree structure configurations and multi-level abstraction settings
- Performance Monitoring: Check tree construction progress and hierarchical processing status
- Tree Optimization: Analyze clustering and summarization efficiency across tree levels
- Debugging: Identify issues with hierarchical tree construction or multi-level retrieval
Integration Examples
RAPTOR Tree Performance Analyzer
Hierarchical Configuration Validator
Best Practices
Tree Configuration Management
- Optimal Tree Depth: Configure max_level between 3-5 for most use cases to balance hierarchy and performance
- Appropriate Top K: Use Top K values between 10-30 for balanced hierarchical retrieval coverage
- Clustering Balance: Monitor clustering ratios to ensure effective tree granularity without over-segmentation
- Summarization Quality: Verify that summary nodes provide meaningful abstractions at each level
Performance Optimization
- Tree Construction: Monitor tree building progress and optimize for large document collections
- Memory Management: RAPTOR trees can be memory-intensive - plan resource allocation accordingly
- Processing Efficiency: Balance tree depth with construction time for optimal performance
- Hierarchical Retrieval: Optimize traversal strategies based on query patterns and tree structure
Monitoring and Maintenance
- Tree Health Checks: Regularly monitor tree construction status and hierarchical structure quality
- Configuration Validation: Verify that tree settings produce effective multi-level abstractions
- Performance Tracking: Monitor clustering efficiency and summarization quality metrics
- Update Coordination: Coordinate RAPTOR tree updates with downstream processing requirements
Troubleshooting
Flow Not Found Error
Flow Not Found Error
Solution: Verify that:
- The flow name in the URL is correct and matches exactly
- The flow exists in your project
- Your API token has access to the correct project
- The flow has been created and saved properly
Empty RAPTOR RAG Nodes Array
Empty RAPTOR RAG Nodes Array
Solution: If no RAPTOR RAG nodes are returned:
- Verify the flow contains RAPTOR RAG components
- Check that RAPTOR RAG nodes have been added to the flow
- Ensure the flow has been saved after adding RAPTOR RAG nodes
- Confirm you’re checking the correct flow
Tree Construction Issues
Tree Construction Issues
Solution: If RAPTOR trees are not building properly:
- Check that input documents have sufficient content for hierarchical clustering
- Verify max_level settings are appropriate for your document collection size
- Monitor memory usage during tree construction for large document sets
- Review clustering and summarization logs for specific construction errors
Poor Tree Structure Quality
Poor Tree Structure Quality
Solution: If trees have poor hierarchical structure:
- Analyze clustering ratios and adjust max_level accordingly
- Verify document diversity is sufficient for meaningful clustering
- Check summarization quality at each tree level
- Consider adjusting chunk size in upstream processing for better tree granularity
Slow Tree Construction
Slow Tree Construction
Solution: If tree building is taking too long:
- Monitor system resources during RAPTOR tree construction
- Consider reducing max_level for faster processing
- Check document size and complexity - very large documents may need preprocessing
- Review clustering algorithm performance and consider optimization
Connection Issues
Connection Issues
Solution: For connectivity problems:
- Check your internet connection
- Verify the flow URL is accessible
- Ensure your firewall allows HTTPS traffic to *.flows.graphorlm.com
- Try accessing the endpoint from a different network
Next Steps
After retrieving RAPTOR RAG node information, you might want to:Update RAPTOR RAG Configuration
Modify RAPTOR RAG node settings like Top K values and tree depth levels
List Dataset Nodes
View dataset nodes that provide input to RAPTOR RAG hierarchical processing
Run Flow
Execute your flow with the configured RAPTOR RAG nodes
Flow Overview
Learn about all available flow management endpoints

