formatting

This commit is contained in:
2026-07-21 00:57:48 +02:00
parent 444ce804ed
commit 29027d4515
4 changed files with 21 additions and 20 deletions
@@ -43,7 +43,8 @@ public class HomeboxItemClient {
* @param query optional keyword filter; {@code null} returns all items for the page
* @param pageable page number and size to request
* @return the mapped page of items along with the resolved connection ID
* @throws com.vaessl.app.exception.ConnectionNotFoundException if no matching connection is stored
* @throws com.vaessl.app.exception.ConnectionNotFoundException if no matching connection is
* stored
* @throws com.vaessl.app.exception.RemoteApiException if Homebox returns an empty response body
*/
public HomeboxItemPage hbResponse(ConnectionIdentifiable connection, String query,
@@ -14,10 +14,10 @@ import com.vaessl.app.vector.EmbeddingService;
import lombok.RequiredArgsConstructor;
/**
* Pages through the full Homebox catalog and re-indexes it into the vector store.
* Item IDs are collected across all pages before {@link EmbeddingService#deleteStaleVectorEntries}
* is called once at the end, rather than after each page: deleting per page would treat every
* item outside the current page as stale, wiping out entries from pages already synced.
* Pages through the full Homebox catalog and re-indexes it into the vector store. Item IDs are
* collected across all pages before {@link EmbeddingService#deleteStaleVectorEntries} is called
* once at the end, rather than after each page: deleting per page would treat every item outside
* the current page as stale, wiping out entries from pages already synced.
*/
@Component
@RequiredArgsConstructor
@@ -12,9 +12,9 @@ import com.vaessl.app.shared.ServiceItem;
import com.vaessl.app.shared.ServiceType;
/**
* Embeds {@link ServiceItem}s into the shared vector store and prunes entries that no longer
* exist upstream. Kept stateless (no instance fields besides {@code vectorStore}) since this is
* a singleton bean shared across concurrent sync runs; callers own the per-sync ID accumulator.
* Embeds {@link ServiceItem}s into the shared vector store and prunes entries that no longer exist
* upstream. Kept stateless (no instance fields besides {@code vectorStore}) since this is a
* singleton bean shared across concurrent sync runs; callers own the per-sync ID accumulator.
*/
@Service
public class EmbeddingService {
@@ -92,10 +92,10 @@ public class EmbeddingService {
}
/**
* Deletes every vector for {@code connectionId} whose item ID is not in
* {@code currentItemIds}, then clears the accumulator. Must be called once, after every page
* for this sync run has gone through {@link #vectorizeData}, not per page — otherwise items
* from pages other than the most recent one would look stale and get deleted too.
* Deletes every vector for {@code connectionId} whose item ID is not in {@code currentItemIds},
* then clears the accumulator. Must be called once, after every page for this sync run has gone
* through {@link #vectorizeData}, not per page — otherwise items from pages other than the most
* recent one would look stale and get deleted too.
*
* @param connectionId the connection to prune stale vectors for
* @param currentItemIds every item ID seen across the full sync run; cleared after this call