GraphRAG feature - Part 1 - add spacy to extract entity and relation (#14670)

### What problem does this PR solve?

GraphRAG feature - Part 1 - add spacy to extract entity and relation

<img width="1621" height="1288" alt="image"
src="https://github.com/user-attachments/assets/aadeddad-94da-46c6-adad-9c3784181f61"
/>


### Type of change

- [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
Wang Qi
2026-05-11 12:59:59 +08:00
committed by GitHub
parent cc207b5b05
commit 3838770e7a
23 changed files with 1118 additions and 30 deletions

View File

@@ -35,6 +35,7 @@ export const showTagItems = (parserId: DocumentParserType) => {
const enum MethodValue {
General = 'general',
Light = 'light',
NER = 'ner',
}
export const excludedParseMethods = [
@@ -122,10 +123,12 @@ const GraphRagItems = ({
});
const methodOptions = useMemo(() => {
return [MethodValue.Light, MethodValue.General].map((x) => ({
value: x,
label: upperFirst(x),
}));
return [MethodValue.Light, MethodValue.General /*, MethodValue.NER*/].map(
(x) => ({
value: x,
label: x === MethodValue.NER ? 'NER' : upperFirst(x),
}),
);
}, []);
const renderWideTooltip = useCallback(