QuestionQ53

VerifiedData Preparation

After replacing the response-generating LLM in a RAG pipeline from GPT-4 with a company self-hosted model that has a shorter context length, the Generative AI Engineer receives the following error:

Question Image

Which TWO solutions should the Generative AI Engineer implement without changing the response-generating model?

Choose two
Explanation

The retrieved context exceeds the model’s 4,096-token prompt limit. Smaller embedded-document chunks and fewer vector-database retrieval results both reduce the amount of retrieved text inserted into the RAG prompt, keeping it within the supported context length.

Community Discussion

No comments yet. Be the first to start the discussion!