This commit is contained in:
lu7213 committed 2026-03-03 09:39:33 +08:00
1 parent 68a2b4f68c
commit 7cd697187c
308 files changed
+30454 -75

No files matched your search

@@ -0,0 +1,21 @@
package com.luqj.djl.init;
import com.luqj.djl.utils.EmbeddingModelSingleton;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;
import javax.annotation.PostConstruct;
import java.util.Arrays;
@Component
public class DjlInit {
@Value("${simcse.path:}")
private String simcsePath;
@PostConstruct
private void init() throws Exception {
// umsVideoService.deleteRecommentByQuery("cn");
// EmbeddingModelSingleton.getCriteria(simcsePath);
// float[] queryVector = EmbeddingModelSingleton.embed("测试用户");
// System.out.println(Arrays.toString(queryVector));
}
}