pg.ddx.io pgvector/pgvector GitHub issues and pull requests
help / color / mirror / Atom feed[pgvector/pgvector] issue #674: embedding::vector精度损失
5+ messages / 3 participants
[nested] [flat]
* [pgvector/pgvector] issue #674: embedding::vector精度损失
@ 2024-09-14 06:55 "Onethought1 (@Onethought1)" <noreply+Onethought1@github.com>
0 siblings, 0 replies; 5+ messages in thread
From: Onethought1 (@Onethought1) @ 2024-09-14 06:55 UTC (permalink / raw)
To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>
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}
^ permalink raw [nested|flat] 5+ messages in thread
* Re: [pgvector/pgvector] issue #674: embedding::vector精度损失
@ 2024-09-14 07:01 ` "jkatz (@jkatz)" <noreply+jkatz@github.com>
3 siblings, 0 replies; 5+ messages in thread
From: jkatz (@jkatz) @ 2024-09-14 07:01 UTC (permalink / raw)
To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>
pgvector supports up to 4-byte float precision.
^ permalink raw [nested|flat] 5+ messages in thread
* Re: [pgvector/pgvector] issue #674: embedding::vector精度损失
@ 2024-09-14 07:04 ` "Onethought1 (@Onethought1)" <noreply+Onethought1@github.com>
3 siblings, 0 replies; 5+ messages in thread
From: Onethought1 (@Onethought1) @ 2024-09-14 07:04 UTC (permalink / raw)
To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>
请问一下,可以进行源码修改来使其可以支持全精度吗?
^ permalink raw [nested|flat] 5+ messages in thread
* Re: [pgvector/pgvector] issue #674: embedding::vector精度损失
@ 2024-09-14 15:43 ` "ankane (@ankane)" <noreply+ankane@github.com>
3 siblings, 0 replies; 5+ messages in thread
From: ankane (@ankane) @ 2024-09-14 15:43 UTC (permalink / raw)
To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>
You could fork and add, but it's not something I'd like to include in the project (most users don't need this).
^ permalink raw [nested|flat] 5+ messages in thread
* Re: [pgvector/pgvector] issue #674: embedding::vector精度损失
@ 2024-09-14 15:43 ` "ankane (@ankane)" <noreply+ankane@github.com>
3 siblings, 0 replies; 5+ messages in thread
From: ankane (@ankane) @ 2024-09-14 15:43 UTC (permalink / raw)
To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>
@ankane closed this.
^ permalink raw [nested|flat] 5+ messages in thread
end of thread, other threads:[~2024-09-14 15:43 UTC | newest]
Thread overview: 5+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2024-09-14 06:55 [pgvector/pgvector] issue #674: embedding::vector精度损失 "Onethought1 (@Onethought1)" <noreply+Onethought1@github.com>
2024-09-14 07:01 ` "jkatz (@jkatz)" <noreply+jkatz@github.com>
2024-09-14 07:04 ` "Onethought1 (@Onethought1)" <noreply+Onethought1@github.com>
2024-09-14 15:43 ` "ankane (@ankane)" <noreply+ankane@github.com>
2024-09-14 15:43 ` "ankane (@ankane)" <noreply+ankane@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