mirror of
https://github.com/perstarkse/minne.git
synced 2026-07-04 03:51:43 +02:00
544a790e34
Validate settings updates, use typed embedding backends, and route ingestion through DB-stored prompts so admin edits take effect.
39 lines
1.3 KiB
Rust
39 lines
1.3 KiB
Rust
use serde_json::json;
|
|
|
|
pub fn get_ingress_analysis_schema() -> serde_json::Value {
|
|
json!({
|
|
"type": "object",
|
|
"properties": {
|
|
"knowledge_entities": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"properties": {
|
|
"key": { "type": "string" },
|
|
"name": { "type": "string" },
|
|
"description": { "type": "string" },
|
|
"entity_type": { "type": "string" }
|
|
},
|
|
"required": ["key", "name", "description", "entity_type"],
|
|
"additionalProperties": false
|
|
}
|
|
},
|
|
"relationships": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": { "type": "string" },
|
|
"source": { "type": "string" },
|
|
"target": { "type": "string" }
|
|
},
|
|
"required": ["type", "source", "target"],
|
|
"additionalProperties": false
|
|
}
|
|
}
|
|
},
|
|
"required": ["knowledge_entities", "relationships"],
|
|
"additionalProperties": false
|
|
})
|
|
}
|