pg.ddx.io  pgvector/pgvector GitHub issues and pull requests  
help / color / mirror / Atom feed
From: Onethought1 (@Onethought1) <noreply+Onethought1@github.com>
To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>
Subject: [pgvector/pgvector] issue #674: embedding::vector精度损失
Date: Sat, 14 Sep 2024 06:55:02 +0000
Message-ID: <gh-pgvector-pgvector-674@github.com> (raw)

HI,之前的问题,确实是服务器显示的问题,感谢您的解答,可是我又遇到了其他的问题:
SELECT * FROM embeddings WHERE model_id = 123 ORDER BY embedding::vector(3) <-> '[3,1,2]' LIMIT 5;
向量匹配的时候需要进行embedding::vector(3) 向量格式的转化,而经过向量格式转化,我的全精度内容,又变成了半精度内容,甚至连数据都变了之前是四舍五入,请问一下,这个该如何解决呢?
部分内容示例:
{0.01619569957256317,0.01705833524465561,-0.011137214489281178}
{0.016189575,0.017059326,-0.011138916}

view thread (5+ messages)  latest in thread

Message-ID: <gh-pgvector-pgvector-674@github.com>
Permalink:  ../gh-pgvector-pgvector-674@github.com/

 · 


This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox