test(personal): close personal knowledge pilot gates

This commit is contained in:
2026-07-12 12:42:24 +08:00
parent 0d64cf0f21
commit 60a78fdd6a
9 changed files with 211 additions and 0 deletions
@@ -10,6 +10,7 @@ import org.dromara.common.oss.enums.AccessPolicyType;
import org.dromara.common.oss.factory.OssFactory;
import org.dromara.system.domain.vo.SysOssVo;
import org.dromara.system.service.ISysOssService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jdbc.core.BatchPreparedStatementSetter;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.scheduling.annotation.Scheduled;
@@ -38,6 +39,7 @@ public class PersonalIngestionWorker {
private final int parsingLeaseMinutes;
private final int maxParseAttempts;
@Autowired
public PersonalIngestionWorker(JdbcTemplate jdbcTemplate, ISysOssService ossService,
KnowledgeDocumentParser parser, PersonalKnowledgeProperties properties,
PlatformTransactionManager transactionManager) {
@@ -2,6 +2,7 @@ package org.dromara.aihr.personal.service;
import org.dromara.aihr.personal.support.PersonalKnowledgeProperties;
import org.dromara.common.core.exception.ServiceException;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import javax.naming.Context;
@@ -90,6 +91,7 @@ public class PersonalUrlFetchService {
private final Resolver resolver;
private final Fetcher fetcher;
@Autowired
public PersonalUrlFetchService(PersonalKnowledgeProperties properties) {
this(properties, new DeadlineDnsResolver(DNS_EXECUTOR, new JndiDnsQuery()), new RawSocketFetcher());
}
@@ -8,6 +8,7 @@ import com.fasterxml.jackson.databind.node.ObjectNode;
import lombok.extern.slf4j.Slf4j;
import org.dromara.aihr.personal.support.PersonalKnowledgeProperties;
import org.dromara.aihr.personal.support.PersonalOwner;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.net.URI;
@@ -36,6 +37,7 @@ public class PersonalVectorStore {
private final HttpTransport transport;
private final String collection;
@Autowired
public PersonalVectorStore(PersonalKnowledgeProperties properties, ObjectMapper objectMapper) {
this(properties, objectMapper, javaTransport(properties));
}