pg.ddx.io pgvector/pgvector GitHub issues and pull requestshelp / color / mirror / Atom feed
[pgvector/pgvector] issue #540: ERROR: operator class "vector_cosine_ops" does not accept data type sparsevec. on pgvector/pgvector:0.7.0-pg16 6+ messages / 3 participants [nested] [flat]
* [pgvector/pgvector] issue #540: ERROR: operator class "vector_cosine_ops" does not accept data type sparsevec. on pgvector/pgvector:0.7.0-pg16 @ 2024-05-02 15:35 "cho-thinkfree-com (@cho-thinkfree-com)" <noreply+cho-thinkfree-com@github.com> 0 siblings, 0 replies; 6+ messages in thread From: cho-thinkfree-com (@cho-thinkfree-com) @ 2024-05-02 15:35 UTC (permalink / raw) To: pgvector/pgvector <noreply+pgvector-pgvector@github.com> I am using the Docker image `pgvector/pgvector:0.7.0-pg16`. Here are my SQL statements. ``` CREATE TABLE items (id bigserial PRIMARY KEY, embedding sparsevec(3)); create index idx_items_emb on items using hnsw ( embedding vector_cosine_ops ); ``` I received an error message as shown below. ``` [2024-05-03 00:25:57] [42804] ERROR: operator class "vector_cosine_ops" does not accept data type sparsevec ``` The `README` file explains that the `HNSW` indexing method can also be used with `sparsevec`. Could someone help me? ^ permalink raw [nested|flat] 6+ messages in thread
* Re: [pgvector/pgvector] issue #540: ERROR: operator class "vector_cosine_ops" does not accept data type sparsevec. on pgvector/pgvector:0.7.0-pg16 @ 2024-05-02 15:40 "ankane (@ankane)" <noreply+ankane@github.com> 4 siblings, 0 replies; 6+ messages in thread From: ankane (@ankane) @ 2024-05-02 15:40 UTC (permalink / raw) To: pgvector/pgvector <noreply+pgvector-pgvector@github.com> Hi @cho-thinkfree-com, will improve the docs, but for sparsevec, use `sparsevec_cosine_ops`. ^ permalink raw [nested|flat] 6+ messages in thread
* Re: [pgvector/pgvector] issue #540: ERROR: operator class "vector_cosine_ops" does not accept data type sparsevec. on pgvector/pgvector:0.7.0-pg16 @ 2024-05-02 17:08 "cho-thinkfree-com (@cho-thinkfree-com)" <noreply+cho-thinkfree-com@github.com> 4 siblings, 0 replies; 6+ messages in thread From: cho-thinkfree-com (@cho-thinkfree-com) @ 2024-05-02 17:08 UTC (permalink / raw) To: pgvector/pgvector <noreply+pgvector-pgvector@github.com> As you suggested, I applied it and it worked well. Thank you very much for your prompt reply. :-) I was using the sparse vector feature in `paradedb`. I am very pleased that the sparse vector has been implemented in `pgvector`. Thank you for leading such a great project. ^ permalink raw [nested|flat] 6+ messages in thread
* Re: [pgvector/pgvector] issue #540: ERROR: operator class "vector_cosine_ops" does not accept data type sparsevec. on pgvector/pgvector:0.7.0-pg16 @ 2024-05-08 17:41 "ankane (@ankane)" <noreply+ankane@github.com> 4 siblings, 0 replies; 6+ messages in thread From: ankane (@ankane) @ 2024-05-08 17:41 UTC (permalink / raw) To: pgvector/pgvector <noreply+pgvector-pgvector@github.com> @ankane closed this. ^ permalink raw [nested|flat] 6+ messages in thread
* Re: [pgvector/pgvector] issue #540: ERROR: operator class "vector_cosine_ops" does not accept data type sparsevec. on pgvector/pgvector:0.7.0-pg16 @ 2024-05-08 17:45 "ankane (@ankane)" <noreply+ankane@github.com> 4 siblings, 0 replies; 6+ messages in thread From: ankane (@ankane) @ 2024-05-08 17:45 UTC (permalink / raw) To: pgvector/pgvector <noreply+pgvector-pgvector@github.com> Thanks @cho-thinkfree-com! Added to the docs in the commit above. ^ permalink raw [nested|flat] 6+ messages in thread
* Re: [pgvector/pgvector] issue #540: ERROR: operator class "vector_cosine_ops" does not accept data type sparsevec. on pgvector/pgvector:0.7.0-pg16 @ 2024-11-05 14:02 "noahhai (@noahhai)" <noreply+noahhai@github.com> 4 siblings, 0 replies; 6+ messages in thread From: noahhai (@noahhai) @ 2024-11-05 14:02 UTC (permalink / raw) To: pgvector/pgvector <noreply+pgvector-pgvector@github.com> @cho-thinkfree-com also using it - thanks!! ^ permalink raw [nested|flat] 6+ messages in thread
end of thread, other threads:[~2024-11-05 14:02 UTC | newest] Thread overview: 6+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2024-05-02 15:35 [pgvector/pgvector] issue #540: ERROR: operator class "vector_cosine_ops" does not accept data type sparsevec. on pgvector/pgvector:0.7.0-pg16 "cho-thinkfree-com (@cho-thinkfree-com)" <noreply+cho-thinkfree-com@github.com> 2024-05-02 15:40 ` "ankane (@ankane)" <noreply+ankane@github.com> 2024-05-02 17:08 ` "cho-thinkfree-com (@cho-thinkfree-com)" <noreply+cho-thinkfree-com@github.com> 2024-05-08 17:41 ` "ankane (@ankane)" <noreply+ankane@github.com> 2024-05-08 17:45 ` "ankane (@ankane)" <noreply+ankane@github.com> 2024-11-05 14:02 ` "noahhai (@noahhai)" <noreply+noahhai@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