| /** | |
| * @license | |
| * SPDX-License-Identifier: Apache-2.0 | |
| */ | |
| // βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ | |
| // μΈμ¦ μ¬μ©μ μ 보 (LDAP AD μλ΅ κΈ°λ°) | |
| // βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ | |
| export interface AuthUser { | |
| name: string; | |
| username: string; | |
| department: string; | |
| company: string; | |
| email: string; | |
| section: string; | |
| title: string; | |
| } | |
| // βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ | |
| // κ²μ κ²°κ³Ό νμ | |
| // βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ | |
| export interface ResultPage { | |
| page: number | null; | |
| score: number; | |
| rerank_score: number | null; | |
| content: string | null; | |
| thumbnail: string; | |
| display_rel_path: string | null; | |
| image_name: string | null; | |
| source: string; | |
| } | |
| export interface SearchResult { | |
| id: string; | |
| title: string; | |
| summary: string; | |
| relevance: number; | |
| priority: string; | |
| type: string; | |
| thumbnail: string; | |
| url: string; | |
| page: number; | |
| relatedPages?: number[]; | |
| /** κ²μμ λ§€μΉλ νμ΄μ§ μ (λ¬Έμ μ 체 νμ΄μ§ μκ° μλ) */ | |
| matchedPageCount?: number; | |
| complexity: string; | |
| answerability: number; | |
| llmInsights?: string[]; | |
| // λ°±μλ μλ΅ μΆκ° λ©νλ°μ΄ν° (μ ν) | |
| docId?: string; | |
| documentType?: string | null; | |
| applyRegion?: string | null; | |
| applyProduct?: string | null; | |
| deptName?: string | null; | |
| regDate?: string | null; | |
| docPageLink?: string | null; | |
| pages?: ResultPage[]; | |
| } | |
| export interface SearchMeta { | |
| total: number; | |
| complexity: "Simple" | "Complex"; | |
| strategy: "Text" | "Vision" | "Hybrid"; | |
| answerabilityScore: number; | |
| } | |
| export type ViewState = "search" | "results"; | |
| export interface SearchSession { | |
| id: string; | |
| query: string; | |
| timestamp: number; | |
| results: SearchResult[]; | |
| meta: SearchMeta; | |
| } | |