mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-07-27 10:52:03 +08:00
Refactor: enhance graphrag - part 2 (#14972)
### What problem does this PR solve? 1. expose batch_chunk_token_size for configuration 2. retrieve chunks when build subgraph for the doc, not retreive all docs chunks at the begining 3. get all chunks for a document, used to be hard coded 10000 4. delete not used method run_graphrag ### Type of change - [x] New Feature (non-breaking change which adds functionality) - [x] Refactoring Follow on: #14617
This commit is contained in:
@@ -70,6 +70,12 @@ export const formSchema = z
|
||||
method: z.string().optional(),
|
||||
resolution: z.boolean().optional(),
|
||||
community: z.boolean().optional(),
|
||||
batch_chunk_token_size: z
|
||||
.number()
|
||||
.int()
|
||||
.min(512)
|
||||
.max(8196)
|
||||
.optional(),
|
||||
})
|
||||
.refine(
|
||||
(data) => {
|
||||
|
||||
@@ -103,6 +103,7 @@ export default function DatasetSettings() {
|
||||
use_graphrag: true,
|
||||
entity_types: initialEntityTypes,
|
||||
method: MethodValue.Light,
|
||||
batch_chunk_token_size: 4096,
|
||||
},
|
||||
metadata: {
|
||||
type: 'object',
|
||||
|
||||
Reference in New Issue
Block a user