/**
 * Semantic (vector similarity) search via pgvector.
 *
 * Query embedding is not yet implemented in TypeScript — the Python pipeline
 * uses sentence-transformers / CLIP which require torch.  For now this is a
 * stub that directs the user to use FTS or run db-embed first.
 */

export type SearchType = "text" | "image";

/**
 * Placeholder for cosine-similarity search against pre-computed embeddings.
 * Actual implementation will arrive once the embed module supports query
 * embedding via an external service or ONNX runtime.
 */
export async function semanticSearch(
  _query: string,
  _limit = 10,
  _searchType: SearchType = "text",
): Promise<void> {
  console.log(
    "Run db-embed first, then use --type fts for text search. " +
      "Semantic search requires query embedding (coming soon).",
  );
}
