mirror of
https://github.com/microsoft/graphrag.git
synced 2025-11-16 01:55:20 +00:00
* Refactor graph creation * Semver * Spellcheck * Update integ pipeline * Fix cast * Improve pandas chaining * Cleaner apply * Use list comprehensions --------- Co-authored-by: Alonso Guevara <alonsog@microsoft.com>
79 lines
2.0 KiB
YAML
79 lines
2.0 KiB
YAML
input:
|
|
file_type: text
|
|
base_dir: ../../fixtures/min-csv
|
|
file_pattern: .*\.txt$
|
|
|
|
storage:
|
|
type: memory
|
|
|
|
cache:
|
|
type: memory
|
|
|
|
workflows:
|
|
- name: create_base_text_units
|
|
config:
|
|
text_chunk:
|
|
strategy:
|
|
type: sentence
|
|
|
|
# Just lump everything together
|
|
chunk_by: []
|
|
|
|
- name: create_base_entity_graph
|
|
config:
|
|
snapshot_graphml_enabled: True
|
|
entity_extract:
|
|
strategy:
|
|
type: graph_intelligence
|
|
llm:
|
|
type: static_response
|
|
responses:
|
|
- '("entity"<|>COMPANY_A<|>COMPANY<|>Company_A is a test company)
|
|
##
|
|
("entity"<|>COMPANY_B<|>COMPANY<|>Company_B owns Company_A and also shares an address with Company_A)
|
|
##
|
|
("entity"<|>PERSON_C<|>PERSON<|>Person_C is director of Company_A)
|
|
##
|
|
("relationship"<|>COMPANY_A<|>COMPANY_B<|>Company_A and Company_B are related because Company_A is 100% owned by Company_B and the two companies also share the same address)<|>2)
|
|
##
|
|
("relationship"<|>COMPANY_A<|>PERSON_C<|>Company_A and Person_C are related because Person_C is director of Company_A<|>1))'
|
|
summarize_descriptions:
|
|
strategy:
|
|
type: graph_intelligence
|
|
llm:
|
|
type: static_response
|
|
responses:
|
|
- This is a MOCK response for the LLM. It is summarized!
|
|
cluster_graph:
|
|
strategy:
|
|
type: leiden
|
|
verbose: True
|
|
|
|
- name: create_final_nodes
|
|
config:
|
|
embed_graph_enabled: True
|
|
|
|
- name: create_final_communities
|
|
- name: create_final_text_units
|
|
config:
|
|
text_embed:
|
|
strategy:
|
|
type: mock
|
|
|
|
- name: create_final_entities
|
|
config:
|
|
text_embed:
|
|
strategy:
|
|
type: mock
|
|
|
|
- name: create_final_documents
|
|
config:
|
|
text_embed:
|
|
strategy:
|
|
type: mock
|
|
- name: create_final_relationships
|
|
config:
|
|
text_embed:
|
|
strategy:
|
|
type: mock
|