High-performance API route for document ingestion and processing in the Sophra System
POST
function, which handles incoming HTTP POST requests for document ingestion. It accepts a NextRequest
object and returns a Promise<NextResponse>
.
DocumentSchema
BaseDocument
BaseDocument
type, imported from the Elasticsearch types module, represents the core structure of documents stored in the system.Input Validation Errors
Service Errors
Queue Configuration
Circuit Breaker Configuration