added vector and sync packages for pgvector operations, renamed classes and added sync providers.
This commit is contained in:
@@ -1,8 +0,0 @@
|
|||||||
package com.vaessl.app.search;
|
|
||||||
|
|
||||||
import org.springframework.stereotype.Service;
|
|
||||||
|
|
||||||
@Service
|
|
||||||
public class HomeboxSyncService {
|
|
||||||
|
|
||||||
}
|
|
||||||
@@ -0,0 +1,28 @@
|
|||||||
|
package com.vaessl.app.sync;
|
||||||
|
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
import com.vaessl.app.shared.ServiceType;
|
||||||
|
import com.vaessl.app.vector.EmbeddingService;
|
||||||
|
import com.vaessl.app.vector.VectorSyncProvider;
|
||||||
|
|
||||||
|
@Service
|
||||||
|
public class HomeboxSyncProvider implements VectorSyncProvider {
|
||||||
|
|
||||||
|
private final EmbeddingService embeddingService;
|
||||||
|
|
||||||
|
public HomeboxSyncProvider(EmbeddingService embeddingService) {
|
||||||
|
this.embeddingService = embeddingService;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public ServiceType getServiceType() {
|
||||||
|
return ServiceType.HOMEBOX;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void syncVectorStore() {
|
||||||
|
// TODO Auto-generated method stub
|
||||||
|
throw new UnsupportedOperationException("Unimplemented method 'syncVectorStore'");
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
package com.vaessl.app.ai;
|
package com.vaessl.app.vector;
|
||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
package com.vaessl.app.vector;
|
||||||
|
|
||||||
|
import com.vaessl.app.shared.ServiceProvider;
|
||||||
|
|
||||||
|
public interface VectorSyncProvider extends ServiceProvider{
|
||||||
|
public void syncVectorStore();
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user