There was an error while loading. Please reload this page.
1 parent a2dc714 commit 012d2bdCopy full SHA for 012d2bd
1 file changed
src/main/java/com/embabel/guide/rag/DataManager.java
@@ -14,6 +14,7 @@
14
import org.springframework.lang.Nullable;
15
import org.springframework.stereotype.Service;
16
import org.springframework.transaction.annotation.Transactional;
17
+import org.springframework.transaction.PlatformTransactionManager;
18
19
import java.util.Collections;
20
import java.util.List;
@@ -71,9 +72,8 @@ public List<LlmReference> referencesForUser(@Nullable User user) {
71
72
return referencesForAllUsers();
73
}
74
- @Transactional(readOnly = true)
75
- public int count() {
76
- return store.count();
+ public void provisionDatabase() {
+ store.provision();
77
78
79
/**
0 commit comments