# srag **Repository Path**: MoleSir/srag ## Basic Information - **Project Name**: srag - **Description**: Simple RAG - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-06-02 - **Last Updated**: 2025-06-02 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # SRAG Simple RAG,一个简单的 RAG 项目 ## 配置与运行 1. 安装 uv(一个快速的 Python 包管理器): ```bash curl -LsSf https://astral.sh/uv/install.sh | sh ``` 2. 配置自己的 api_key 等参数。在 `config` 目录创建 `config.toml` 文件(可从示例复制): ```bash cp config/config.example.toml config/config.toml ``` 3. 编辑 `config/config.toml` 添加 API 密钥和自定义设置: ````toml [llm] embed_model = "" # The embed LLM model to use chat_model = "" # The chat LLM model to use base_url = "" # API endpoint URL api_key = "" # Your API key ```` 4. 使用 uv 运行程序(uv 将自动管理依赖): ````bash uv run main.py ```` ## References - https://gist.github.com/cradiator/90e4a14797f74efda7559c80db5c2d45