1. Web Hook
Purpose: Receives uploaded code files through HTTP requests
Configuration:
- Method: PUT
- Query Parameters:
type, token
- Headers:
Content-Type: Automatically set based on file type
Authorization: Your API key (found in the webhook URL)
- Body: File upload (supports various code file formats)
Response: JSON containing processed objects with embedded code chunks
2. Data – Parser
Purpose: Extracts structured text, tables, or other relevant information from uploaded files for downstream processing
Description: The data parser node processes uploaded files and converts them into a format that can be consumed by the code preprocessor. It handles various file formats and extracts the raw text content needed for code analysis.
3. Preprocessor – Code
Purpose: Parses and tokenizes source code, extracting functions, classes, and comments to prepare code for analysis, embedding, or search
Configuration Options
| Setting |
Default |
Options |
Effect |
| Code Splitter Profile |
Auto |
Auto, C/C++, Python, JavaScript, TypeScript |
Determines parsing rules and syntax highlighting |
| Maximum String Length |
512 |
Configurable character limit |
Controls chunk size for downstream processing |
Supported Languages
- Auto: Automatic language detection based on file extension
- C/C++: C and C++ source code
- Python: Python source code
- JavaScript: JavaScript source code
- TypeScript: TypeScript source code