Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

rag-ai

  1. 初始化 python 虚拟环境,工程根目录下运行:
    • python3 -m venv venv
  2. linux/unix运行,windows 下自行google。
    • source ./venv/bin/activate
  3. 安装依赖
    • pip config set global.index-url https://mirrors.cloud.tencent.com/pypi/simple/
    • pip install colorama
    • pip install fastapi
    • pip install aiolimiter * pip install sse-starlette
    • pip install jinja2
    • pip install uvicorn[standard]
    • pip install cryptography
    • pip install openai
    • pip install tiktoken
    • pip install pillow
    • pip install prettytable
    • pip install chromadb
    • pip install tqdm
    • pip install psutil * pip install SQLAlchemy pymysql pandas tabulate
    • pip install sqlalchemy[asyncio] aiomysql pandas tabulate
    • pip install PyYaml
    • pip install psycopg2-binary
    • pip install asyncpg
    • pip install aiohttp
    • pip install Pillow
    • pip install nacos-sdk-python
    • pip install pypinyin
  4. 启动应用:
    • uvicorn main:app --host 0.0.0.0 --timeout-keep-alive 60 --workers 8
  5. 压力测试:
    • pip install locust

截图: 小程序端: screenshot2.png 网页端: screenshot3.png

附:

依赖管理:

# 安装依赖
pip install -r requirements.txt
# 生成依赖描述文件
pip freeze > requirements.txt

aws bedrock 端点: https://docs.aws.amazon.com/zh_cn/general/latest/gr/bedrock.html Claude中文提示库: https://docs.anthropic.com/zh-CN/prompt-library/library

错误返回: https://learn.microsoft.com/en-us/azure/machine-learning/how-to-troubleshoot-online-endpoints?view=azureml-api-2&tabs=cli#http-status-codes

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages