Meet YOLO26: next-gen vision AI.
Ultralytics
Back to Ultralytics Glossary

Semantic Search

Explore how semantic search uses AI and embeddings to understand user intent. Learn to build visual search systems with Ultralytics YOLO26 and our Platform.

Semantic search is a sophisticated information retrieval technique that aims to understand the intent and contextual meaning of a user's query rather than simply matching specific words. By leveraging advancements in Natural Language Processing (NLP) and Machine Learning (ML), this technology enables systems to interpret human language with greater nuance. It is a cornerstone of modern Artificial Intelligence (AI) applications, allowing for more intuitive interactions between humans and machines by bridging the gap between ambiguous user queries and relevant data.

Link to this sectionHow Semantic Search Works#

At its core, semantic search moves beyond literal character matching to analyze the relationship between concepts. Traditional search engines might fail if a user searches for "feline" but the documents only contain the word "cat." Semantic search solves this by transforming unstructured data—such as text, images, or audio—into mathematical representations called embeddings.

These embeddings are high-dimensional vectors placed in a "semantic space." In this space, items with similar meanings are positioned close to one another. For example, the vector for "car" would be mathematically closer to "automobile" and "road" than to "banana." When a user submits a query, the system converts that query into a vector and finds the nearest data points in the vector database. This process relies on deep learning models to perform feature extraction, identifying the essential characteristics of the data.

The following Python code demonstrates how to generate these embeddings using the Ultralytics YOLO26 model, which is the foundational step for enabling visual semantic search.

from ultralytics import YOLO

# Load a pre-trained YOLO26 classification model
model = YOLO("yolo26n-cls.pt")

# Generate feature embeddings for an image
# This converts the visual content into a numerical vector
results = model.embed("https://ultralytics.com/images/bus.jpg")

# Output the shape of the embedding vector (e.g., length 1280)
print(f"Embedding vector shape: {results[0].shape}")

Link to this sectionReal-World Applications#

Semantic search has revolutionized how users discover information across various sectors, making systems smarter and more efficient.

  • E-Commerce and Visual Discovery: In the world of AI in retail, semantic search powers "shop the look" features. A customer might upload a photo of a sneaker or search for "vintage summer vibes." The system uses computer vision to understand the visual style and retrieves products that match the aesthetic, even if the product descriptions don't contain those exact keywords. This often involves Multi-Modal Models that can understand both text and image inputs.
  • Knowledge Management and RAG: Large organizations use semantic search to help employees find internal documents. Instead of remembering exact filenames, an employee can ask a question like "How do I reset the server?" The system uses Retrieval-Augmented Generation (RAG) to find the most relevant policy documents based on meaning and feeds them into a Large Language Model (LLM) to generate a precise answer.
  • Content Recommendation: Streaming platforms utilize semantic understanding to improve their recommendation system. By analyzing the plot summaries and visual feature maps of movies a user enjoys, the platform can suggest other titles that share similar themes or moods, keeping users engaged longer.

To fully grasp the utility of semantic search, it is helpful to distinguish it from related terms in the data science landscape.

  • Vector Search: While often used interchangeably, there is a technical distinction. Vector search is the mathematical method of calculating the distance between vectors (often using cosine similarity). Semantic search is the broader application that uses vector search to achieve the goal of understanding user intent.
  • Keyword Search: This is the traditional method relying on exact string matching. It is computationally cheaper but brittle; it struggles with synonyms and polysemy (words with multiple meanings). Semantic search requires more computational power but delivers significantly higher relevance.
  • Zero-Shot Learning: This refers to a model's ability to classify data it has never seen during training. Semantic search engines often exhibit zero-shot capabilities because they can map a new, unseen query to existing clusters of known concepts within the embedding space without retraining.

Implementing semantic search typically requires a robust pipeline for managing datasets and model training. The Ultralytics Platform simplifies this by providing tools to annotate data, train models, and deploy them efficiently. For developers looking to build these systems, exploring the Ultralytics similarity search guide provides practical steps for integrating these powerful capabilities into applications.

Explore solutions

Real-time AI that works with your team

AI in Robotics

Power smarter machines with Ultralytics YOLO models. Vision AI in robotics drives autonomous navigation, perception, object tracking, and real-time control.
Learn more
Real-time AI that works with your team

