|
thanks for asking; here, I'm taking sample input data from a blog post that might look like this, and I have specified the format below, which I'll feed to an LLM and will get a response as a JSON, which will be type-safe and validated at the backend. {
"data": "Title: The Effects of Sleep on Memory, Authors: Dr. Jane Doe, Dr. John Smith, Publication Date: 2022-09-15, Journal: Journal of Neuroscience, Abstract: This study explores how sleep influences memory consolidation. Our research indicates that participants who had a full night's sleep performed better on memory tests compared to those who did not. Keywords: sleep, memory, neuroscience, cognition",
"format": {
"title": { "type": "string" },
"authors": {
"type": "array",
"items": { "type": "string" }
},
"publicationDate": { "type": "string" },
"journal": { "type": "string" },
"abstract": { "type": "string" },
"keywords": {
"type": "array",
"items": { "type": "string" }
}
}
} or it can be an HTML, or general text document, or an article pdf whatever Expected Output will be this, {
"title": "The Effects of Sleep on Memory",
"authors": [
"Dr. Jane Doe",
"Dr. John Smith"
],
"publicationDate": "2022-09-15",
"journal": "Journal of Neuroscience",
"abstract": "This study explores how sleep influences memory consolidation. Our research indicates that participants who had a full night's sleep performed better on memory tests compared to those who did not.",
"keywords": [
"sleep",
"memory",
"neuroscience",
"cognition"
]
} |