استرجاع محتويات المستندات
Last updated
Last updated
document_id
عدد صحيح
مطلوب. معرف الوثيقة لاسترجاع المحتويات.
start_chunk
عدد صحيح
فهرس الجزء الابتدائي. القيمة الافتراضية هي 0.
end_chunk
عدد صحيح
فهرس الجزء النهائي. القيمة الافتراضية هي start_chunk + 20.
404
الوثيقة غير موجودة
500
خطأ في الخادم الداخلي
بالنسبة للمستندات الكبيرة، يتم تقسيم المحتوى إلى أجزاء. يمكنك استرجاع المستند الكامل من خلال إجراء عدة طلبات:
قم بإجراء طلب أولي مع start_chunk=0
استخدم قيمة end_chunk
المعادة كـ start_chunk
للطلب التالي
استمر حتى تسترجع جميع الأجزاء
تقوم هذه النقطة النهائية بإرجاع المحتوى النصي الخام لمستند، مما يتيح لك الوصول إلى المعلومات الكاملة للمعالجة أو التحليل التفصيلي.
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.