Skip to main content
InterviewHubPRO
Section Overview
Q34

Question 34 of 50

Part 3: Advanced Internals, Scale & Production Patterns (Senior / Lead)

68%
Vector DBs & RAG (50 Qs)•Part 3: Advanced Internals, Scale & Production Patterns (Senior / Lead)

How does Out-Of-Vocabulary (OOV) and code search perform in Vector Search?

senior LevelMost AskedForms

In Simple Words:

  • General-purpose embedding models struggle with camelCase identifiers, stack traces, and arbitrary hashes.
  • Solution for Codebases: Use specialized code-embedding models (e.g. OpenAI text-embedding-3, StarCoder, CodeBERT), parse Abstract Syntax Trees (ASTs) into function-level chunks, and pair with BM25 lexical search for exact function/variable name lookups.