mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-07-18 21:57:27 +08:00
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:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user