rag from scratch
1.0.0
该存储库包含有关如何从头开始构建 RAG 系统的博客文章系列中的代码。
为了运行这个项目,您需要在 OpenAI 中创建一个 API 密钥:
cp .env.sample .env
Create new secret key
.env
文件中该项目旨在与 Docker 和 Devcontainers 一起运行。设置位于.devcontainer/devcontainer.json
内。
要使用 IDE 设置开发容器,请按照以下说明操作:
创建 devcontainer 后,在其中运行终端并执行:
poetry install
请按照下列步骤操作:
poetry install
有关每个脚本的作用以及如何运行它的说明可以在我的博客文章中找到。