server : do not normalize embeddings when there is no pooling
ggml-ci
This commit is contained in:
parent
1b18b2d7b0
commit
e65556f174
1 changed files with 4 additions and 0 deletions
|
@ -92,6 +92,10 @@ def test_embedding_pooling_none():
|
|||
for x in res.body[0]['embedding']:
|
||||
assert abs(sum([x ** 2 for x in x]) - 1) > EPSILON
|
||||
|
||||
# make sure embedding vector is not normalized
|
||||
for x in res.body[0]['embedding']:
|
||||
assert abs(sum([x ** 2 for x in x]) - 1) > EPSILON
|
||||
|
||||
|
||||
def test_embedding_pooling_none_oai():
|
||||
global server
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue