Skip to content

Commit

Permalink
Merge pull request #52 from Meg528/patch-25
Browse files Browse the repository at this point in the history
Update 1-semantic-search.mdx
  • Loading branch information
sis0k0 authored Sep 18, 2024
2 parents 4737cea + 4c4afcc commit 0289a73
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/7-vector-search/1-semantic-search.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@ We can't have a technical event without talking about AI, ML, and LLMs these day

Semantic search is a search technique that uses the meaning of words to find relevant results. It's what powers large language models that we see nowadays.

Using semantic search, we can find relevant results even if the search terms don't appear in the results. For example, if we search for "How to make a cake", we can find results that contain the words "How to bake a cake" or "How to make a pie".
Using semantic search, we can find relevant results even if the search terms don't appear in the results. For example, if we search for "How to make a cake," we can find results that contain the words "How to bake a cake" or "How to make a pie."

This is done with vectors. Vectors are mathematical representations of words. They are used to find the similarity between words. For example, the word "cake" is similar to the word "pie" because they are both desserts.

## How to create a semantic search engine

In our library application, let's change how our search bar works. Let's try to change the search bar behavior to find books based on their meaning, not just the words themselves.

This will help us find books such as "The Stand" when searching for "plague apocalypse".
This will help us find books such as "The Stand" when searching for "plague apocalypse."

Even if those words don't appear in the book title or description, we want to be able to find them.

Expand All @@ -24,4 +24,4 @@ You could use something similar to provide your customers with items that are si

With its document model, MongoDB is a great fit for storing vectors. You can store vectors as arrays of numbers in a document.

When time comes to search for the relevant results, we can leverage the power of Lucene, just like we did for the full-text search.
When the time comes to search for the relevant results, we can leverage the power of Lucene, just like we did for the full-text search.

0 comments on commit 0289a73

Please sign in to comment.