File size: 416 Bytes
cdb73a8
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
export interface Book {
  id: string;
  title: string;
  authors: string[];
  description?: string;
  genres: string[];
  cover_image_url?: string;
}

export interface RecommendationResult {
  book: Book;
  similarity_score: number;
}

export interface RecommendByQueryRequest {
  query: string;
  top_k: number;
}

export interface BookCluster {
  id: number;
  name: string;
  size: number;
  top_books: Book[];
}