# deploy-vector-database **Repository Path**: ai-star/deploy-vector-database ## Basic Information - **Project Name**: deploy-vector-database - **Description**: 部署向量数据库 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2024-05-11 - **Last Updated**: 2024-05-30 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # deploy-vector-database #### 介绍 部署向量数据库 #### 软件架构 软件架构说明 1. https://blog.csdn.net/weixin_48707135/article/details/138344788 2. https://blog.csdn.net/liujianming90/article/details/137411931 #### 安装教程 1. 拉取镜像 - docker pull chromadb/chroma:latest 2. 启动镜像 ```dockerfile docker run -d --rm --name chromadb \ -p 8800:8000 -v /Users/guizhouyunshuziwenlv/software/docker/chroma:/chroma/chroma \ -e IS_PERSISTENT=TRUE \ -e ANONYMIZED_TELEMETRY=TRUE chromadb/chroma:latest ``` ```dockerfile 这里-v ./my_chroma_data:/chroma/chroma是将当前目录下的my_chroma_data文件夹作为数据卷挂载到容器中,以便数据持久化 -e选项用于设置环境变量,IS_PERSISTENT=TRUE表示数据持久化,ANONYMIZED_TELEMETRY=TRUE表示开启匿名遥测 ``` 3. 访问ChromaDB - 一旦容器启动,您可以通过访问http://localhost:8800/index.html来使用ChromaDB - 如果您希望将服务暴露给整个网络,可以将8000端口映射到其他地址,例如0.0.0.0:8000 - 通过浏览器访问http://localhost:8800/docs,如果能看到ChromaDB的文档页面,说明ChromaDB已经成功安装并运行 #### 使用说明 1. 安装库 - pip install chromadb - pip install openai - pip install tiktoken 2. xxxx 3. xxxx #### 参与贡献 1. Fork 本仓库 2. 新建 Feat_xxx 分支 3. 提交代码 4. 新建 Pull Request #### 特技 1. 使用 Readme\_XXX.md 来支持不同的语言,例如 Readme\_en.md, Readme\_zh.md 2. Gitee 官方博客 [blog.gitee.com](https://blog.gitee.com) 3. 你可以 [https://gitee.com/explore](https://gitee.com/explore) 这个地址来了解 Gitee 上的优秀开源项目 4. [GVP](https://gitee.com/gvp) 全称是 Gitee 最有价值开源项目,是综合评定出的优秀开源项目 5. Gitee 官方提供的使用手册 [https://gitee.com/help](https://gitee.com/help) 6. Gitee 封面人物是一档用来展示 Gitee 会员风采的栏目 [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/)