liudong
2024-08-12 c257fb1d2238aae76331ad4d1ad8cfe667493718
知识库,智能体样式修改
4个文件已修改
67 ■■■■■ 已修改文件
src/views/dmx/IntelligentAgent/index.vue 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/dmx/knowledgeLib/config.vue 28 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/dmx/knowledgeLib/index.vue 26 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/dmx/knowledgeLib/tool.vue 12 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/dmx/IntelligentAgent/index.vue
@@ -22,6 +22,7 @@
                    flex-wrap: wrap;
                    align-content: flex-start;
                    overflow: auto;
                    height: calc(100vh - 300px);
                  "
                  :style="{ height: documentHeight + 'px' }"
                >
src/views/dmx/knowledgeLib/config.vue
@@ -34,19 +34,17 @@
<!--            </a-select>-->
<!--          </a-form-item>-->
          <a-form-item field="embd_id" label="嵌入模型">
            <a-space direction="vertical" size="large">
              <a-select :size="'large'" v-model="form.embd_id" :style="{width:'100%'}" placeholder="请选择 ..." :disabled="kbObj.chunk_num==0 && kbObj.token_num==0">
                <a-optgroup  :label="index" v-for="(item,index) in modelList" :key=index>
                  <a-option
                    v-for="(obj) in item"
                    :key='obj.fid'
                    :value="obj.llm_name"
                  >
                    {{obj.llm_name}}
                  </a-option>
                </a-optgroup>
              </a-select>
            </a-space>
            <a-select :size="'large'" v-model="form.embd_id" placeholder="请选择 ..." :disabled="kbObj.chunk_num==0 && kbObj.token_num==0">
              <a-optgroup  :label="index" v-for="(item,index) in modelList" :key=index>
                <a-option
                  v-for="(obj) in item"
                  :key='obj.fid'
                  :value="obj.llm_name"
                >
                  {{obj.llm_name}}
                </a-option>
              </a-optgroup>
            </a-select>
          </a-form-item>
          <a-form-item field="parser_id" label="解析方法">
            <a-select v-model="form.parser_id" placeholder="请选择" :disabled="kbObj.chunk_num==0 && kbObj.token_num==0" >
@@ -62,9 +60,7 @@
            </a-space>
          </a-form-item>
          <a-form-item field="raptor" label="使用召回增强RAPTOR策略">
            <a-space direction="vertical" >
              <a-switch v-model="form.use_raptor" size="small" />
            </a-space>
            <a-switch v-model="form.use_raptor" size="small" />
          </a-form-item>
          <div v-if="form.use_raptor">
            <a-form-item field="prompt" label="提示词">
src/views/dmx/knowledgeLib/index.vue
@@ -11,7 +11,7 @@
          <addKnow @getknowledge="getknowledge" @getKbdetail="getKbdetail"></addKnow>
        </div>
        <a-spin :loading="listloading" class="lf-container-down">
          <a-scrollbar style="overflow: auto;"  :style="{height: documentHeight + 70 + 'px'}">
          <a-scrollbar  style="height: calc(100vh - 300px); overflow: auto">
            <div
              class="tab"
              v-for="(tab, index) in tabs"
@@ -36,7 +36,7 @@
      <div class="rt-container" v-if="tabs.length > 0" >
        <a-tabs :active-key="activeKey" @change="handleTabChange">
          <a-tab-pane key="1" :title= "t('dmx.list.DataSet')">
            <div class="rt-container-main" :style="{height: documentHeight + 70 + 'px'}">
            <a-scrollbar class="rt-container-main" :style="{height: documentHeight + 70 + 'px'}" style="overflow: auto">
              <a-card  ref="account" class="general-card" title="" style="padding-top: 20px">
                <a-row>
                  <a-col :flex="1" :span="12">
@@ -249,17 +249,17 @@
                  </template>
                </a-table>
              </a-card>
            </div>
            </a-scrollbar>
          </a-tab-pane>
          <a-tab-pane key="2" :title="t('dmx.list.test')">
            <div class="rt-container-main" :style="{height: documentHeight + 70 + 'px'}">
            <a-scrollbar class="rt-container-main" :style="{height: documentHeight + 70 + 'px'}" style="overflow: auto">
              <test ref="testForm"></test>
            </div>
            </a-scrollbar>
          </a-tab-pane>
          <a-tab-pane key="3" :title="t('dmx.list.disposition')">
            <div class="rt-container-main" :style="{height: documentHeight + 70 + 'px'}">
            <a-scrollbar class="rt-container-main" :style="{height: documentHeight + 70 + 'px'}" style="overflow: auto">
              <config ref="configForm" :kbtenantInfo="kbtenantInfo" @cancleConfig="cancleConfig" @saveConfig="saveConfig"></config>
            </div>
            </a-scrollbar>
          </a-tab-pane>
        </a-tabs>
<!--        <div v-if="detailsShow" class="details">-->
@@ -858,15 +858,6 @@
</script>
<script lang="ts">
  export default {
    name: 'SearchTable',
    methods: {
    }
  };
</script>
<style scoped lang="less">
  .container {
    padding: 0 20px 20px 20px;
@@ -877,7 +868,7 @@
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: space-evenly;
        //justify-content: space-evenly;
        border-radius: 8px;
        background: var(--color-bg-2);
        width: 200px;
@@ -890,6 +881,7 @@
          flex-direction: column;
          box-sizing: border-box;
          width: 90%;
          height: calc(100% - 80px);
          border: 1px solid var(--color-fill-3);
          border-radius: 8px;
          //padding: 10px;
src/views/dmx/knowledgeLib/tool.vue
@@ -78,12 +78,11 @@
                  form.parser_id === 'book'
                "
              >
                <a-space direction="vertical" size="large">
                  <a-switch
                    v-model="form.use_raptor"
                    @change="onChangeRAPTOR"
                  />
                </a-space>
                <a-switch
                  v-model="form.use_raptor"
                  @change="onChangeRAPTOR"
                  size="small"
                />
              </a-form-item>
              <div v-if="form.use_raptor">
                <a-form-item field="prompt" label="提示词">
@@ -328,6 +327,7 @@
                      :checked-value="1"
                      :unchecked-value="0"
                      @change="handleChangeStatus(item)"
                      size="small"
                    />
                  </div>
                </div>