package com.tasteby.mapper;

import com.tasteby.domain.VectorSearchResult;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface VectorMapper {

    List<VectorSearchResult> searchSimilar(@Param("queryVec") String queryVec,
                                           @Param("topK") int topK,
                                           @Param("maxDistance") double maxDistance);

    void insertVector(@Param("id") String id,
                      @Param("restaurantId") String restaurantId,
                      @Param("chunkText") String chunkText,
                      @Param("embedding") String embedding);
}