AI in Logistics

Streamline logistics with Ultralytics YOLO models. Vision AI enables package inspection, sorting, vehicle tracking, and real-time warehouse safety monitoring.
Learn more
Real-time AI that works with your team

AI in Retail

Reimagine retail with Ultralytics YOLO models. Vision AI powers inventory tracking, shelf monitoring, queue management, and smarter customer insights.
Learn more
Real-time AI that works with your team

AI in Healthcare

Build healthcare solutions with Ultralytics YOLO models. Vision AI in healthcare powers faster medical imaging, smarter diagnostics, and patient monitoring.
Learn more
Real-time AI that works with your team

AI in Manufacturing

Optimize manufacturing with Ultralytics YOLO models. Vision AI drives quality control, defect detection, PPE compliance, and assembly line automation.
Learn more
Real-time AI that works with your operation

AI in Automotive

Apply computer vision in automotive with Ultralytics YOLO models. Vision AI elevates road safety, driver assistance, and vehicle automation for smarter roads.
Learn more
Real-time AI tailored to your operation

AI in Agriculture

Bring vision AI to smart agriculture with Ultralytics YOLO models. Power crop monitoring, livestock tracking, and precision farming for higher, smarter yields.
Learn more
Real-time AI that works with your team

AI in Robotics

Power smarter machines with Ultralytics YOLO models. Vision AI in robotics drives autonomous navigation, perception, object tracking, and real-time control.
Learn more
Real-time AI that works with your team

AI in Logistics

Streamline logistics with Ultralytics YOLO models. Vision AI enables package inspection, sorting, vehicle tracking, and real-time warehouse safety monitoring.
Learn more
Real-time AI that works with your team

AI in Retail

Reimagine retail with Ultralytics YOLO models. Vision AI powers inventory tracking, shelf monitoring, queue management, and smarter customer insights.
Learn more
Real-time AI that works with your team

AI in Healthcare

Build healthcare solutions with Ultralytics YOLO models. Vision AI in healthcare powers faster medical imaging, smarter diagnostics, and patient monitoring.
Learn more
Real-time AI that works with your team

AI in Manufacturing

Optimize manufacturing with Ultralytics YOLO models. Vision AI drives quality control, defect detection, PPE compliance, and assembly line automation.
Learn more
Real-time AI that works with your operation

AI in Automotive

Apply computer vision in automotive with Ultralytics YOLO models. Vision AI elevates road safety, driver assistance, and vehicle automation for smarter roads.
Learn more
Real-time AI tailored to your operation

AI in Agriculture

Bring vision AI to smart agriculture with Ultralytics YOLO models. Power crop monitoring, livestock tracking, and precision farming for higher, smarter yields.
Learn more
Real-time AI that works with your team

AI in Robotics

Power smarter machines with Ultralytics YOLO models. Vision AI in robotics drives autonomous navigation, perception, object tracking, and real-time control.
Learn more
Real-time AI that works with your team

AI in Logistics

Streamline logistics with Ultralytics YOLO models. Vision AI enables package inspection, sorting, vehicle tracking, and real-time warehouse safety monitoring.
Learn more
Real-time AI that works with your team

AI in Retail

Reimagine retail with Ultralytics YOLO models. Vision AI powers inventory tracking, shelf monitoring, queue management, and smarter customer insights.
Learn more
Real-time AI that works with your team

AI in Healthcare

Build healthcare solutions with Ultralytics YOLO models. Vision AI in healthcare powers faster medical imaging, smarter diagnostics, and patient monitoring.
Learn more
Real-time AI that works with your team

AI in Manufacturing

Optimize manufacturing with Ultralytics YOLO models. Vision AI drives quality control, defect detection, PPE compliance, and assembly line automation.
Learn more
Real-time AI that works with your operation

AI in Automotive

Apply computer vision in automotive with Ultralytics YOLO models. Vision AI elevates road safety, driver assistance, and vehicle automation for smarter roads.
Learn more
Real-time AI tailored to your operation

AI in Agriculture

Bring vision AI to smart agriculture with Ultralytics YOLO models. Power crop monitoring, livestock tracking, and precision farming for higher, smarter yields.
Learn more

Let's build the future of AI together!

Begin your journey with the future of machine learning