当前位置: 首页 > news >正文

无锡做网站企业网站安全检测漏洞扫描风险等级

无锡做网站企业,网站安全检测漏洞扫描风险等级,免费刷seo,网站后台管理系统是用什么做的背景 R2R是一个采用Python编写的开源AI RAG框架项目#xff0c;与PostgreSQL技术栈集成度高#xff0c;运行需求资源少#xff08;主要是本人的Macbook air m1内存只有8G#xff09;的特点#xff0c;对部署本地私有化化AI RAG应用友好。 Resource Recommendations Whe…背景 R2R是一个采用Python编写的开源AI RAG框架项目与PostgreSQL技术栈集成度高运行需求资源少主要是本人的Macbook air m1内存只有8G的特点对部署本地私有化化AI RAG应用友好。 Resource Recommendations When running R2R, we recommend: At least 4 vCPU cores8GB of RAM (16GB preferred)50gb 4x raw data size (size of data to be ingested after converting to TXT) of disk space 安装R2R light First, install the R2R CLI with the additional light dependencies: hbuPauls-MacBook-Air dragon-flight % pip install r2r[core,ingestion-bundle]The core and ingestion-bundle dependencies, combined with a Postgres database, provide the necessary components to deploy a user-facing R2R application into production. If you need advanced features like orchestration or parsing with Unstructured.io then refer to the full installation . Ref: Configure Postgres database in R2R 环境设置 主要是向量数据库 R2R requires connections to various services. Set up the following environment variables based on your needs: # Set Postgrespgvector settingsexport R2R_POSTGRES_USERr2rexport R2R_POSTGRES_PASSWORD*********export R2R_POSTGRES_HOST127.0.0.1export R2R_POSTGRES_PORT5432export R2R_POSTGRES_DBNAMEhbuexport R2R_PROJECT_NAMEdragonexport R2R_POSTGRES_MAX_CONNECTIONS80Postgrespgvector With R2R you can connect to your own instance of Postgrespgvector or a remote cloud instance. Refer here for detailed documentation on configuring Postgres inside R2R. ALTER USER r2r WITH PASSWORD password;R2R配置 R2R uses a TOML configuration file for managing settings, which you can read about here. For local setup, we’ll use the default local_llm configuration. This can be customized to your needs by setting up a standalone project. R2R Configure 配置内容 hbuPauls-MacBook-Air dragon-flight % cat local_llm.toml [completion] provider litellm concurrent_request_limit 1[completion.generation_config]model qwen2:0.5btemperature 0.1top_p 1max_tokens_to_sample 1_024stream falseadd_generation_kwargs { }[database] provider postgres user hbu password hbu host localhost port 5432 db_name hbu your_project_name dragon_flight[embedding] provider ollama base_model mxbai-embed-large base_dimension 1_024 batch_size 32 add_title_as_prefix true concurrent_request_limit 32[ingestion] excluded_parsers [ mp4 ]运行R2R 本地大模型 r2r serve --config-path./ai/R2R/local_llm.toml检查运行状态 http://localhost:7272/v3/health 准备本地大模型 hbuPauls-MacBook-Air dragon-flight % ollama list NAME ID SIZE MODIFIED qwen2:1.5b f6daf2b25194 934 MB 4 months ago deepseek-coder:latest 3ddd2d3fc8d2 776 MB 4 months ago qwen2:0.5b 6f48b936a09f 352 MB 4 months ago llama2-chinese:latest cee11d703eee 3.8 GB 4 months ago hbuPauls-MacBook-Air dragon-flight % ollama run qwen2:0.5b Send a message (/? for help)检查向量数据库postgres hbu# \dn架构模式列表名称 | 拥有者 --------------------------------------dragon | hbudragon-flight | hbupublic | pg_database_ownerr2r_dragon_flight | hbu (4 行记录)hbu# \dn架构模式列表名称 | 拥有者 | 存取权限 | 描述 ------------------------------------------------------------------------------------------------------dragon | hbu | | dragon-flight | hbu | | public | pg_database_owner | pg_database_ownerUC/pg_database_owner| standard public schema| | U/pg_database_owner | r2r_dragon_flight | hbu | | (4 行记录)导入Samples数据 导入数据 # R2R toml配置文件问题导致数据导入失败 hbuPauls-MacBook-Air dragon-flight % r2r documents create-samples /Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/pydantic/_internal/_config.py:345: UserWarning: Valid config keys have changed in V2: * fields has been removedwarnings.warn(message, UserWarning) Ingesting file: /var/folders/mh/l6_b7c0x7m3bq41r5m25snqc0000gn/T/tmpglpon8br_pg_essay_3.html Request failed: [Errno 8] nodename nor servname provided, or not known## 采用dragon-flight/ai/R2R/alpha_llm.toml启动R2R服务导入数据成功 hbuPauls-MacBook-Air R2R % r2r documents create py/core/examples/data/got.txt /Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/pydantic/_internal/_config.py:345: UserWarning: Valid config keys have changed in V2: * fields has been removedwarnings.warn(message, UserWarning) Processing file 1/1: py/core/examples/data/got.txt {results: {message: Document created and ingested successfully.,task_id: null,document_id: 6e134818-b245-571d-8073-6581c0a175d8} } ---------------------------------------- Time taken: 27.58 secondsProcessed 1 files successfully.备注验证导入数据仍存在问题主要表现为部分导入数据不成功。 问题与方案 1、R22配置文件中LLM模型选择问题 目前只有事例中的模型支持导入配置文件需要参考官方提供的信息其中配置信息如dragon-flight/ai/R2R/alpha_llm.toml能够成功启动。
http://www.pierceye.com/news/590806/

相关文章:

  • 移动网站模板响应式网站开发教程pdf
  • 怎么设计网站内容小程序seo帝搜软件sem880官网
  • 十堰秦楚网 十堰新闻门户网站wordpress 点赞 开启
  • 做外贸网站需要注意些什么手续安阳吧贴吧
  • 国外申请域名的网站百度标记号码认证平台
  • 专门做淘宝代运营的网站支付建设网站的费用什么科目
  • 天津企业设计网站建设建个网站做外贸
  • 申请永久网站空间wordpress论坛采集
  • 网站如何做竞价佛山新网站建设机构
  • 网站建设费可以一次性冲费用吗学校门户网站作用
  • 手机上怎么制作网站音乐网站如何建立
  • 新乡企业网站建设公司寮步东莞网站建设
  • wordpress中国网站排名如何加入广告联盟赚钱
  • 济宁网站建设培训学校wordpress导入表单
  • 做农产品交易网站阿里云已备案域名购买
  • 免费建站网站一级大录像不卡谁给我一个企业邮箱认证
  • 中国做网站东台做网站公司
  • 建设数据库网站需要哪些设备wordpress多功能主题 cosy
  • 苏州市郭巷建设局网站一家专门做鞋子的网站
  • 光明网站建设网站建设成果
  • 商业网站建设举例宝塔做两个网站6
  • 网站优化排名分享隐迅推前端开发入门培训
  • 曲周县建设局网站东莞保安公司电话
  • 合肥商城网站建设多少钱wordpress页面代码怎么改
  • 前期做网站宣传费用怎样做账企业网站建设的劣势
  • 网站建设企业哪家好做网站三大主流框架
  • 网站托管服务方案珲春建设局网站
  • 开发网站公司收入重庆多功能网站建设
  • 河北手机网站建设上海网站seo招聘
  • 厦门市建设局思明建设分局官方网站在谷歌上做外贸网站有用吗