|
|
il y a 1 an | |
|---|---|---|
| Log | il y a 1 an | |
| alembic | il y a 1 an | |
| app | il y a 1 an | |
| .gitignore | il y a 1 an | |
| Dockerfile | il y a 1 an | |
| README.md | il y a 1 an | |
| alembic.ini | il y a 1 an | |
| main.py | il y a 1 an | |
| main.spec | il y a 1 an | |
| pip_install.sh | il y a 1 an | |
| requirements.txt | il y a 1 an | |
| restart.sh | il y a 1 an | |
| test_main.http | il y a 1 an |
RAG Gateway 是一个用于处理请求和响应的网关服务。它使用 FastAPI 和其他相关库来提供高效的 API 服务。
rag-gateway/ ├── app/ │ └── api │ └── config 项目配置目录 │ └── models │ └── service | └── utils ├── main.py ├── requirements.txt ├── test_main.http ├── venv/ └── README.txt
首先,创建一个虚拟环境并激活它:
python3 -m venv venv
source venv/bin/activate # 对于 Linux/Mac
或者
venv\Scripts\activate # 对于 Windows
pip install -r requirements.txt
python main.py
docker build -t my-python-app .
docker run --rm -v ${PWD}:/app -v ${PWD}/:/app/dist my-python-app