在env文件中进行了如下设置:
export EMBEDDING_TYPE="ollama" #原始是ark ,改为ollama
export EMBEDDING_MAX_BATCH_SIZE=100
export OLLAMA_EMBEDDING_BASE_URL="http://xxx:11434" #20250808修改以下三个参数
export OLLAMA_EMBEDDING_MODEL="bge-m3:567m"
export OLLAMA_EMBEDDING_DIMS="1024"
并且在docker-compose.yml文件中添加了:
coze-server:
# build:
# context: ../
# dockerfile: backend/Dockerfile
image: opencoze/opencoze:latest
restart: always
container_name: coze-server
env_file: *env_file
environment:
LISTEN_ADDR: 0.0.0.0:8888
networks:
- coze-network
extra_hosts: # 20250808修改以下参数
- "host.docker.internal:host-gateway"
重启docker以后,在本地部署的COZE平台创建文本知识库并上传内容出现以下报错:
code=105000004 message=SearchStore operation failed: store search store failed, err: [Store] upsert failed, params column dense_text_content vector dim 1024 not match collection definition, which has dim of 2048
这个问题应该在程序中的哪里修改呢?
在env文件中进行了如下设置:
export EMBEDDING_TYPE="ollama" #原始是ark ,改为ollama
export EMBEDDING_MAX_BATCH_SIZE=100
export OLLAMA_EMBEDDING_BASE_URL="http://xxx:11434" #20250808修改以下三个参数
export OLLAMA_EMBEDDING_MODEL="bge-m3:567m"
export OLLAMA_EMBEDDING_DIMS="1024"
并且在docker-compose.yml文件中添加了:
coze-server:
# build:
# context: ../
# dockerfile: backend/Dockerfile
image: opencoze/opencoze:latest
restart: always
container_name: coze-server
env_file: *env_file
environment:
LISTEN_ADDR: 0.0.0.0:8888
networks:
- coze-network
extra_hosts: # 20250808修改以下参数
- "host.docker.internal:host-gateway"
重启docker以后,在本地部署的COZE平台创建文本知识库并上传内容出现以下报错:
code=105000004 message=SearchStore operation failed: store search store failed, err: [Store] upsert failed, params column dense_text_content vector dim 1024 not match collection definition, which has dim of 2048
这个问题应该在程序中的哪里修改呢?