smart-doc-search / backend /services /analysis_schema.json
lakshmisravya123
Major upgrade: comprehensive document analysis
760153d
{
"title": "<extracted or inferred document title>",
"documentType": "<report|article|manual|contract|research|legal|email|memo|presentation|other>",
"summary": {
"oneSentence": "<concise 1-sentence TL;DR>",
"oneParagraph": "<3-5 sentence summary covering main points>",
"detailed": "<comprehensive 6-10 sentence summary with all key details>"
},
"keyTopics": [
"<topic1>",
"<topic2>",
"<topic3>",
"<topic4>",
"<topic5>"
],
"keyInsights": [
{
"insight": "<key finding or insight>",
"confidence": 0.9,
"section": "<where found>"
},
{
"insight": "<key finding or insight>",
"confidence": 0.8,
"section": "<where found>"
},
{
"insight": "<key finding or insight>",
"confidence": 0.7,
"section": "<where found>"
}
],
"entities": {
"people": [
"<person names mentioned>"
],
"organizations": [
"<org names mentioned>"
],
"dates": [
"<important dates mentioned>"
],
"amounts": [
"<monetary amounts, statistics, quantities>"
],
"locations": [
"<places mentioned>"
]
},
"structureAnalysis": {
"hasHeadings": true,
"estimatedSections": 5,
"sectionNames": [
"<section1>",
"<section2>"
],
"organizationQuality": "<excellent|good|fair|poor>",
"organizationNotes": "<brief note on document structure>"
},
"readability": {
"level": "<elementary|middle_school|high_school|college|graduate|professional>",
"fleschKincaidGrade": 10,
"notes": "<brief readability assessment>"
},
"sentimentAnalysis": {
"overall": "<positive|negative|neutral|mixed>",
"tone": "<formal|informal|technical|persuasive|informative|emotional>",
"sectionSentiments": [
{
"section": "<section name or area>",
"sentiment": "<positive|negative|neutral>",
"note": "<why>"
}
]
},
"factsVsOpinions": {
"factStatements": [
"<verifiable factual claim from doc>",
"<another fact>"
],
"opinionStatements": [
"<subjective opinion from doc>",
"<another opinion>"
],
"ratio": "<mostly_factual|balanced|mostly_opinion>"
},
"relatedQuestions": [
"<question this document can answer 1>",
"<question this document can answer 2>",
"<question this document can answer 3>",
"<question this document can answer 4>",
"<question this document can answer 5>"
],
"citationsCheck": {
"hasCitations": false,
"citationCount": 0,
"quality": "<strong|adequate|weak|none>",
"notes": "<assessment of references or citations>"
},
"keyFacts": [
"<fact1>",
"<fact2>",
"<fact3>",
"<fact4>",
"<fact5>"
]
}