Skip to content

feat: can disable typesense prefix#931

Merged
taylorotwell merged 1 commit into
laravel:10.xfrom
Barbapapazes:feat/disable-prefix
Jul 20, 2025
Merged

feat: can disable typesense prefix#931
taylorotwell merged 1 commit into
laravel:10.xfrom
Barbapapazes:feat/disable-prefix

Conversation

@Barbapapazes

Copy link
Copy Markdown
Contributor

Hello 👋,

Typesense offers semantic search capabilities using embeddings. However, the prefix search option is not compatible with vector (embedding-based) search. This PR enables users to set the prefix option to false when performing a vector search.

Relevant documentation: https://typesense.org/docs/29.0/api/search.html#query-parameters:~:text=Indicates%20that%20the,for%20all%20fields).

Current error when using vector search with prefix set to true:

Prefix search is not supported for remote embedders. Please set `prefix=false` as an additional search parameter to disable prefix searching.

@tharropoulos tharropoulos left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can't directly approve of changes here, but it looks right

@Barbapapazes

Copy link
Copy Markdown
Contributor Author

I was wondering why the parameters array couldn't be merged with the one in the configuration to avoid to add manually every parameters from typesense while being future proof?

@taylorotwell taylorotwell merged commit 2d9f852 into laravel:10.x Jul 20, 2025
22 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants