mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-23 23:16:58 +08:00
### What problem does this PR solve? Fix: Restore the sidebar description of DP slicing method #9869 ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue)
21 lines
656 B
TypeScript
21 lines
656 B
TypeScript
const getImageName = (prefix: string, length: number) =>
|
|
new Array(length)
|
|
.fill(0)
|
|
.map((x, idx) => `chunk-method/${prefix}-0${idx + 1}`);
|
|
|
|
export const ImageMap = {
|
|
book: getImageName('book', 4),
|
|
laws: getImageName('law', 2),
|
|
manual: getImageName('manual', 4),
|
|
picture: getImageName('media', 2),
|
|
naive: getImageName('naive', 2),
|
|
paper: getImageName('paper', 2),
|
|
presentation: getImageName('presentation', 2),
|
|
qa: getImageName('qa', 2),
|
|
resume: getImageName('resume', 2),
|
|
table: getImageName('table', 2),
|
|
one: getImageName('one', 2),
|
|
knowledge_graph: getImageName('knowledge-graph', 2),
|
|
tag: getImageName('tag', 2),
|
|
};
|