소스 검색

feat: Click on the chunk on the search page to locate the corresponding file location #2247 (#2399)

### What problem does this PR solve?

feat: Click on the chunk on the search page to locate the corresponding
file location #2247

### Type of change

- [x] New Feature (non-breaking change which adds functionality)
tags/v0.11.0
balibabu 1 년 전
부모
커밋
cbdf54cf36
No account linked to committer's email address
2개의 변경된 파일7개의 추가작업 그리고 1개의 파일을 삭제
  1. 1
    0
      web/src/interfaces/database/knowledge.ts
  2. 6
    1
      web/src/pages/search/index.tsx

+ 1
- 0
web/src/interfaces/database/knowledge.ts 파일 보기

vector: number[]; vector: number[];
vector_similarity: number; vector_similarity: number;
highlight: string; highlight: string;
positions: number[][];
} }


export interface ITestingDocument { export interface ITestingDocument {

+ 6
- 1
web/src/pages/search/index.tsx 파일 보기

className={styles.chunks} className={styles.chunks}
renderItem={(item) => ( renderItem={(item) => (
<List.Item> <List.Item>
<Card className={styles.card}>
<Card
className={styles.card}
onClick={() =>
clickDocumentButton(item.doc_id, item as any)
}
>
<Space> <Space>
<ImageWithPopover <ImageWithPopover
id={item.img_id} id={item.img_id}

Loading…
취소
저장