Compare commits

...

2 Commits

Author SHA1 Message Date
Wenhao Zhu
6a1c47296c
fix: 修复知识库问题优化无效的BUG (#4033) 2025-03-07 16:01:01 +08:00
archer
6d4776b3aa
action 2025-03-06 22:56:00 +08:00
6 changed files with 7 additions and 11 deletions

View File

@ -6,8 +6,6 @@ on:
- 'docSite/**' - 'docSite/**'
branches: branches:
- 'main' - 'main'
tags:
- 'v*.*.*'
jobs: jobs:
build-fastgpt-docs-images: build-fastgpt-docs-images:

View File

@ -7,8 +7,6 @@ on:
- 'docSite/**' - 'docSite/**'
branches: branches:
- 'main' - 'main'
tags:
- 'v*.*.*'
# A workflow run is made up of one or more jobs that can run sequentially or in parallel # A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs: jobs:

View File

@ -4,8 +4,6 @@ on:
pull_request_target: pull_request_target:
paths: paths:
- 'docSite/**' - 'docSite/**'
branches:
- 'main'
workflow_dispatch: workflow_dispatch:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel # A workflow run is made up of one or more jobs that can run sequentially or in parallel

View File

@ -26,7 +26,7 @@ jobs:
with: with:
driver-opts: network=host driver-opts: network=host
- name: Cache Docker layers - name: Cache Docker layers
uses: actions/cache@v2 uses: actions/cache@v4
with: with:
path: /tmp/.buildx-cache path: /tmp/.buildx-cache
key: ${{ runner.os }}-buildx-${{ github.sha }} key: ${{ runner.os }}-buildx-${{ github.sha }}
@ -108,7 +108,7 @@ jobs:
with: with:
driver-opts: network=host driver-opts: network=host
- name: Cache Docker layers - name: Cache Docker layers
uses: actions/cache@v2 uses: actions/cache@v4
with: with:
path: /tmp/.buildx-cache path: /tmp/.buildx-cache
key: ${{ runner.os }}-buildx-${{ github.sha }} key: ${{ runner.os }}-buildx-${{ github.sha }}
@ -191,7 +191,7 @@ jobs:
with: with:
driver-opts: network=host driver-opts: network=host
- name: Cache Docker layers - name: Cache Docker layers
uses: actions/cache@v2 uses: actions/cache@v4
with: with:
path: /tmp/.buildx-cache path: /tmp/.buildx-cache
key: ${{ runner.os }}-buildx-${{ github.sha }} key: ${{ runner.os }}-buildx-${{ github.sha }}

View File

@ -25,7 +25,7 @@ jobs:
with: with:
driver-opts: network=host driver-opts: network=host
- name: Cache Docker layers - name: Cache Docker layers
uses: actions/cache@v2 uses: actions/cache@v4
with: with:
path: /tmp/.buildx-cache path: /tmp/.buildx-cache
key: ${{ runner.os }}-buildx-${{ github.sha }} key: ${{ runner.os }}-buildx-${{ github.sha }}

View File

@ -787,6 +787,7 @@ export const defaultSearchDatasetData = async ({
...props ...props
}: DefaultSearchDatasetDataProps): Promise<SearchDatasetDataResponse> => { }: DefaultSearchDatasetDataProps): Promise<SearchDatasetDataResponse> => {
const query = props.queries[0]; const query = props.queries[0];
const histories = props.histories;
const extensionModel = datasetSearchUsingExtensionQuery const extensionModel = datasetSearchUsingExtensionQuery
? getLLMModel(datasetSearchExtensionModel) ? getLLMModel(datasetSearchExtensionModel)
@ -796,7 +797,8 @@ export const defaultSearchDatasetData = async ({
await datasetSearchQueryExtension({ await datasetSearchQueryExtension({
query, query,
extensionModel, extensionModel,
extensionBg: datasetSearchExtensionBg extensionBg: datasetSearchExtensionBg,
histories
}); });
const result = await searchDatasetData({ const result = await searchDatasetData({