This post is a part of the DP-800: Developing AI-Enabled Database Solutions Exam Prep Hub.
This topic falls under these sections:
Implement AI capabilities in database solutions (25–30%)
--> Design and implement intelligent search
--> Choose from full-text, semantic vector, and hybrid search
Note that there are 10 practice questions (with answers) at the end of each section to help you solidify your knowledge of the material. Also, there are 4 practice tests with 30 questions each available from the hub's main page below the exam topics section.
Introduction
One of the most important skills measured on the DP-800 exam is knowing which search technology is appropriate for different AI-enabled database scenarios. Modern applications no longer rely solely on keyword matching. Instead, they increasingly combine traditional SQL capabilities with semantic understanding powered by embeddings and vector databases.
Microsoft SQL Server 2025, Azure SQL Database, Azure SQL Managed Instance, Azure AI Search, and Microsoft Fabric all support architectures that combine relational data with AI-powered retrieval.
The DP-800 exam expects candidates to understand:
- Traditional Full-Text Search
- Semantic Vector Search
- Hybrid Search
- When each technique should be selected
- Advantages and disadvantages of each approach
- How embeddings enable semantic retrieval
- How intelligent search supports Retrieval-Augmented Generation (RAG)
Understanding the strengths and weaknesses of each search strategy is critical because choosing the wrong approach can significantly reduce application quality, increase cost, or degrade performance.
Why Intelligent Search Matters
Traditional databases are excellent at retrieving structured information.
For example:
Find all customers named Smith.
or
Find invoices created after January 1.
However, AI applications often ask questions like:
- Which support ticket is similar to this one?
- Find documents about password recovery.
- Find articles discussing authentication failures.
- Recommend products similar to this description.
These questions require understanding meaning, not merely matching characters.
This is why semantic search has become an essential component of modern database applications.
Three Primary Search Approaches
Microsoft generally categorizes intelligent search into three approaches:
- Full-Text Search
- Semantic Vector Search
- Hybrid Search
Each solves a different problem.
Full-Text Search
Full-text search is Microsoft’s traditional text search technology.
Instead of scanning every row with LIKE comparisons, SQL Server builds specialized indexes that understand words and language.
Example:
Find all documents containing:databasesecurityAzure
Rather than performing:
WHERE Description LIKE '%Azure%'
Full-text indexes tokenize words and search efficiently.
Full-Text Search Features
Supports:
- Word searches
- Phrase searches
- Prefix searches
- Inflectional forms
- Language-specific stemming
- Stop words
- Ranking
Example:
Searching for
run
may also find
- running
- runs
- ran
depending on language settings.
Full-Text Index Architecture
A full-text index stores:
- Tokens
- Word locations
- Linguistic metadata
instead of raw text.
This allows much faster retrieval than LIKE queries.
Common Full-Text Functions
Examples include:
CONTAINS()
FREETEXT()
CONTAINSTABLE()
FREETEXTTABLE()
Example:
SELECT *FROM ArticlesWHERE CONTAINS(Content,'Azure');
Advantages of Full-Text Search
Advantages include:
- Mature technology
- Extremely fast keyword searches
- Built directly into SQL Server
- Efficient indexing
- Supports ranking
- Low storage overhead
- Easy implementation
Limitations of Full-Text Search
It still relies primarily on matching words.
It does not understand meaning.
For example:
Search:
vehicle repair
A document containing
automobile maintenance
might not be returned.
Although synonyms can sometimes help, semantic understanding remains limited.
When Full-Text Search Is Best
Choose Full-Text Search when:
- Exact words matter
- Legal document searches
- Product catalogs
- Article searches
- Documentation portals
- Knowledge bases
- Compliance systems
It excels when users know the terminology they are searching for.
Semantic Vector Search
Vector search is fundamentally different.
Instead of searching words, it searches meaning.
The process is:
Text
↓
Embedding model
↓
Vector
↓
Similarity search
Every document becomes a numerical representation.
Example:
"Reset your password"
becomes
[0.183,-0.912,0.447,...]
The numbers themselves are not important.
Their relative position in vector space is.
Embeddings Power Semantic Search
Embedding models place similar concepts near each other.
For example:
Dog
and
Puppy
produce vectors close together.
Likewise:
Laptop
and
Notebook computer
may generate highly similar vectors.
The model learns semantic relationships.
Similarity Search
Rather than asking:
“Does this document contain this word?”
Vector search asks:
“Which vectors are closest?”
Similarity is commonly measured using:
- Cosine similarity
- Euclidean distance
- Dot product
Cosine similarity is the most common metric.
Example
User asks:
“How do I recover my account?”
Stored article:
“Reset your password”
Even though no identical words exist, vector search recognizes the concepts are related.
This is impossible using ordinary keyword matching.
Advantages of Semantic Vector Search
Benefits include:
- Understands meaning
- Finds similar content
- Supports natural language
- Excellent for AI assistants
- Ideal for RAG
- Handles synonyms automatically
- Better user experience
Limitations of Vector Search
Tradeoffs include:
- Requires embedding models
- Consumes more storage
- Embedding generation costs compute
- Requires vector indexes
- More complex infrastructure
- Results can occasionally be less predictable than exact keyword searches
Typical Use Cases
Vector search is ideal for:
- AI chatbots
- Enterprise search
- Recommendation engines
- Similar document retrieval
- Customer support assistants
- Semantic knowledge bases
- Question answering systems
- RAG architectures
Understanding Hybrid Search
Neither full-text nor vector search is perfect for every workload.
Hybrid search combines both approaches.
Instead of choosing one search method, the application performs:
- Full-text search
- Vector search
simultaneously.
Results are then merged and ranked.
This provides higher-quality search than either technique alone.
Why Hybrid Search Works
Imagine a user searches:
“Azure SQL backup”
Keyword search finds:
- Azure SQL backup documentation
Vector search finds:
- Disaster recovery guidance
- Database restore procedures
- Business continuity articles
Combining both returns a richer, more relevant result set.
Benefits of Hybrid Search
Hybrid search offers:
- Higher recall
- Better ranking
- Exact keyword matches
- Semantic understanding
- More complete search results
- Improved user satisfaction
- Better grounding for AI responses
Hybrid Search in RAG
Retrieval-Augmented Generation depends heavily on retrieving the most relevant context.
Hybrid search often performs best because it retrieves:
- Exact terminology
- Related concepts
- Similar documents
The LLM then generates an answer using higher-quality evidence.
This significantly reduces hallucinations.
Choosing the Right Search Method
| Requirement | Best Choice |
|---|---|
| Exact keywords | Full-Text Search |
| SQL documentation search | Full-Text Search |
| Product SKU lookup | Full-Text Search |
| Semantic similarity | Vector Search |
| AI chatbot | Vector Search |
| Recommendation engine | Vector Search |
| RAG system | Hybrid Search |
| Enterprise search | Hybrid Search |
| Large knowledge base | Hybrid Search |
| Customer support assistant | Hybrid Search |
Comparison Table
| Feature | Full-Text | Vector | Hybrid |
|---|---|---|---|
| Keyword matching | Excellent | Poor | Excellent |
| Semantic understanding | No | Yes | Yes |
| Finds synonyms | Limited | Excellent | Excellent |
| Natural language queries | Limited | Excellent | Excellent |
| Requires embeddings | No | Yes | Yes |
| Requires vector index | No | Yes | Yes |
| Best for RAG | Fair | Good | Excellent |
| AI chatbot support | Limited | Excellent | Excellent |
| Traditional SQL workloads | Excellent | Moderate | Good |
| Complexity | Low | Medium | Higher |
DP-800 Exam Tips
Remember these key distinctions:
- Full-text search is optimized for exact words and phrases.
- Vector search retrieves semantically similar content using embeddings.
- Hybrid search combines keyword precision with semantic relevance.
- Embeddings are required only for vector and hybrid search.
- Hybrid search is generally the preferred approach for enterprise AI assistants and RAG solutions because it balances precision and recall.
- LIKE queries are not substitutes for full-text indexes in large-scale search applications.
- Expect scenario-based questions asking you to recommend the most appropriate search technology based on application requirements, performance, and user experience.
Practice Exam Questions
Question 1
A development team is building an enterprise knowledge base for an AI chatbot. Users ask questions in natural language, and the chatbot retrieves relevant documents before generating a response.
Which search approach should you recommend?
A. Full-text search only
B. Semantic vector search
C. LIKE queries
D. Indexed views
Correct Answer: B
Explanation:
Semantic vector search uses embeddings to retrieve documents based on meaning rather than exact keywords. This makes it ideal for AI chatbots and Retrieval-Augmented Generation (RAG). LIKE queries and indexed views do not provide semantic understanding, while full-text search is limited to keyword matching.
Question 2
A legal department maintains millions of contracts. Attorneys usually know the exact legal terms they are searching for and require fast, precise keyword matching.
Which search technology is the best fit?
A. Hybrid search
B. Semantic vector search
C. Full-text search
D. Azure AI embeddings only
Correct Answer: C
Explanation:
Full-text search is optimized for exact words, phrases, stemming, ranking, and efficient indexing. Since attorneys typically search using precise terminology, full-text search provides the best balance of performance and accuracy.
Question 3
A company stores product manuals and wants search results to include documents discussing “automobile maintenance” when users search for “car repair.”
Which search capability provides this behavior?
A. SQL LIKE operator
B. Clustered indexes
C. Full-text search only
D. Semantic vector search
Correct Answer: D
Explanation:
Semantic vector search retrieves content based on meaning instead of exact words. Because embedding models understand semantic relationships, they recognize that “car repair” and “automobile maintenance” describe similar concepts.
Question 4
A RAG application must retrieve documents that contain both exact product names and semantically similar troubleshooting articles.
Which search strategy should you recommend?
A. Full-text search
B. LIKE queries
C. Hybrid search
D. Clustered columnstore indexes
Correct Answer: C
Explanation:
Hybrid search combines full-text search with semantic vector search. Exact product names are retrieved through keyword matching, while related troubleshooting content is found using semantic similarity.
Question 5
Which characteristic is unique to semantic vector search?
A. It stores documents in XML format.
B. It searches using vector similarity instead of exact text matching.
C. It requires clustered indexes.
D. It eliminates the need for embeddings.
Correct Answer: B
Explanation:
Semantic vector search converts content into embeddings and compares vectors using similarity metrics such as cosine similarity. It does not rely on exact text matching.
Question 6
Your application must support searches for:
- “running”
- “runs”
- “ran”
using a single search term.
Which technology provides this capability without AI embeddings?
A. Full-text search
B. Azure OpenAI
C. Semantic vector search
D. Azure AI Search only
Correct Answer: A
Explanation:
Full-text search supports stemming and inflectional forms, allowing different grammatical variations of a word to match automatically without requiring embeddings.
Question 7
Which similarity metric is most commonly associated with vector search?
A. SHA-256
B. CRC32
C. Cosine similarity
D. Binary comparison
Correct Answer: C
Explanation:
Cosine similarity is the most widely used metric for measuring how similar two embedding vectors are by comparing the angle between them rather than their magnitude.
Question 8
An organization wants users to receive highly relevant search results even when they misspell keywords or use different terminology.
Which search method generally provides the highest quality results?
A. LIKE queries
B. Full-text search only
C. Hybrid search
D. Primary key lookups
Correct Answer: C
Explanation:
Hybrid search combines keyword matching with semantic understanding, improving recall and relevance by returning both exact matches and conceptually related documents.
Question 9
A database developer asks why embeddings are required for semantic search.
What is the primary purpose of embeddings?
A. Encrypt database rows.
B. Compress database backups.
C. Replace SQL indexes.
D. Represent content numerically so semantic similarity can be calculated.
Correct Answer: D
Explanation:
Embeddings transform text into high-dimensional numerical vectors that capture semantic meaning. Similar vectors represent similar concepts, enabling semantic search.
Question 10
Which scenario is the strongest candidate for using hybrid search instead of only full-text search?
A. Searching employee IDs
B. Retrieving rows by primary key
C. Supporting an AI assistant that answers questions using company documentation
D. Looking up invoice numbers
Correct Answer: C
Explanation:
AI assistants benefit from hybrid search because they require both exact keyword matching and semantic understanding. Hybrid search improves document retrieval quality, which directly improves the quality of RAG-generated responses.
DP-800 Exam Tips
- Full-text search is best for exact keywords, phrases, and language-aware searches using stemming and ranking.
- Semantic vector search retrieves information based on meaning by comparing embeddings with similarity metrics such as cosine similarity.
- Hybrid search combines keyword precision with semantic relevance and is generally the preferred approach for enterprise AI search and RAG solutions.
- Embeddings are required for vector and hybrid search but not for traditional full-text search.
- Expect scenario-based exam questions where you must recommend the most appropriate search technology based on user requirements, data type, query style, and application architecture.
- Remember that LIKE queries are suitable only for simple pattern matching and are not a replacement for full-text or semantic search in large-scale intelligent applications.
Go to the DP-800 Exam Prep Hub main page
