استرجاع محتويات المستندات
Returns the content of the document with the specified ID, along with the index of the latest retrieved chunk. Each call fetches up to 20 chunks. To get more, use the end_chunk value from the response as the start_chunk for the next call.
The ID of the document to retrieve contents for.
Indicate the starting chunk that you want to retrieve. If not specified, the default value is 0.
Indicate the ending chunk that you want to retrieve. If not specified, the default value is start_chunk + 20.
GET /api/v1/documents/{document_id}/contents/ HTTP/1.1
Host: api.rememberizer.ai
Accept: */*
{
"content": "text",
"end_chunk": 20
}
طلبات مثال
curl -X GET \
"https://api.rememberizer.ai/api/v1/documents/12345/contents/?start_chunk=0&end_chunk=20" \
-H "Authorization: Bearer YOUR_JWT_TOKEN"
معلمات المسار
document_id
عدد صحيح
مطلوب. معرف الوثيقة لاسترجاع المحتويات.
معلمات الاستعلام
start_chunk
عدد صحيح
فهرس الجزء الابتدائي. القيمة الافتراضية هي 0.
end_chunk
عدد صحيح
فهرس الجزء النهائي. القيمة الافتراضية هي start_chunk + 20.
تنسيق الاستجابة
{
"content": "النص الكامل لمحتوى أجزاء الوثيقة...",
"end_chunk": 20
}
استجابات الخطأ
404
الوثيقة غير موجودة
500
خطأ في الخادم الداخلي
تقسيم الصفحات للمستندات الكبيرة
بالنسبة للمستندات الكبيرة، يتم تقسيم المحتوى إلى أجزاء. يمكنك استرجاع المستند الكامل من خلال إجراء عدة طلبات:
قم بإجراء طلب أولي مع
start_chunk=0
استخدم قيمة
end_chunk
المعادة كـstart_chunk
للطلب التالياستمر حتى تسترجع جميع الأجزاء
تقوم هذه النقطة النهائية بإرجاع المحتوى النصي الخام لمستند، مما يتيح لك الوصول إلى المعلومات الكاملة للمعالجة أو التحليل التفصيلي.
Last updated