mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-08-01 05:23:47 +08:00
Feat: Search for knowledge-base-level graph nodes. (#17444)
This commit is contained in:
@@ -159,6 +159,8 @@ export default {
|
||||
`${restAPIv1}/datasets/${datasetId}/ingestions/summary`,
|
||||
artifactsList: (datasetId: string) =>
|
||||
`${restAPIv1}/datasets/${datasetId}/artifacts`,
|
||||
artifactsAlteration: (datasetId: string) =>
|
||||
`${restAPIv1}/datasets/${datasetId}/artifacts/alteration`,
|
||||
artifactsTopicList: (datasetId: string) =>
|
||||
`${restAPIv1}/datasets/${datasetId}/artifacts_topics`,
|
||||
getArtifactPage: (datasetId: string, pageType: string, slug: string) =>
|
||||
@@ -169,6 +171,8 @@ export default {
|
||||
`${restAPIv1}/datasets/${datasetId}/commits/${commitId}`,
|
||||
getArtifactGraph: (datasetId: string) =>
|
||||
`${restAPIv1}/datasets/${datasetId}/artifacts/graph`,
|
||||
artifactsStructure: (datasetId: string) =>
|
||||
`${restAPIv1}/datasets/${datasetId}/artifacts_structure`,
|
||||
clearWiki: (datasetId: string) =>
|
||||
`${restAPIv1}/datasets/${datasetId}/artifacts`,
|
||||
getDatasetSkillTree: (datasetId: string) =>
|
||||
|
||||
@@ -1,6 +1,14 @@
|
||||
import { CompilationTemplateKind } from '@/constants/compilation';
|
||||
import { TFunction } from 'i18next';
|
||||
import { capitalize, lowerCase } from 'lodash';
|
||||
|
||||
export function formatKindLabel(kind: string): string {
|
||||
export function formatKindLabel(t: TFunction, kind: string): string {
|
||||
if (kind === CompilationTemplateKind.Artifacts) {
|
||||
return 'Wiki';
|
||||
}
|
||||
if (kind === CompilationTemplateKind.KnowledgeGraph) {
|
||||
return t('knowledgeDetails.structureGraph');
|
||||
}
|
||||
return capitalize(lowerCase(kind));
|
||||
}
|
||||
export const isCreateCompilationTemplateGroup = (
|
||||
|
||||
Reference in New Issue
Block a user