111
This commit is contained in:
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));
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user