Skip to content

Commit

Permalink
deploy: 84cc4ba
Browse files Browse the repository at this point in the history
  • Loading branch information
yangchuansheng committed Jan 6, 2024
1 parent 18a4e4c commit 8091eb1
Show file tree
Hide file tree
Showing 18 changed files with 99 additions and 88 deletions.
13 changes: 7 additions & 6 deletions docs/development/configuration/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,9 @@
<span class="material-icons size-20 menu-icon align-middle">menu</span></button>
<span><div id=docsearch></div></span></div><div class="d-flex align-items-center"><ul class="list-unstyled mb-0"><li class="list-inline-item mb-0"><a href=https://github.com/labring/FastGPT alt=github rel="noopener noreferrer" target=_blank><div class="btn btn-icon btn-default border-0"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentcolor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><title>GitHub</title><path d="M9 19c-5 1.5-5-2.5-7-3m14 6v-3.87a3.37 3.37.0 00-.94-2.61c3.14-.35 6.44-1.54 6.44-7A5.44 5.44.0 0020 4.77 5.07 5.07.0 0019.91 1S18.73.65 16 2.48a13.38 13.38.0 00-7 0C6.27.65 5.09 1 5.09 1A5.07 5.07.0 005 4.77 5.44 5.44.0 003.5 8.55c0 5.42 3.3 6.61 6.44 7A3.37 3.37.0 009 18.13V22"/></svg></div></a></li><li class="list-inline-item mb-0"><a href=https://oss.laf.run/htr4n1-images/fastgpt-qr-code.jpg alt=wechat rel="noopener noreferrer" target=_blank><div class="btn btn-icon btn-default border-0"><svg xmlns="http://www.w3.org/2000/svg" width="28" height="28" viewBox="0 0 28 28" fill="none" stroke="currentcolor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><title>微信群</title><path d="M21.6696 15.9962C21.9464 15.9925 22.2107 15.881 22.4064 15.6853 22.6021 15.4896 22.7137 15.2252 22.7173 14.9485c0-.581-.465500000000002-1.0477-1.0477-1.0477C21.0875 13.9008 20.622 14.3675 20.622 14.9485c0 .583300000000001.4666 1.0477 1.0476 1.0477zm-5.1625.0C16.7839 15.9925 17.0482 15.881 17.2439 15.6853S17.5512 15.2252 17.5548 14.9485c0-.581-.466699999999999-1.0477-1.0477-1.0477C15.9238 13.9008 15.4595 14.3675 15.4595 14.9485c0 .583300000000001.4655 1.0477 1.0476 1.0477zm7.6615 5.88C24.0939 21.9177 24.0342 21.9818 23.9981 22.0594 23.9621 22.1369 23.9515 22.2239 23.968 22.3078 23.968 22.3638 23.968 22.421 23.9971 22.4793c.1144.486500000000003.343 1.2612.343 1.2904C24.3401 23.8548 24.3693 23.912 24.3693 23.9703 24.3693 24.0041 24.3626 24.0376 24.3496 24.0688 24.3367 24.1 24.3177 24.1284 24.2937 24.1522 24.2697 24.1761 24.2413 24.195 24.21 24.2078 24.1788 24.2206 24.1453 24.2272 24.1115 24.227 24.0531 24.227 24.0251 24.199 23.968 24.171L22.2775 23.1957C22.154 23.1277 22.0168 23.0886 21.8761 23.0813 21.791 23.0813 21.7046 23.0813 21.6475 23.1093 20.8448 23.3392 20.0141 23.4535 19.1263 23.4535c-4.27.0-7.7082-2.8665-7.7082-6.4225.0-3.5548 3.4382-6.4225 7.7082-6.4225 4.2688.0 7.707 2.8677 7.707 6.4225.0 1.9215-1.0313 3.6703-2.6647 4.8463V21.8762zM19.4518 9.44883C19.3429 9.44521 19.234 9.44327 19.1251 9.443c-4.8696.0-8.8736 3.3367-8.8736 7.5892.0.6463.0932999999999993 1.2716.266 1.8666H10.4136C9.39426 18.8885 8.38067 18.7442 7.39896 18.4695 7.31263 18.4403 7.22629 18.4403 7.13996 18.4403 6.96754 18.444 6.79921 18.4935 6.65229 18.5838L4.61296 19.7563C4.55463 19.7855 4.49746 19.8147 4.44029 19.8147 4.35703 19.8138 4.27744 19.7803 4.21856 19.7214 4.15968 19.6625 4.1262 19.5829 4.12529 19.4997 4.12529 19.4133 4.15329 19.3562 4.18246 19.2698 4.21046 19.2418 4.46946 18.2968 4.61296 17.7252 4.61296 17.6668 4.64096 17.5817 4.64096 17.5245 4.64065 17.4245 4.61721 17.3259 4.57248 17.2364 4.52775 17.147 4.46295 17.0691 4.38313 17.0088c-1.98217-1.4035-3.2165-3.4918-3.2165-5.8111.0-4.26187 4.165-7.6977 9.27497-7.6977 4.3925.0 8.085 2.5305 9.0102 5.94767V9.44883zM13.4388 9.9365c.6685.0 1.197-.5565 1.197-1.197.0-.6685-.528499999999999-1.197-1.197-1.197S12.2418 8.071 12.2418 8.7395 12.7703 9.9365 13.4388 9.9365zm-6.13667.0c.6685.0 1.19816-.5565 1.19816-1.197.0-.6685-.52966-1.197-1.19816-1.197-.66734.0-1.197.528499999999999-1.197 1.197s.52966 1.197 1.197 1.197z"/></svg></div></a></li></ul><button id=mode class="btn btn-icon btn-default ms-2" type=button aria-label="Toggle user interface mode">
<span class=toggle-dark><svg xmlns="http://www.w3.org/2000/svg" height="30" width="30" viewBox="0 0 48 48" fill="currentcolor"><path d="M24 42q-7.5.0-12.75-5.25T6 24t5.25-12.75T24 6q.4.0.85.025.45.025 1.15.075-1.8 1.6-2.8 3.95t-1 4.95q0 4.5 3.15 7.65Q28.5 25.8 33 25.8q2.6.0 4.95-.925T41.9 22.3q.05.6.075.975Q42 23.65 42 24q0 7.5-5.25 12.75T24 42zm0-3q5.45.0 9.5-3.375t5.05-7.925q-1.25.55-2.675.825Q34.45 28.8 33 28.8q-5.75.0-9.775-4.025T19.2 15q0-1.2.25-2.575t.9-3.125q-4.9 1.35-8.125 5.475Q9 18.9 9 24q0 6.25 4.375 10.625T24 39zm-.2-14.85z"/></svg></span><span class=toggle-light><svg xmlns="http://www.w3.org/2000/svg" height="30" width="30" viewBox="0 0 48 48" fill="currentcolor"><path d="M24 31q2.9.0 4.95-2.05T31 24t-2.05-4.95T24 17t-4.95 2.05T17 24t2.05 4.95T24 31zm0 3q-4.15.0-7.075-2.925T14 24t2.925-7.075T24 14t7.075 2.925T34 24t-2.925 7.075T24 34zM3.5 25.5q-.65.0-1.075-.425Q2 24.65 2 24t.425-1.075Q2.85 22.5 3.5 22.5h5q.65.0 1.075.425Q10 23.35 10 24t-.425 1.075T8.5 25.5zm36 0q-.65.0-1.075-.425Q38 24.65 38 24t.425-1.075T39.5 22.5h5q.65.0 1.075.425Q46 23.35 46 24t-.425 1.075-1.075.425zM24 10q-.65.0-1.075-.425Q22.5 9.15 22.5 8.5v-5q0-.65.425-1.075Q23.35 2 24 2t1.075.425T25.5 3.5v5q0 .65-.425 1.075Q24.65 10 24 10zm0 36q-.65.0-1.075-.425T22.5 44.5v-5q0-.65.425-1.075Q23.35 38 24 38t1.075.425.425 1.075v5q0 .65-.425 1.075Q24.65 46 24 46zM12 14.1l-2.85-2.8q-.45-.45-.425-1.075.025-.625.425-1.075.45-.45 1.075-.45t1.075.45L14.1 12q.4.45.4 1.05.0.6-.4 1-.4.45-1.025.45T12 14.1zm24.7 24.75L33.9 36q-.4-.45-.4-1.075t.45-1.025q.4-.45 1-.45t1.05.45l2.85 2.8q.45.45.425 1.075-.025.625-.425 1.075-.45.45-1.075.45t-1.075-.45zM33.9 14.1q-.45-.45-.45-1.05.0-.6.45-1.05l2.8-2.85q.45-.45 1.075-.425.625.025 1.075.425.45.45.45 1.075t-.45 1.075L36 14.1q-.4.4-1.025.4t-1.075-.4zM9.15 38.85q-.45-.45-.45-1.075t.45-1.075L12 33.9q.45-.45 1.05-.45.6.0 1.05.45.45.45.45 1.05.0.6-.45 1.05l-2.8 2.85q-.45.45-1.075.425-.625-.025-1.075-.425zM24 24z"/></svg></span></button></div></div></div><div class=container-fluid><div class=layout-spacing><div class="d-md-flex justify-content-between align-items-center"><nav aria-label=breadcrumb class="d-inline-block pb-2 mt-1 mt-sm-0"><ul id=breadcrumbs class="breadcrumb bg-transparent mb-0" itemscope itemtype=https://schema.org/BreadcrumbList><li class="breadcrumb-item text-capitalize active" aria-current=page itemprop=itemListElement itemscope itemtype=https://schema.org/ListItem><a itemprop=item href=/docs/><i class="material-icons size-20 align-text-bottom" itemprop=name>Home</i></a><meta itemprop=position content="1"></li><li class="breadcrumb-item text-capitalize" itemprop=itemListElement itemscope itemtype=https://schema.org/ListItem><a itemprop=item href=/docs/development/><span itemprop=name>开发与部署指南</span></a><meta itemprop=position content="2"></li><li class="breadcrumb-item text-capitalize active" itemprop=itemListElement itemscope itemtype=https://schema.org/ListItem><span itemprop=name>配置文件介绍</span><meta itemprop=position content="3"></li></ul></nav></div><div class="row flex-xl-nowrap"><div class="docs-toc col-xl-3 d-xl-block"><toc><div class="fw-bold text-uppercase mb-2">配置文件介绍</div><nav id=toc><ul><li><ul><li><a href=#旧版本配置文件>旧版本配置文件</a></li><li><a href=#466-alpha-版本完整配置参数>4.6.6-alpha 版本完整配置参数</a></li><li><a href=#特殊模型>特殊模型</a><ul><li><a href=#rerank-接入>ReRank 接入</a></li></ul></li></ul></li></ul></nav></toc></div><div class="docs-toc-mobile d-print-none d-xl-none"><button id=toc-dropdown-btn class="btn-secondary dropdown-toggle" type=button data-bs-toggle=dropdown data-bs-offset=0,0 aria-expanded=false>
Table of Contents</button><nav id=toc-mobile><ul class=dropdown-menu><li><ul><li><a href=#旧版本配置文件>旧版本配置文件</a></li><li><a href=#466-alpha-版本完整配置参数>4.6.6-alpha 版本完整配置参数</a></li><li><a href=#特殊模型>特殊模型</a><ul><li><a href=#rerank-接入>ReRank 接入</a></li></ul></li></ul></li></ul></nav></div><div class="docs-content col-12 col-xl-9 mt-0"><div class="mb-0 d-flex"><i class="material-icons title-icon me-2">settings</i><h1 class="content-title mb-0">配置文件介绍</h1></div><p class="lead mb-3">FastGPT 配置参数介绍</p><div id=content class=main-content data-bs-spy=scroll data-bs-root-margin="0px 0px -65%" data-bs-target=#toc-mobile><div data-prismjs-copy data-prismjs-copy-success data-prismjs-copy-error><p>由于环境变量不利于配置复杂的内容,新版 FastGPT 采用了 ConfigMap 的形式挂载配置文件,你可以在 <code>projects/app/data/config.json</code> 看到默认的配置文件。可以参考 <a data-bs-delay='{"hide":300,"show":550}' data-bs-html=true data-bs-title="<a href='/docs/development/docker/'><p>开发与部署指南</p><strong>Docker Compose 快速部署</strong><br>使用 Docker Compose 快速部署 FastGPT</a>" data-bs-toggle=tooltip href=/docs/development/docker/>docker-compose 快速部署</a> 来挂载配置文件。</p><p><strong>开发环境下</strong>,你需要将示例配置文件 <code>config.json</code> 复制成 <code>config.local.json</code> 文件才会生效。</p><p>这个配置文件中包含了系统级参数、AI 对话的模型、function 模型等……</p><h2 id=旧版本配置文件>旧版本配置文件 <a href=#%e6%97%a7%e7%89%88%e6%9c%ac%e9%85%8d%e7%bd%ae%e6%96%87%e4%bb%b6 class=anchor aria-hidden=true><i class="material-icons align-middle">link</i></a></h2><p>以下配置适合 4.6.6-alpha 之前</p><div class=prism-codeblock><pre id=54dfc36 class=language-json>
Table of Contents</button><nav id=toc-mobile><ul class=dropdown-menu><li><ul><li><a href=#旧版本配置文件>旧版本配置文件</a></li><li><a href=#466-alpha-版本完整配置参数>4.6.6-alpha 版本完整配置参数</a></li><li><a href=#特殊模型>特殊模型</a><ul><li><a href=#rerank-接入>ReRank 接入</a></li></ul></li></ul></li></ul></nav></div><div class="docs-content col-12 col-xl-9 mt-0"><div class="mb-0 d-flex"><i class="material-icons title-icon me-2">settings</i><h1 class="content-title mb-0">配置文件介绍</h1></div><p class="lead mb-3">FastGPT 配置参数介绍</p><div id=content class=main-content data-bs-spy=scroll data-bs-root-margin="0px 0px -65%" data-bs-target=#toc-mobile><div data-prismjs-copy data-prismjs-copy-success data-prismjs-copy-error><p>由于环境变量不利于配置复杂的内容,新版 FastGPT 采用了 ConfigMap 的形式挂载配置文件,你可以在 <code>projects/app/data/config.json</code> 看到默认的配置文件。可以参考 <a data-bs-delay='{"hide":300,"show":550}' data-bs-html=true data-bs-title="<a href='/docs/development/docker/'><p>开发与部署指南</p><strong>Docker Compose 快速部署</strong><br>使用 Docker Compose 快速部署 FastGPT</a>" data-bs-toggle=tooltip href=/docs/development/docker/>docker-compose 快速部署</a> 来挂载配置文件。</p><p><strong>开发环境下</strong>,你需要将示例配置文件 <code>config.json</code> 复制成 <code>config.local.json</code> 文件才会生效。</p><p>这个配置文件中包含了系统级参数、AI 对话的模型、function 模型等……</p><h2 id=旧版本配置文件>旧版本配置文件 <a href=#%e6%97%a7%e7%89%88%e6%9c%ac%e9%85%8d%e7%bd%ae%e6%96%87%e4%bb%b6 class=anchor aria-hidden=true><i class="material-icons align-middle">link</i></a></h2><p>以下配置适合 4.6.6-alpha 之前</p><div class=prism-codeblock><pre id=23c07ae class=language-json>
<code>{
&#34;SystemParams&#34;: {
&#34;pluginBaseUrl&#34;: &#34;&#34;, // 商业版接口地址
&#34;vectorMaxProcess&#34;: 15, // 向量生成最大进程,结合数据库性能和 key 来设置
&#34;qaMaxProcess&#34;: 15, // QA 生成最大进程,结合数据库性能和 key 来设置
&#34;pgHNSWEfSearch&#34;: 100 // pg vector 索引参数,越大精度高但速度慢
Expand Down Expand Up @@ -166,10 +165,9 @@
&#34;price&#34;: 0
}
}</code>
</pre></div><h2 id=466-alpha-版本完整配置参数>4.6.6-alpha 版本完整配置参数 <a href=#466-alpha-%e7%89%88%e6%9c%ac%e5%ae%8c%e6%95%b4%e9%85%8d%e7%bd%ae%e5%8f%82%e6%95%b0 class=anchor aria-hidden=true><i class="material-icons align-middle">link</i></a></h2><p><strong>使用时,请务必去除注释!</strong></p><p>以下配置适用于V4.6.6-alpha版本以后</p><div class=prism-codeblock><pre id=d40ea6f class=language-json>
</pre></div><h2 id=466-alpha-版本完整配置参数>4.6.6-alpha 版本完整配置参数 <a href=#466-alpha-%e7%89%88%e6%9c%ac%e5%ae%8c%e6%95%b4%e9%85%8d%e7%bd%ae%e5%8f%82%e6%95%b0 class=anchor aria-hidden=true><i class="material-icons align-middle">link</i></a></h2><p><strong>使用时,请务必去除注释!</strong></p><p>以下配置适用于V4.6.6-alpha版本以后</p><div class=prism-codeblock><pre id=7a4d0c8 class=language-json>
<code>{
&#34;systemEnv&#34;: {
&#34;pluginBaseUrl&#34;: &#34;&#34;, // 商业版接口地址
&#34;vectorMaxProcess&#34;: 15, // 向量生成最大进程,结合数据库性能和 key 来设置
&#34;qaMaxProcess&#34;: 15, // QA 生成最大进程,结合数据库性能和 key 来设置
&#34;pgHNSWEfSearch&#34;: 100 // pg vector 索引参数,越大精度高但速度慢
Expand Down Expand Up @@ -234,7 +232,8 @@
&#34;name&#34;: &#34;GPT35-16k&#34;,
&#34;maxContext&#34;: 16000,
&#34;maxResponse&#34;: 16000,
&#34;price&#34;: 0
&#34;inputPrice&#34;: 0,
&#34;outputPrice&#34;: 0
}
],
&#34;cqModels&#34;: [ // 问题分类模型
Expand All @@ -254,6 +253,7 @@
&#34;maxContext&#34;: 8000,
&#34;maxResponse&#34;: 8000,
&#34;inputPrice&#34;: 0,
&#34;outputPrice&#34;: 0,
&#34;toolChoice&#34;: true,
&#34;functionPrompt&#34;: &#34;&#34;
}
Expand All @@ -264,7 +264,8 @@
&#34;name&#34;: &#34;GPT35-1106&#34;,
&#34;maxContext&#34;: 16000,
&#34;maxResponse&#34;: 4000,
&#34;outputPrice&#34;: 0,
&#34;inputPrice&#34;: 0,
&#34;outputPrice&#34;: 0,
&#34;toolChoice&#34;: true,
&#34;functionPrompt&#34;: &#34;&#34;
}
Expand Down
Loading

0 comments on commit 8091eb1

Please sign in to comment.