What is prompt caching?
Simple meaning
Prompt caching reuses computation for a repeated prefix such as a long system prompt or static RAG header.
Open the full page for Why, Steps, Example and Key takeaway.
Panel-ready GenAI / LLM questions for freshers and experienced developers. Practice at Coding Cadre in Faridabad, or Online from Delhi NCR.
Prompt caching reuses computation for a repeated prefix such as a long system prompt or static RAG header.
Open the full page for Why, Steps, Example and Key takeaway.
The context window is the maximum number of tokens the model can consider at once, including prompt and usually the completion.
Open the full page for Why, Steps, Example and Key takeaway.
The call fails, or your client must drop history, summarize, or retrieve fewer chunks.
Open the full page for Why, Steps, Example and Key takeaway.
Embedding a whole book as one vector blurs topics and may exceed model limits.
Open the full page for Why, Steps, Example and Key takeaway.
Overlap copies a few tokens or sentences from the end of one chunk into the start of the next.
Open the full page for Why, Steps, Example and Key takeaway.
Hybrid search combines lexical matching such as BM25 with dense vector search.
Open the full page for Why, Steps, Example and Key takeaway.
BM25 is a ranking function for keyword search that scores term frequency with document-length normalization.
Open the full page for Why, Steps, Example and Key takeaway.
BOS marks the start of a sequence, EOS marks the end of generation, and PAD fills batches to equal length.
Open the full page for Why, Steps, Example and Key takeaway.
Often yes with a symmetric embedder, but some models are asymmetric: one tower for queries and one for passages.
Open the full page for Why, Steps, Example and Key takeaway.
A jailbreak is a prompt that tries to bypass safety policy, for example by role-play or hypothetical framing.
Open the full page for Why, Steps, Example and Key takeaway.
An LLM is a neural net trained on huge text to predict the next token.
Open the full page for Why, Steps, Example and Key takeaway.
It is writing clear instructions, context, and examples so the model does the task you want.
Open the full page for Why, Steps, Example and Key takeaway.
Temperature controls randomness.
Open the full page for Why, Steps, Example and Key takeaway.
A piece of text the model reads — often a word piece.
Open the full page for Why, Steps, Example and Key takeaway.
The instruction and context you send the model.
Open the full page for Why, Steps, Example and Key takeaway.
Randomness in token sampling.
Open the full page for Why, Steps, Example and Key takeaway.
A numeric fingerprint of meaning so similar text sits nearby.
Open the full page for Why, Steps, Example and Key takeaway.