A developer wants to use OCI Generative AI Service to summarize long documents. Which endpoint should they use to send the document content?
The /chat endpoint accepts a conversation history, suitable for summarization tasks.
Why this answer
The /chat endpoint in OCI Generative AI Service is designed for conversational interactions and can handle long document summarization by accepting the document content as part of the chat context. This endpoint supports multi-turn dialogues and large input payloads, making it suitable for processing and summarizing lengthy documents.
Exam trap
Oracle often tests the misconception that /generate is the correct endpoint for all text generation tasks, including summarization, but the /chat endpoint is specifically optimized for interactive and context-aware tasks like document summarization.
How to eliminate wrong answers
Option A is wrong because /generate is used for text generation tasks like content creation or completion, not specifically for summarization of long documents. Option B is wrong because /classify is intended for text classification tasks such as sentiment analysis or topic labeling, not summarization. Option C is wrong because /embed is used to generate vector embeddings for text, which are useful for semantic search or similarity comparisons, not for producing summaries.