mirror of
https://github.com/perstarkse/minne.git
synced 2026-03-27 03:41:32 +01:00
27 lines
779 B
Rust
27 lines
779 B
Rust
use common::storage::types::system_prompts::DEFAULT_QUERY_SYSTEM_PROMPT;
|
|
use serde_json::{json, Value};
|
|
|
|
pub static QUERY_SYSTEM_PROMPT: &str = DEFAULT_QUERY_SYSTEM_PROMPT;
|
|
|
|
pub fn get_query_response_schema() -> Value {
|
|
json!({
|
|
"type": "object",
|
|
"properties": {
|
|
"answer": { "type": "string" },
|
|
"references": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"properties": {
|
|
"reference": { "type": "string" },
|
|
},
|
|
"required": ["reference"],
|
|
"additionalProperties": false,
|
|
}
|
|
}
|
|
},
|
|
"required": ["answer", "references"],
|
|
"additionalProperties": false
|
|
})
|
|
}
|