Skip to content

Advanced Search Plugin: Semantic Search #35

@toBeOfUse

Description

@toBeOfUse

Typesense has had good support for retrieving and storing vector embeddings for documents for a while, which enables semantic search on them. This enables a use case where customers can be shown products related to their search, even if there is no textual match from their search query. For example, if a customer searches for "apples", a semantic search can be used which will also match related things, like oranges and pears. This is particularly useful if there are no (or very few) results for a search; embeddings can be used to get some kind of product to suggest, even if you don't have exactly what they were looking for.

To enable this, a new field can be added to the Typesense schema. They give a great example of this in their docs. Then, queries can be made using "query_by": "embedding" to match on that field.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions