Skip to content

Commit 7d5d302

Browse files
Deployed a4003dd to v1 with MkDocs 1.6.1 and mike 1.1.2
1 parent 8e49b27 commit 7d5d302

File tree

2 files changed

+52
-1
lines changed

2 files changed

+52
-1
lines changed

v1/faq/smart_question_description/index.html

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1840,6 +1840,17 @@
18401840
</span>
18411841
</a>
18421842

1843+
</li>
1844+
1845+
<li class="md-nav__item">
1846+
<a href="#7-sql-limit-1000" class="md-nav__link">
1847+
<span class="md-ellipsis">
1848+
1849+
7 问数的 SQL 为什么有 limit 1000 的限制,如何去掉这个限制?
1850+
1851+
</span>
1852+
</a>
1853+
18431854
</li>
18441855

18451856
</ul>
@@ -2225,6 +2236,17 @@
22252236
</span>
22262237
</a>
22272238

2239+
</li>
2240+
2241+
<li class="md-nav__item">
2242+
<a href="#7-sql-limit-1000" class="md-nav__link">
2243+
<span class="md-ellipsis">
2244+
2245+
7 问数的 SQL 为什么有 limit 1000 的限制,如何去掉这个限制?
2246+
2247+
</span>
2248+
</a>
2249+
22282250
</li>
22292251

22302252
</ul>
@@ -2295,6 +2317,35 @@ <h2 id="6-sqlbot">6 问数过程中大模型有响应,但 SQLBot 显示解析
22952317
<img alt="faq_parse_answer.png" src="../../img/faq/faq_parse_answer.png" /></p>
22962318
<p>此时建议更换其他模型试试。</p>
22972319
</div>
2320+
<h2 id="7-sql-limit-1000">7 问数的 SQL 为什么有 limit 1000 的限制,如何去掉这个限制?<a class="headerlink" href="#7-sql-limit-1000" title="Permanent link">&para;</a></h2>
2321+
<div class="admonition abstract">
2322+
<p>SQLBot 默认在查询 SQL 中添加了 1000 条数据的限制,是为了减少大数据量导致的响应缓慢,以及减少前端页面渲染的压力。尤其在进行数据分析和数据预测时,数据量过大会导致 token 超限。如果确实需要调整这个限制,可以在 SQLBot 的配置文件 (默认是 conf/sqlbot.conf) 中,添加或修改 GENERATE_SQL_QUERY_LIMIT_ENABLED 参数,将值改成 false,重启 SQLBot 服务即可。</p>
2323+
<p>例如:
2324+
<div class="highlight"><pre><span></span><code>PROJECT_NAME=&quot;SQLBot&quot;
2325+
2326+
# Backend
2327+
BACKEND_CORS_ORIGINS=&quot;http://localhost,http://localhost:5173,https://localhost,https://localhost:5173&quot;
2328+
SECRET_KEY=y5txe1mRmS_JpOrUzFzHEu-kIQn3lf7ll0AOv9DQh0s
2329+
2330+
DEFAULT_PWD=&quot;SQLBot@123456&quot;
2331+
2332+
LOG_LEVEL=&quot;DEBUG&quot; # DEBUG, INFO, WARNING, ERROR
2333+
SQL_DEBUG=False
2334+
2335+
CACHE_TYPE=&quot;memory&quot;
2336+
2337+
# Postgres
2338+
POSTGRES_SERVER=localhost
2339+
POSTGRES_PORT=5432
2340+
POSTGRES_DB=sqlbot
2341+
POSTGRES_USER=root
2342+
POSTGRES_PASSWORD=Password123@pg # Change this to your pwd
2343+
2344+
SERVER_IMAGE_HOST=http://192.168.1.112:8001/images/
2345+
2346+
GENERATE_SQL_QUERY_LIMIT_ENABLED=false
2347+
</code></pre></div></p>
2348+
</div>
22982349

22992350

23002351

v1/search/search_index.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)