diff --git a/content/docs-lite/zh/docs/DataVec/DataVec-integrations.md b/content/docs-lite/zh/docs/DataVec/DataVec-integrations.md index 4da53f3e118cb8e9a3e507e4bb5f28e06ccec7b9..ba4eac43631e4b74ccdf532525dc250fc31b5aff 100644 --- a/content/docs-lite/zh/docs/DataVec/DataVec-integrations.md +++ b/content/docs-lite/zh/docs/DataVec/DataVec-integrations.md @@ -6,15 +6,15 @@ openGauss DataVec提供多种第三方组件的集成教程,并通过多语言 - [Dify](dify.md) - [AnythingLLM](anythingllm.md) -## 向量数据迁移 -- [从Milvus迁移至openGauss DataVec](milvus2datavec.md) -- 从Pgvector迁移至openGauss DataVec -- 从ElasticSearch迁移至openGauss DataVec - ## 嵌入模型 - [BGE-M3](embedding-bgem3.md) - [Nomic-Embed-Text](embedding-nomic.md) +## 数据迁移 +- [从Milvus迁移至openGauss DataVec](milvus2datavec.md) +- 从PgVector迁移至openGauss DataVec +- 从ElasticSearch迁移至openGauss DataVec + ## API Reference - [Python](integrationPython.md) - [Java](integrationJava.md) diff --git "a/content/docs-lite/zh/docs/SQLReference/\350\236\215\345\220\210\346\237\245\350\257\242\344\275\277\347\224\250\346\214\207\345\215\227.md" "b/content/docs-lite/zh/docs/SQLReference/\350\236\215\345\220\210\346\237\245\350\257\242\344\275\277\347\224\250\346\214\207\345\215\227.md" index fa609c9a6159c5343554131c21e50984e1034d9f..4812430e628f43bcad6065f8bd15b6df24fb6bc9 100644 --- "a/content/docs-lite/zh/docs/SQLReference/\350\236\215\345\220\210\346\237\245\350\257\242\344\275\277\347\224\250\346\214\207\345\215\227.md" +++ "b/content/docs-lite/zh/docs/SQLReference/\350\236\215\345\220\210\346\237\245\350\257\242\344\275\277\347\224\250\346\214\207\345\215\227.md" @@ -2,125 +2,7 @@ 本章节主要介绍openGauss中DataVec向量引擎的融合查询使用指导。 ## 1. 安装部署 -使用Docker实现openGauss搭载DataVec的容器化部署,简化DevOps用户的安装、配置和环境设置。 - -### 容器架构和操作系统版本支持 - -opengauss-datavec 镜像支持以下架构和操作系统版本: - -- **x86-64 openEuler 20.03 LTS**: -```bash -$ docker pull swr.cn-north-4.myhuaweicloud.com/opengauss-x86-64/opengauss-datavec:latest -``` - -- **ARM64 openEuler 20.03 LTS**: -```bash -$ docker pull swr.cn-north-4.myhuaweicloud.com/opengauss-aarch64/opengauss-datavec:latest -``` - -### 验证镜像状态 -成功拉取镜像后,查看镜像状态: -```bash -$ docker images -``` - -输出示例: -``` -REPOSITORY TAG IMAGE ID CREATED SIZE -swr.cn-north-4.myhuaweicloud.com/opengauss-aarch64/opengauss-datavec latest 5be9d4f1ca12 2 hours ago 1.02GB -``` - -### 修改镜像名称 -使用`docker tag`命令更改镜像名称或标签: -```bash -$ docker tag swr.cn-north-4.myhuaweicloud.com/opengauss-aarch64/opengauss-datavec:latest opengauss-datavec:latest -``` - -### 启动实例 -以`openGauss-datavec latest` 版本为例,以下命令将启动数据库并映射宿主机的端口到容器: -```bash -$ docker run --name opengauss --privileged=true -d -e GS_PASSWORD=YourPassoword -p 8888:5432 opengauss-datavec:latest -``` - -#### 启动参数 -- `--name opengauss`:为容器命名为`opengauss` -- `--privileged=true`: 授予容器特权模式 -- `-d`: 以后台模式运行容器 -- `-p 8888:5432`: 将容器的5432端口映射到宿主机的8888端口 - -##### 必选容器内环境变量 -- `-e GS_PASSWORD=YourPassoword`:设置数据库超级用户`omm`密码 - -使用 openGauss 镜像的时候,必须设置该参数,且不能为空或未定义。该参数用于设置 openGauss 数据库的超级用户`omm`。安装过程中将默认创建omm超级用户,该用户名目前无法更改。 - -openGauss 镜像配置了本地信任机制,因此在容器内连接数据库时无需密码,但若从容器外部(其它主机或者容器)连接,则必须要输入密码。 - -###### **密码要求** - -- 密码长度必须至少为8个字符。 -- 必须同时包含大写字母、小写字母、数字、以及特殊符号。 -- 支持的特殊符号仅包含`\#?!@$%^&\*-`(其中`!$&`需使用转义符号”\“)。 - -##### 可选容器内环境变量 -- `-e GS_NODENAME=YourNodeName`:指定数据库节点名称,默认为`gaussdb` -- `-e GS_USERNAME=YourUserName`:指定数据库连接用户名,默认为测试用户`gaussdb` -- `-e GS_USER_PASSWORD=YourUserPassword`:指定用户`$GS_USERNAME`密码,默认为`$GS_PASSWORD` -- `-e GS_PORT=YourPort`:指定容器内数据库端口,默认为`5432` -- `-e GS_DB=YourDbName`:在容器内创建数据库,默认为`postgres` - -### 验证容器状态 -查看运行中的容器: -```bash -$ docker ps -``` -输出示例: -``` -CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES -7abc538f242a opengauss-datavec:latest "entrypoint.sh gauss…" About a minute ago Up About a minute 0.0.0.0:8888->5432/tcp opengauss -``` - -### 连接数据库 - -#### 容器内部连接数据库 - -进入容器: -``` -$ docker exec -it bash -``` - -登录`omm`超级用户: -``` -$ su omm -$ gsql -d postgres -p 5432 -``` - -#### 从宿主机连接数据库 - -宿主机可以通过以下命令连接数据库(需安装`gsql`客户端): -```shell -$ gsql -d postgres -U gaussdb -W YourPassoword -h your-host-ip -p 8888 -``` - -### 数据持久化 - -通过以下命令,将宿主机的`/opengauss`目录挂载到容器的`/var/lib/opengauss`目录,实现数据的持久化存储: -```bash -$ docker run --name opengauss --privileged=true -d -e GS_PASSWORD=YourPassoword -v /opengauss:/var/lib/opengauss opengauss-datavec:latest -``` - -### 参数配置 -容器内的配置文件路径: -``` -/var/lib/opengauss/data/postgresql.conf -``` - -修改完配置文件后,请使用以下命令重启容器以使更改生效: -```bash -docker restart -``` -若在容器外配置参数,需要挂载宿主机路径到容器内部的`/var/lib/opengauss`目录。 - -有关具体参数的修改,请参考 **[GUC参数说明](../DatabaseReference/GUC参数说明.md)** +使用Docker实现openGauss搭载DataVec的容器化部署,简化DevOps用户的安装、配置和环境设置,参考 [容器镜像安装](../InstallationGuide/容器镜像安装.md)。 ## 2. 融合查询 数据源类型通常是多样化的,包含结构化数据(如文本、数字等)和非结构化数据(如视频、图片、音频等)。为了有效存储和检索不同类型的数据,融合查询结合了结构化过滤和非结构化检索的技术,使用户在同一查询中使用不同的数据类型和查询方法,以获取更为精确的非结构化数据。openGauss集成了结构化数据和非结构化数据融合查询的能力。 diff --git a/content/docs-lite/zh/menu/index.md b/content/docs-lite/zh/menu/index.md index de2fc08ce2f42f64c6a059e72ce68e02b1dd2c9e..7a67768245c0ee6c624b246344fb2b70b2922889 100644 --- a/content/docs-lite/zh/menu/index.md +++ b/content/docs-lite/zh/menu/index.md @@ -162,7 +162,7 @@ headless: true - [使用openGauss]({{< relref "./docs/GettingStarted/使用openGauss.md" >}}) - [安装指南]({{< relref "./docs/InstallationGuide/Installation.md" >}}) - [安装概述]({{< relref "./docs/InstallationGuide/安装概述.md" >}}) - - [向量数据库容器镜像安装]({{< relref "./docs/InstallationGuide/容器镜像安装.md" >}}) + - [容器镜像安装]({{< relref "./docs/InstallationGuide/容器镜像安装.md" >}}) - [安装准备]({{< relref "./docs/InstallationGuide/安装准备.md" >}}) - [获取安装包]({{< relref "./docs/InstallationGuide/获取安装包.md" >}}) - [准备软硬件安装环境]({{< relref "./docs/InstallationGuide/准备软硬件安装环境.md" >}}) @@ -628,12 +628,19 @@ headless: true - [向量存储引擎]({{< relref "./docs/DataVec/DataVec-architecture.md" >}}) - [PQ]({{< relref "./docs/DataVec/PQ.md" >}}) - [工具编排使用]({{< relref "./docs/DataVec/DataVec-integrations.md" >}}) - - [使用openGauss部署Dify]({{< relref "./docs/DataVec/dify.md" >}}) - - [使用openGauss部署AnythingLLM]({{< relref "./docs/DataVec/anythingllm.md" >}}) - - [从Milvus迁移至openGauss DataVec]({{< relref "./docs/DataVec/milvus2datavec.md" >}}) - - [Python SDK对接向量数据库]({{< relref "./docs/DataVec/integrationPython.md" >}}) - - [Java SDK对接向量数据库]({{< relref "./docs/DataVec/integrationJava.md" >}}) - - [Go SDK对接向量数据库]({{< relref "./docs/DataVec/integrationGo.md" >}}) + - [编排组件] + - [Dify]({{< relref "./docs/DataVec/dify.md" >}}) + - [AnythingLLM]({{< relref "./docs/DataVec/anythingllm.md" >}}) + - [嵌入模型] + - [BGE-M3]({{< relref "./docs/DataVec/embedding-bgem3.md" >}}) + - [Nomic]({{< relref "./docs/DataVec/embedding-nomic.md" >}}) + - [数据迁移] + - [从Milvus迁移至openGauss DataVec]({{< relref "./docs/DataVec/milvus2datavec.md" >}}) + - [API Reference]({{< relref "./docs/DataVec/integrationGo.md" >}}) + - [Python SDK]({{< relref "./docs/DataVec/integrationPython.md" >}}) + - [Java SDK]({{< relref "./docs/DataVec/integrationJava.md" >}}) + - [Node.js SDK]({{< relref "./docs/DataVec/integrationJavaScript.md" >}}) + - [Go SDK]({{< relref "./docs/DataVec/integrationGo.md" >}}) - [教程案例指导]({{< relref "./docs/DataVec/DataVec-tutorials.md" >}}) - [打破AI黑盒,拥抱开源力量:基于openGauss+DeepSeek的本地知识库,打造你的专属AI助手!]({{< relref "./docs/DataVec/openGauss-RAG实践.md" >}}) - [openGauss Datavec + Dify,快速搭建你的智能助手平台]({{< relref "./docs/DataVec/openGauss-Dify.md" >}}) diff --git a/content/zh/docs/DataVec/DataVec-Overview.md b/content/zh/docs/DataVec/DataVec-Overview.md index ed685312a0f4d8b70742a10d362bfde219ae0d31..9cf43cdd83721c984ed0819d2ff3f49f6e1ee094 100644 --- a/content/zh/docs/DataVec/DataVec-Overview.md +++ b/content/zh/docs/DataVec/DataVec-Overview.md @@ -4,7 +4,7 @@ openGauss DataVec 向量数据库是一个基于openGauss的向量引擎, 提 DataVec目前支持的向量功能有:精确和近似的最近邻搜索、L2距离&余弦距离&内积、向量索引、向量操作函数和操作符。作为openGauss的内核特性,DataVec使用熟悉的SQL语法操作向量,简化了用户使用向量数据库的过程。 ## 快速部署指南 -DataVec向量数据库可通过[容器镜像安装](../InstallationGuide/容器镜像安装.md)快速部署,并快速对接大模型,打造本地RAG智能问答服务。 +DataVec向量数据库可通过[容器镜像安装](../../../docs-lite/zh/docs/InstallationGuide/容器镜像安装.md)快速部署,并快速对接大模型,打造本地RAG智能问答服务。 ## 特性描述 diff --git a/content/zh/docs/DataVec/DataVec-integrations.md b/content/zh/docs/DataVec/DataVec-integrations.md index abe23f3bc16d45b132962cce1723f08186c9458c..8d5786adcd82ef1c0e8bff363dc704f5b76c42f3 100644 --- a/content/zh/docs/DataVec/DataVec-integrations.md +++ b/content/zh/docs/DataVec/DataVec-integrations.md @@ -4,17 +4,17 @@ openGauss DataVec提供多种第三方组件的集成教程,并通过多语言 ## 编排第三方组件 - [Dify](dify.md) -- [AnythingLLM](./anythingllm.md) - -## 向量数据迁移 -- [从Milvus迁移至openGauss DataVec](milvus2datavec.md) -- 从Pgvector迁移至openGauss DataVec -- 从ElasticSearch迁移至openGauss DataVec +- [AnythingLLM](anythingllm.md) ## 嵌入模型 - [BGE-M3](embedding-bgem3.md) - [Nomic-Embed-Text](embedding-nomic.md) +## 数据迁移 +- [从Milvus迁移至openGauss DataVec](milvus2datavec.md) +- [从PgVector迁移至openGauss DataVec](../AboutopenGauss/Postgresql_openGauss迁移工具debezium-connector-postgres.md) +- 从ElasticSearch迁移至openGauss DataVec + ## API Reference - [Python](integrationPython.md) - [Java](integrationJava.md) diff --git a/content/zh/docs/DataVec/DataVec-quickstart.md b/content/zh/docs/DataVec/DataVec-quickstart.md index 59788b38e0d1de513b56c7d95fbd2b02dcadfa87..c29f4e1be1a1a519e83834834926f592a8947757 100644 --- a/content/zh/docs/DataVec/DataVec-quickstart.md +++ b/content/zh/docs/DataVec/DataVec-quickstart.md @@ -1,7 +1,7 @@ # 向量数据库快速入门 ## 快速部署 -详见[容器镜像安装](../InstallationGuide/容器镜像安装.md)。 +详见[容器镜像安装](../../../docs-lite/zh/docs/InstallationGuide/容器镜像安装.md)。 ## 创建向量表 diff --git a/content/zh/docs/DataVec/embedding-bgem3.md b/content/zh/docs/DataVec/embedding-bgem3.md index 507c103d48248be86a008361836fa9966c8e49ff..94060558d868b21cdc02cc1adf7b939e1c03b1fe 100644 --- a/content/zh/docs/DataVec/embedding-bgem3.md +++ b/content/zh/docs/DataVec/embedding-bgem3.md @@ -1,7 +1,7 @@ # 使用BGE M3和openGauss DataVec进行向量生成与存储 [BGE M3](https://huggingface.co/BAAI/bge-m3)是一款由BAAI开发的多语言高性能文本嵌入模型,能够将文本转化为语义丰富的高维向量表示。本文将围绕BGE M3和向量数据库openGauss DataVec,介绍如何实现文本向量生成与高效存储。通过这两个工具的结合,能够构建更加智能化的数据检索和处理系统。 -注:openGauss DataVec容器化部署详见[链接](../InstallationGuide/容器镜像安装.md)。 +注:openGauss DataVec容器化部署详见[链接](../../../docs-lite/zh/docs/InstallationGuide/容器镜像安装.md)。 ## 案例一: FlagEmbedding + openGauss DataVec ### 环境准备 - 安装依赖包 diff --git a/content/zh/docs/DataVec/embedding-nomic.md b/content/zh/docs/DataVec/embedding-nomic.md index 82551a15774803cad3ec841bfe7dfdfca8174c87..4821262fe12e4e4ae10f6aac2a6c397f70351894 100644 --- a/content/zh/docs/DataVec/embedding-nomic.md +++ b/content/zh/docs/DataVec/embedding-nomic.md @@ -1,7 +1,7 @@ # 使用nomic-embed-text和openGauss DataVec进行向量化搜索 nomic-embed-text是一个专门用于文本转化为高维向量表示的高性能嵌入模型,本文将介绍如何通过nomic-embed-text和openGauss DataVec轻松实现从文本到向量的转化,并基于语义的相似性快速进行搜索操作。 -注:openGauss DataVec容器化部署详见[链接](../InstallationGuide/容器镜像安装.md)。 +注:openGauss DataVec容器化部署详见[链接](../../../docs-lite/zh/docs/InstallationGuide/容器镜像安装.md)。 ## 环境准备 - 加载模型 diff --git a/content/zh/docs/DataVec/integrationGo.md b/content/zh/docs/DataVec/integrationGo.md index fa09700d415b246f9206f234c79afdba5303c676..ca43ce57c685738ddf558e7108788c3761d2821a 100644 --- a/content/zh/docs/DataVec/integrationGo.md +++ b/content/zh/docs/DataVec/integrationGo.md @@ -3,7 +3,7 @@ ## 环境要求 - 安装Go 1.19及以上版本。 -- openGauss数据库安装部署 [容器镜像安装](../InstallationGuide/容器镜像安装.md)。 +- openGauss数据库安装部署 [容器镜像安装](../../../docs-lite/zh/docs/InstallationGuide/容器镜像安装.md)。 ## 安装SDK 开发者可以运行以下命令安装Go SDK[官方仓库](http://gitee.com/opengauss/openGauss-connector-go-pq),并在项目中导入该包。 diff --git a/content/zh/docs/DataVec/milvus2datavec.md b/content/zh/docs/DataVec/milvus2datavec.md index e53d9a14dea082a6bafa337a9789deeb13944e0d..2d5a40dc15fc847c9d1f85bf96b1b9441c71ff00 100644 --- a/content/zh/docs/DataVec/milvus2datavec.md +++ b/content/zh/docs/DataVec/milvus2datavec.md @@ -4,7 +4,7 @@ ## 环境准备 - 已部署2.3 及以上版本的Milvus实例 -- 已部署7.0.0-RC1 及以上版本的openGauss实例,容器部署参考[容器镜像安装](../InstallationGuide/容器镜像安装.md) +- 已部署7.0.0-RC1 及以上版本的openGauss实例,容器部署参考[容器镜像安装](../../../docs-lite/zh/docs/InstallationGuide/容器镜像安装.md) - 已安装3.8 及以上版本的Python环境 - 已安装涉及的Python库 diff --git a/content/zh/docs/DataVec/openGauss-Springboot.md b/content/zh/docs/DataVec/openGauss-Springboot.md index 7d5c57baca7264e9efe94dc5048a6d9260459688..8a0f75ae6b55c16581497f5cfc724f534a175fd4 100644 --- a/content/zh/docs/DataVec/openGauss-Springboot.md +++ b/content/zh/docs/DataVec/openGauss-Springboot.md @@ -6,7 +6,7 @@ - 安装java1.8及以上版本 - Spring Boot 3.X及以上版本 - Ollama服务安装部署 [部署参考](https://github.com/ollama/ollama) -- openGauss数据库安装部署 [容器镜像安装](../InstallationGuide/容器镜像安装.md) +- openGauss数据库安装部署 [容器镜像安装](../../../docs-lite/zh/docs/InstallationGuide/容器镜像安装.md) ## 添加Maven依赖 在pom.xml中添加openGauss jdbc和ollama sdk依赖 diff --git "a/content/zh/docs/InstallationGuide/\345\256\271\345\231\250\351\225\234\345\203\217\345\256\211\350\243\205.md" "b/content/zh/docs/InstallationGuide/\345\256\271\345\231\250\351\225\234\345\203\217\345\256\211\350\243\205.md" index b78436bcbc02519fb0fdf2a19a540ff135c0bdcc..4cc9bde55b39f0ece44f5c7ba2cde29797ba9779 100644 --- "a/content/zh/docs/InstallationGuide/\345\256\271\345\231\250\351\225\234\345\203\217\345\256\211\350\243\205.md" +++ "b/content/zh/docs/InstallationGuide/\345\256\271\345\231\250\351\225\234\345\203\217\345\256\211\350\243\205.md" @@ -4,10 +4,9 @@ ## 1. 获取镜像 openGauss镜像主要有两种获取方式,分别可以通过`docker pull`和`docker load`拉取对应镜像,下面将详细介绍这两种获取路径。 ### 拉取dockerhub镜像 -openGauss 镜像支持x86-64、ARM64架构和openEuler 20.03 LTS操作系统版本,拉取镜像时无需指定架构和版本。 ```bash -$ docker pull opengauss/opengauss:latest +$ docker pull opengauss/opengauss-server:latest ``` - 验证镜像状态 ```bash diff --git "a/content/zh/docs/SQLReference/\350\236\215\345\220\210\346\237\245\350\257\242\344\275\277\347\224\250\346\214\207\345\215\227.md" "b/content/zh/docs/SQLReference/\350\236\215\345\220\210\346\237\245\350\257\242\344\275\277\347\224\250\346\214\207\345\215\227.md" index fa609c9a6159c5343554131c21e50984e1034d9f..41e4ae51794b287ead7451f541c448eca051da27 100644 --- "a/content/zh/docs/SQLReference/\350\236\215\345\220\210\346\237\245\350\257\242\344\275\277\347\224\250\346\214\207\345\215\227.md" +++ "b/content/zh/docs/SQLReference/\350\236\215\345\220\210\346\237\245\350\257\242\344\275\277\347\224\250\346\214\207\345\215\227.md" @@ -2,125 +2,7 @@ 本章节主要介绍openGauss中DataVec向量引擎的融合查询使用指导。 ## 1. 安装部署 -使用Docker实现openGauss搭载DataVec的容器化部署,简化DevOps用户的安装、配置和环境设置。 - -### 容器架构和操作系统版本支持 - -opengauss-datavec 镜像支持以下架构和操作系统版本: - -- **x86-64 openEuler 20.03 LTS**: -```bash -$ docker pull swr.cn-north-4.myhuaweicloud.com/opengauss-x86-64/opengauss-datavec:latest -``` - -- **ARM64 openEuler 20.03 LTS**: -```bash -$ docker pull swr.cn-north-4.myhuaweicloud.com/opengauss-aarch64/opengauss-datavec:latest -``` - -### 验证镜像状态 -成功拉取镜像后,查看镜像状态: -```bash -$ docker images -``` - -输出示例: -``` -REPOSITORY TAG IMAGE ID CREATED SIZE -swr.cn-north-4.myhuaweicloud.com/opengauss-aarch64/opengauss-datavec latest 5be9d4f1ca12 2 hours ago 1.02GB -``` - -### 修改镜像名称 -使用`docker tag`命令更改镜像名称或标签: -```bash -$ docker tag swr.cn-north-4.myhuaweicloud.com/opengauss-aarch64/opengauss-datavec:latest opengauss-datavec:latest -``` - -### 启动实例 -以`openGauss-datavec latest` 版本为例,以下命令将启动数据库并映射宿主机的端口到容器: -```bash -$ docker run --name opengauss --privileged=true -d -e GS_PASSWORD=YourPassoword -p 8888:5432 opengauss-datavec:latest -``` - -#### 启动参数 -- `--name opengauss`:为容器命名为`opengauss` -- `--privileged=true`: 授予容器特权模式 -- `-d`: 以后台模式运行容器 -- `-p 8888:5432`: 将容器的5432端口映射到宿主机的8888端口 - -##### 必选容器内环境变量 -- `-e GS_PASSWORD=YourPassoword`:设置数据库超级用户`omm`密码 - -使用 openGauss 镜像的时候,必须设置该参数,且不能为空或未定义。该参数用于设置 openGauss 数据库的超级用户`omm`。安装过程中将默认创建omm超级用户,该用户名目前无法更改。 - -openGauss 镜像配置了本地信任机制,因此在容器内连接数据库时无需密码,但若从容器外部(其它主机或者容器)连接,则必须要输入密码。 - -###### **密码要求** - -- 密码长度必须至少为8个字符。 -- 必须同时包含大写字母、小写字母、数字、以及特殊符号。 -- 支持的特殊符号仅包含`\#?!@$%^&\*-`(其中`!$&`需使用转义符号”\“)。 - -##### 可选容器内环境变量 -- `-e GS_NODENAME=YourNodeName`:指定数据库节点名称,默认为`gaussdb` -- `-e GS_USERNAME=YourUserName`:指定数据库连接用户名,默认为测试用户`gaussdb` -- `-e GS_USER_PASSWORD=YourUserPassword`:指定用户`$GS_USERNAME`密码,默认为`$GS_PASSWORD` -- `-e GS_PORT=YourPort`:指定容器内数据库端口,默认为`5432` -- `-e GS_DB=YourDbName`:在容器内创建数据库,默认为`postgres` - -### 验证容器状态 -查看运行中的容器: -```bash -$ docker ps -``` -输出示例: -``` -CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES -7abc538f242a opengauss-datavec:latest "entrypoint.sh gauss…" About a minute ago Up About a minute 0.0.0.0:8888->5432/tcp opengauss -``` - -### 连接数据库 - -#### 容器内部连接数据库 - -进入容器: -``` -$ docker exec -it bash -``` - -登录`omm`超级用户: -``` -$ su omm -$ gsql -d postgres -p 5432 -``` - -#### 从宿主机连接数据库 - -宿主机可以通过以下命令连接数据库(需安装`gsql`客户端): -```shell -$ gsql -d postgres -U gaussdb -W YourPassoword -h your-host-ip -p 8888 -``` - -### 数据持久化 - -通过以下命令,将宿主机的`/opengauss`目录挂载到容器的`/var/lib/opengauss`目录,实现数据的持久化存储: -```bash -$ docker run --name opengauss --privileged=true -d -e GS_PASSWORD=YourPassoword -v /opengauss:/var/lib/opengauss opengauss-datavec:latest -``` - -### 参数配置 -容器内的配置文件路径: -``` -/var/lib/opengauss/data/postgresql.conf -``` - -修改完配置文件后,请使用以下命令重启容器以使更改生效: -```bash -docker restart -``` -若在容器外配置参数,需要挂载宿主机路径到容器内部的`/var/lib/opengauss`目录。 - -有关具体参数的修改,请参考 **[GUC参数说明](../DatabaseReference/GUC参数说明.md)** +使用Docker实现openGauss搭载DataVec的容器化部署,简化DevOps用户的安装、配置和环境设置,参考 [容器镜像安装](../../../docs-lite/zh/docs/InstallationGuide/容器镜像安装.md)。 ## 2. 融合查询 数据源类型通常是多样化的,包含结构化数据(如文本、数字等)和非结构化数据(如视频、图片、音频等)。为了有效存储和检索不同类型的数据,融合查询结合了结构化过滤和非结构化检索的技术,使用户在同一查询中使用不同的数据类型和查询方法,以获取更为精确的非结构化数据。openGauss集成了结构化数据和非结构化数据融合查询的能力。 diff --git a/content/zh/menu/index.md b/content/zh/menu/index.md index c7a3234c2366352b4043ba6e58e3665cbbceeb25..611affc70b40f434e62cc9dcf074df4f840f1729 100644 --- a/content/zh/menu/index.md +++ b/content/zh/menu/index.md @@ -209,7 +209,7 @@ headless: true - [使用openGauss]({{< relref "./docs/GettingStarted/使用openGauss.md" >}}) - [安装指南]({{< relref "./docs/InstallationGuide/InstallationGuide.md" >}}) - [安装概述]({{< relref "./docs/InstallationGuide/安装概述.md" >}}) - - [向量数据库容器镜像安装]({{< relref "./docs/InstallationGuide/容器镜像安装.md" >}}) + - [容器镜像安装]({{< relref "./docs/InstallationGuide/容器镜像安装.md" >}}) - [极简版安装]({{< relref "./docs/InstallationGuide/极简版安装.md" >}}) - [安装准备]({{< relref "./docs/InstallationGuide/安装准备.md" >}}) - [获取安装包]({{< relref "./docs/InstallationGuide/获取安装包.md" >}}) @@ -912,12 +912,19 @@ headless: true - [向量存储引擎]({{< relref "./docs/DataVec/DataVec-architecture.md" >}}) - [PQ]({{< relref "./docs/DataVec/PQ.md" >}}) - [工具编排使用]({{< relref "./docs/DataVec/DataVec-integrations.md" >}}) - - [使用openGauss部署Dify]({{< relref "./docs/DataVec/dify.md" >}}) - - [使用openGauss部署AnythingLLM]({{< relref "./docs/DataVec/anythingllm.md" >}}) - - [从Milvus迁移至openGauss DataVec]({{< relref "./docs/DataVec/milvus2datavec.md" >}}) - - [Python SDK对接向量数据库]({{< relref "./docs/DataVec/integrationPython.md" >}}) - - [Java SDK对接向量数据库]({{< relref "./docs/DataVec/integrationJava.md" >}}) - - [Go SDK对接向量数据库]({{< relref "./docs/DataVec/integrationGo.md" >}}) + - [编排组件] + - [Dify]({{< relref "./docs/DataVec/dify.md" >}}) + - [AnythingLLM]({{< relref "./docs/DataVec/anythingllm.md" >}}) + - [嵌入模型] + - [BGE-M3]({{< relref "./docs/DataVec/embedding-bgem3.md" >}}) + - [Nomic]({{< relref "./docs/DataVec/embedding-nomic.md" >}}) + - [数据迁移] + - [从Milvus迁移至openGauss DataVec]({{< relref "./docs/DataVec/milvus2datavec.md" >}}) + - [API Reference]({{< relref "./docs/DataVec/integrationGo.md" >}}) + - [Python SDK]({{< relref "./docs/DataVec/integrationPython.md" >}}) + - [Java SDK]({{< relref "./docs/DataVec/integrationJava.md" >}}) + - [Node.js SDK]({{< relref "./docs/DataVec/integrationJavaScript.md" >}}) + - [Go SDK]({{< relref "./docs/DataVec/integrationGo.md" >}}) - [教程案例指导]({{< relref "./docs/DataVec/DataVec-tutorials.md" >}}) - [打破AI黑盒,拥抱开源力量:基于openGauss+DeepSeek的本地知识库,打造你的专属AI助手!]({{< relref "./docs/DataVec/openGauss-RAG实践.md" >}}) - [openGauss Datavec + Dify,快速搭建你的智能助手平台]({{< relref "./docs/DataVec/openGauss-Dify.md" >}})