Skip to content

[BUG] Invalid space type value "cosine" in the pre-trained dense models #4166

@bzhangam

Description

@bzhangam

What is the bug?
Cannot create the index with the semantic field with the pre-trained dense model whose space_type is "cosine". The right value should be "cosinesimil".

How can one reproduce the bug?
Use the pre-trained model huggingface/sentence-transformers/paraphrase-mpnet-base-v2 to set up the semantic field then will run into "Invalid space_type: cosine".

What is the expected behavior?
Should update the space_type to "cosinesimil" so that we can create the index with the semantic field.

What is your host/environment?
OS 3.2

Do you have any screenshots?
N/A

Do you have any additional context?
Add any other context about the problem.

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions