我应该使用什么 JPA + Hibernate 数据类型来支持 PostgreSQL 数据库中的向量扩展,以便它允许我使用 JPA 实体创建嵌入?
CREATE TABLE items (id bigserial PRIMARY KEY, embedding vector(3));
Run Code Online (Sandbox Code Playgroud)
我正在尝试对 pg-vector 进行 dockerize,我从官方存储库中找到了这个 Dockerfile。 https://github.com/pgvector/pgvector/blob/master/Dockerfile#L2C1-L3C1
Dockerfile 目前使用 postgres 基础映像,我想知道是否可以在 alpine 映像之上添加 pgvector 扩展。如果没有,还有哪些其他可能的选择?
我正在尝试使用 PostgreSQL 作为矢量数据库。同样,我使用此处提供的说明将 PostgreSQL 安装到我的 Windows 系统中。
\n为了安装 pgvector,我按照本页中给出的说明进行操作。
\n我正在尝试在使用 Windows Server 2016 操作系统的远程计算机中完成此设置。\nPostgreSQL 版本:15.3
\n我无法成功安装 pgvector 扩展。\n运行该nmake /F Makefile.win命令时,出现以下错误:
\n\n\n致命错误 C1083: 无法打开包含文件 \xe2\x80\x98crtdefs.h\xe2\x80\x99: 没有这样的文件或目录
\n
我也尝试使用conda安装。\n命令:conda install -c conda-forge pgvector\n使用conda安装后创建矢量扩展时出现的错误如下:
\n
编辑 1: \n根据以下问题更新帖子。
\n\n\n文件 crtdefs.h 在您的系统上在哪里?(可能有多个。)调用 cl.exe 时 INCLUDE 环境变量的值是多少?
\n
crtdefs.h 文件位置:C:\\Program Files (x86)\\Microsoft Visual Studio\\2022\\BuildTools\\VC\\Tools\\MSVC\\14.36.32532\\include
\n早些时候我没有添加 INCLUDE 环境变量。现在,我根据某些类似的错误(无法打开 include/lib 文件)添加了 INCLUDE 和 LIB 环境变量。我必须分别添加来自 Microsoft Visual studio 和 Windows …
pgvector ×3
postgresql ×3
alpine-linux ×1
docker ×1
dockerfile ×1
hibernate ×1
jpa ×1
nmake ×1