355 lines
8.6 KiB
JSON
355 lines
8.6 KiB
JSON
{
|
|
"version": "1.3.5",
|
|
"updated_at": "2026-11-15T12:00:00+0800",
|
|
"updated_by": "admin",
|
|
"vlm_prompts": {
|
|
"scene_vlm": {
|
|
"system_prompt": "You are a helpful assistant that analyzes video scenes.",
|
|
"user_prompt": "Describe this scene. What is happening? What objects and people are visible?",
|
|
"max_tokens": 200,
|
|
"description": "Scene analysis VLM prompt"
|
|
},
|
|
"rust_vlm_summary": {
|
|
"system_prompt": "You are a helpful assistant that describes people in images.",
|
|
"user_prompt": "Describe the person in this image. Focus on clothing, accessories, and distinctive features.",
|
|
"max_tokens": 300,
|
|
"description": "Face trace VLM prompt for person description"
|
|
},
|
|
"garbled_recovery": {
|
|
"system_prompt": "You are a helpful assistant that verifies speech transcription quality.",
|
|
"user_prompt": "Analyze this transcript for garbled text. Is it intelligible?",
|
|
"max_tokens": 100,
|
|
"description": "ASR garbled text recovery prompt"
|
|
}
|
|
},
|
|
"llm_config": {
|
|
"summary": {
|
|
"url": "http://127.0.0.1:8080/v1/chat/completions",
|
|
"model": "gemma-4-12b-it",
|
|
"timeout": 60,
|
|
"fallbacks": [
|
|
"http://127.0.0.1:8082/v1/chat/completions"
|
|
],
|
|
"strategy": "priority",
|
|
"enabled": true
|
|
},
|
|
"vlm": {
|
|
"url": "http://127.0.0.1:8082/v1/chat/completions",
|
|
"model": "gemma-4-12b-it",
|
|
"timeout": 120,
|
|
"fallbacks": [
|
|
"http://127.0.0.1:8080/v1/chat/completions"
|
|
],
|
|
"strategy": "priority",
|
|
"enabled": false
|
|
},
|
|
"chat": {
|
|
"url": "http://127.0.0.1:8080/v1/chat/completions",
|
|
"model": "gemma-4-12b-it",
|
|
"timeout": 30,
|
|
"fallbacks": [
|
|
"http://127.0.0.1:8082/v1/chat/completions"
|
|
],
|
|
"strategy": "priority",
|
|
"enabled": true
|
|
},
|
|
"embedding": {
|
|
"url": "http://127.0.0.1:11436/v1/embeddings",
|
|
"model": "embeddinggemma",
|
|
"timeout": 60,
|
|
"fallbacks": [],
|
|
"strategy": "priority",
|
|
"enabled": true
|
|
}
|
|
},
|
|
"processor_config": {
|
|
"FACE": {
|
|
"timeout": 3600,
|
|
"enabled": true,
|
|
"tools": [
|
|
{
|
|
"name": "swift",
|
|
"priority": 0,
|
|
"enabled": true,
|
|
"parameters": {}
|
|
},
|
|
{
|
|
"name": "python",
|
|
"priority": 2,
|
|
"enabled": true,
|
|
"parameters": {}
|
|
}
|
|
],
|
|
"default_tool": "swift"
|
|
},
|
|
"OCR": {
|
|
"timeout": 3600,
|
|
"enabled": true,
|
|
"tools": [
|
|
{
|
|
"name": "swift",
|
|
"priority": 0,
|
|
"enabled": true,
|
|
"parameters": {}
|
|
}
|
|
],
|
|
"default_tool": "swift"
|
|
},
|
|
"CUT": {
|
|
"timeout": 3600,
|
|
"enabled": true,
|
|
"tools": [
|
|
{
|
|
"name": "rust",
|
|
"priority": 0,
|
|
"enabled": true,
|
|
"parameters": {}
|
|
},
|
|
{
|
|
"name": "python",
|
|
"priority": 2,
|
|
"enabled": true,
|
|
"parameters": {}
|
|
}
|
|
],
|
|
"default_tool": "rust"
|
|
},
|
|
"ASRX": {
|
|
"timeout": 3600,
|
|
"enabled": true,
|
|
"tools": [
|
|
{
|
|
"name": "swift",
|
|
"priority": 0,
|
|
"enabled": true,
|
|
"parameters": {}
|
|
}
|
|
],
|
|
"default_tool": "swift"
|
|
},
|
|
"FACE_TRACE": {
|
|
"timeout": 3600,
|
|
"enabled": true,
|
|
"tools": [
|
|
{
|
|
"name": "rust",
|
|
"priority": 0,
|
|
"enabled": true,
|
|
"parameters": {}
|
|
},
|
|
{
|
|
"name": "python",
|
|
"priority": 1,
|
|
"enabled": true,
|
|
"parameters": {}
|
|
}
|
|
],
|
|
"default_tool": "rust"
|
|
},
|
|
"FACE_CLUSTER": {
|
|
"timeout": 3600,
|
|
"enabled": true,
|
|
"tools": [
|
|
{
|
|
"name": "rust",
|
|
"priority": 0,
|
|
"enabled": true,
|
|
"parameters": {}
|
|
}
|
|
],
|
|
"default_tool": "rust"
|
|
},
|
|
"SCENE_VLM": {
|
|
"timeout": 7200,
|
|
"enabled": true,
|
|
"tools": [
|
|
{
|
|
"name": "python",
|
|
"priority": 0,
|
|
"enabled": true,
|
|
"parameters": {}
|
|
}
|
|
],
|
|
"default_tool": "python"
|
|
},
|
|
"POSE": {
|
|
"timeout": 3600,
|
|
"enabled": true,
|
|
"tools": [
|
|
{
|
|
"name": "swift",
|
|
"priority": 0,
|
|
"enabled": true,
|
|
"parameters": {}
|
|
},
|
|
{
|
|
"name": "rust",
|
|
"priority": 1,
|
|
"enabled": true,
|
|
"parameters": {}
|
|
},
|
|
{
|
|
"name": "mediapipe",
|
|
"priority": 2,
|
|
"enabled": true,
|
|
"parameters": {
|
|
"min_confidence": 0.5,
|
|
"model_complexity": 2
|
|
}
|
|
}
|
|
],
|
|
"default_tool": "swift"
|
|
}
|
|
},
|
|
"filter_config": {
|
|
"face": {
|
|
"min_confidence": 0.5,
|
|
"min_size": 30,
|
|
"min_capture_quality": 0.25
|
|
}
|
|
},
|
|
"face_filter_defaults": {
|
|
"min_confidence": 50.0,
|
|
"min_size": 1,
|
|
"min_capture_quality": 0.25
|
|
},
|
|
"paths": {
|
|
"output_dir": "/Users/accusys/momentry/output/demo",
|
|
"backup_dir": "/Users/accusys/momentry/var/backup",
|
|
"scripts_dir": "/Users/accusys/momentry/scripts",
|
|
"cli_dir": "/Users/accusys/momentry/tools/cli",
|
|
"python_path": "/opt/homebrew/bin/python3.11",
|
|
"ffmpeg_path": "/opt/homebrew/bin/ffmpeg"
|
|
},
|
|
"concurrency": {
|
|
"max_concurrent_jobs": 2,
|
|
"poll_interval": 5,
|
|
"batch_size": 5,
|
|
"processor_timeout_secs": 3600
|
|
},
|
|
"feature_flags": {
|
|
"cache_enabled": true,
|
|
"auto_pipeline_enabled": false,
|
|
"watcher_auto_register": false,
|
|
"summary_enabled": true
|
|
},
|
|
"server": {
|
|
"port": 3002,
|
|
"media_base_url": "http://localhost:8888",
|
|
"serve_base_url": "http://localhost:8888",
|
|
"storage_root": "/Users/accusys/momentry/var/sftpgo/data",
|
|
"timezone": "Asia/Taipei"
|
|
},
|
|
"admin_settings": {
|
|
"session_timeout": 3600,
|
|
"max_login_attempts": 5,
|
|
"api_key_expiry_days": 365,
|
|
"system_stats_refresh_sec": 5,
|
|
"preferred_language": "en",
|
|
"library_default_sort": "name_asc"
|
|
},
|
|
"search": {
|
|
"vlm_min_score": 0.0,
|
|
"vlm_output_language": "ja"
|
|
},
|
|
"pipeline": {
|
|
"enabled": true,
|
|
"max_concurrent_stages": 5,
|
|
"default_timeout_secs": 7200,
|
|
"flows": {
|
|
"register": {
|
|
"name": "register",
|
|
"description": "Full registration pipeline: all processors",
|
|
"version": "1.0",
|
|
"enabled": true,
|
|
"stages": [
|
|
{
|
|
"name": "probe",
|
|
"processor_type": "probe",
|
|
"required": false,
|
|
"enabled": true,
|
|
"timeout_secs": 300
|
|
},
|
|
{
|
|
"name": "cut",
|
|
"processor_type": "cut",
|
|
"required": true,
|
|
"enabled": true,
|
|
"timeout_secs": 3600
|
|
},
|
|
{
|
|
"name": "face",
|
|
"processor_type": "face",
|
|
"required": false,
|
|
"enabled": true,
|
|
"timeout_secs": 3600
|
|
},
|
|
{
|
|
"name": "ocr",
|
|
"processor_type": "ocr",
|
|
"required": false,
|
|
"enabled": true,
|
|
"timeout_secs": 3600
|
|
},
|
|
{
|
|
"name": "asrx",
|
|
"processor_type": "asrx",
|
|
"required": false,
|
|
"enabled": true,
|
|
"timeout_secs": 3600
|
|
},
|
|
{
|
|
"name": "scene_vlm",
|
|
"processor_type": "scene_vlm",
|
|
"required": false,
|
|
"enabled": true,
|
|
"timeout_secs": 7200
|
|
},
|
|
{
|
|
"name": "face_trace",
|
|
"processor_type": "face_trace",
|
|
"required": false,
|
|
"enabled": true,
|
|
"timeout_secs": 3600
|
|
},
|
|
{
|
|
"name": "face_cluster",
|
|
"processor_type": "face_cluster",
|
|
"required": false,
|
|
"enabled": true,
|
|
"timeout_secs": 3600
|
|
}
|
|
]
|
|
},
|
|
"reindex": {
|
|
"name": "reindex",
|
|
"description": "Re-index pipeline: chunks + vectors + TKG",
|
|
"version": "1.0",
|
|
"enabled": true,
|
|
"stages": [
|
|
{
|
|
"name": "chunk",
|
|
"processor_type": "chunk",
|
|
"required": true,
|
|
"enabled": true,
|
|
"timeout_secs": 3600
|
|
},
|
|
{
|
|
"name": "vectorize",
|
|
"processor_type": "vectorize",
|
|
"required": true,
|
|
"enabled": true,
|
|
"timeout_secs": 3600
|
|
},
|
|
{
|
|
"name": "tkg",
|
|
"processor_type": "tkg",
|
|
"required": false,
|
|
"enabled": true,
|
|
"timeout_secs": 7200
|
|
}
|
|
]
|
|
}
|
|
}
|
|
}
|
|
} |