Databricks Generative AI Engineer Associate · Section 3 · 30% of the exam
Select an embedding model context length based on source documents, expected queries, and optimization strategy
One of the objectives of the Databricks Certified Generative AI Engineer Associate exam, in the section “Application Development”. Here is what it covers, the points to remember and a question to try.
What it covers
Two token limits shape retrieval: what the embedding model can read per chunk, and what the LLM can hold for the retrieved chunks plus the prompt. This lesson shows how to pick an embedding model's context length from your documents, queries and optimization goals, and how to choose a chunking strategy from retrieval and end-to-end evaluation results.
Points to remember
- Embedding max input limits each chunk; the LLM context window limits k times chunk size plus instructions and history.
databricks-gte-large-en: 8,192 tokens, 1,024 dims, not normalized.databricks-bge-large-en: 512 tokens, 1,024 dims, normalized.databricks-qwen3-embedding-0-6b(Public Preview): about 32K tokens, configurable dimensions up to 1,024, 100+ languages.- Text beyond the embedding window is truncated silently; keep chunk p95 below the limit with headroom.
- Queries and chunks must use the same embedding model; queries are short, so match chunk granularity to the questions.
Try a question
An engineer chunked manuals to 500 tokens, counted with a general-purpose tokenizer, and embedded them with databricks-bge-large-en. Spot checks show that some chunks full of tables and part codes lose their last lines from the embedding. What is the most likely cause, and what is the fix?
- AThe index uses triggered sync; call
sync()so that the full text of each chunk is embedded - BTables can't be embedded at all; remove every table from the manuals before chunking them
- CThe endpoint truncates input at 500 characters; switch the splitter to count characters instead
- DThese chunks pass 512 tokens in bge's tokenizer; count with it and leave headroom
Show the answer
D. Tokenizers differ, and text dense with codes, numbers and table markup often becomes more tokens in the embedding model's tokenizer than in the one used for chunking. Chunks that cross bge-large-en's 512-token input are truncated silently. Count with the embedding model's own tokenizer and keep chunks safely below the limit, or switch to databricks-gte-large-en (8,192 tokens) and re-embed.
Written for practice in the style of the exam: never a question from the real exam.
In the course
The lesson Embedding context length and chunking from evaluation teaches this objective (about 45 minutes), and 12 practice questions test it. The course has lessons, exam-style questions, timed practice exams and an AI tutor for every objective, and a pass prediction that tells you when you're ready to book.
More in this section
- Select Langchain/similar tools for use in a Generative AI application
- Qualitatively assess responses to identify common issues such as quality and safety
- Select chunking strategy based on model & retrieval evaluation
- Augment a prompt with additional context from a user's input based on key fields, terms, and intents
- Create a prompt that adjusts an LLM's response from a baseline to a desired output
- Implement LLM guardrails to prevent negative outcomes
- Select the best LLM based on the attributes of the application to be developed
- Select a model from a model hub or marketplace for a task based on model metadata/model cards
- Select the best model for a given task based on common metrics generated in experiments
- Utilize MLflow and Agent Framework for developing agentic systems
- Compare the evaluation and monitoring phases of the Gen AI application life cycle
- Enable multi-agent systems to leverage Genie Spaces or conversational API to retrieve data