Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
F
Ftt_Common
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
Ftt_Common
Commits
fcf80918
Commit
fcf80918
authored
Oct 09, 2026
by
段廷瑞
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 远程知识库地址重复修复
parent
06b9d21a
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
2 deletions
+7
-2
Tools.Agent.dll
AppHome/Tools.Agent.dll
+0
-0
Tools.Agent.xml
AppHome/Tools.Agent.xml
+2
-0
AgentConfig.cs
Tools.Agent/Config/AgentConfig.cs
+3
-0
AgentSettingsForm.cs
Tools.Agent/Forms/AgentSettingsForm.cs
+2
-2
No files found.
AppHome/Tools.Agent.dll
View file @
fcf80918
No preview for this file type
AppHome/Tools.Agent.xml
View file @
fcf80918
...
@@ -1059,6 +1059,8 @@
...
@@ -1059,6 +1059,8 @@
<para>
每条模板必须含
<c>
{q}
</c>
占位符;可选
<c>
{filter}
</c>
(服务端 source 等值过滤)/
<c>
{page}
</c>
/
<c>
{n}
</c>
。
</para>
<para>
每条模板必须含
<c>
{q}
</c>
占位符;可选
<c>
{filter}
</c>
(服务端 source 等值过滤)/
<c>
{page}
</c>
/
<c>
{n}
</c>
。
</para>
<para>
**默认内置超级大脑条目接口**(开箱即用);设置页清空并保存 = 永久关闭。
<para>
**默认内置超级大脑条目接口**(开箱即用);设置页清空并保存 = 永久关闭。
检索策略固定为「逐词并行 + 本地合并打分」(见 next_pref_plan.md §3),其余参数为代码内常量。
</para>
检索策略固定为「逐词并行 + 本地合并打分」(见 next_pref_plan.md §3),其余参数为代码内常量。
</para>
<para>
**ObjectCreationHandling.Replace 必须保留**:Newtonsoft 默认把 JSON 数组项**追加**到属性初始集合
(内置 1 条 + 文件 N 条 = 越存越多,真机出现过 3 条重复)—— Replace 让反序列化整体替换初始值。
</para>
</summary>
</summary>
</member>
</member>
<member
name=
"P:Tools.MyAgent.Config.AgentConfig.Temperature"
>
<member
name=
"P:Tools.MyAgent.Config.AgentConfig.Temperature"
>
...
...
Tools.Agent/Config/AgentConfig.cs
View file @
fcf80918
...
@@ -60,7 +60,10 @@
...
@@ -60,7 +60,10 @@
/// <para>每条模板必须含 <c>{q}</c> 占位符;可选 <c>{filter}</c>(服务端 source 等值过滤)/<c>{page}</c>/<c>{n}</c>。</para>
/// <para>每条模板必须含 <c>{q}</c> 占位符;可选 <c>{filter}</c>(服务端 source 等值过滤)/<c>{page}</c>/<c>{n}</c>。</para>
/// <para>**默认内置超级大脑条目接口**(开箱即用);设置页清空并保存 = 永久关闭。
/// <para>**默认内置超级大脑条目接口**(开箱即用);设置页清空并保存 = 永久关闭。
/// 检索策略固定为「逐词并行 + 本地合并打分」(见 next_pref_plan.md §3),其余参数为代码内常量。</para>
/// 检索策略固定为「逐词并行 + 本地合并打分」(见 next_pref_plan.md §3),其余参数为代码内常量。</para>
/// <para>**ObjectCreationHandling.Replace 必须保留**:Newtonsoft 默认把 JSON 数组项**追加**到属性初始集合
/// (内置 1 条 + 文件 N 条 = 越存越多,真机出现过 3 条重复)—— Replace 让反序列化整体替换初始值。</para>
/// </summary>
/// </summary>
[
Newtonsoft
.
Json
.
JsonProperty
(
ObjectCreationHandling
=
Newtonsoft
.
Json
.
ObjectCreationHandling
.
Replace
)]
public
List
<
string
>
RemoteKbEntries
{
get
;
set
;
}
=
new
List
<
string
>
public
List
<
string
>
RemoteKbEntries
{
get
;
set
;
}
=
new
List
<
string
>
{
{
"http://192.168.1.108:8718/api/knowledge/entries?search={q}&page_size={n}&page={page}&partition={filter}"
,
"http://192.168.1.108:8718/api/knowledge/entries?search={q}&page_size={n}&page={page}&partition={filter}"
,
...
...
Tools.Agent/Forms/AgentSettingsForm.cs
View file @
fcf80918
...
@@ -142,7 +142,7 @@ namespace Tools.MyAgent.Forms
...
@@ -142,7 +142,7 @@ namespace Tools.MyAgent.Forms
{
{
Text
=
"远程知识库(HTTP 外挂 · 条目接口)"
,
Text
=
"远程知识库(HTTP 外挂 · 条目接口)"
,
Location
=
new
Point
(
4
,
142
),
Location
=
new
Point
(
4
,
142
),
Size
=
new
Size
(
590
,
1
18
),
Size
=
new
Size
(
590
,
1
70
),
TabIndex
=
2
,
TabIndex
=
2
,
};
};
var
lbl
=
new
Label
var
lbl
=
new
Label
...
@@ -156,7 +156,7 @@ namespace Tools.MyAgent.Forms
...
@@ -156,7 +156,7 @@ namespace Tools.MyAgent.Forms
Multiline
=
true
,
Multiline
=
true
,
ScrollBars
=
ScrollBars
.
Vertical
,
ScrollBars
=
ScrollBars
.
Vertical
,
Location
=
new
Point
(
10
,
58
),
Location
=
new
Point
(
10
,
58
),
Size
=
new
Size
(
570
,
52
),
Size
=
new
Size
(
570
,
104
),
TabIndex
=
0
,
TabIndex
=
0
,
};
};
grp
.
Controls
.
Add
(
lbl
);
grp
.
Controls
.
Add
(
lbl
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment