Text Search | Clarifai Docs

Use vector search to sort, rank, and retrieve texts


Smart Text Search is our proprietary feature that uses deep learning techniques to sort, rank, and retrieve text data based on their content and semantic similarity.

It goes beyond traditional text search methods that rely solely on exact keyword matching and incorporates advanced techniques like text embeddings and vector search.

Here's how our Smart Text Search feature works:

Let’s demonstrate how you can carry out different types of Smart Text Searches.

Start by going to your app and selecting the Inputs option in the collapsible left sidebar. You’ll be redirected to the Input-Manager page, where you can see the text inputs available on your app.

You can then perform various text search actions on them.

Tip: To perform text searches successfully, you should choose a workflow that includes a text embedder and a clusterer, such as the Text workflow, as the base workflow for your application.

Smart Text Search by Semantic Similarity

This feature is also called Semantic Search. It allows you to rank, sort, and retrieve texts based on their semantic similarity to a provided query text.

If you hover over the text you want to use to perform the semantic similarity search, some icons will appear on the left side of the text. Click the magnifying glass icon.

The text you selected will be added to the inputs search bar and your search results will be displayed in a ranking fashion—from the most semantically similar to the least semantically similar.

Smart Text Search by Predicted Concept

You can rank, sort, and retrieve texts based on the concepts predicted by AI models. Just provide a query concept and the most relevant matches associated with that concept will be displayed.

Go to the inputs search bar and start typing the concept you want to search for.

You’ll notice that a small drop-down list will appear having the concepts you’ve trained with your model as well as the concepts present in the base workflow of your app. Your model’s concepts will appear first in the list.

Choose the concept you want to search for, and your results will be displayed on the page. The search results will be ranked based on the inputs with the highest predicted values for the given concept.

Build your next AI app, test and tune popular LLMs models, and much more.