Extract entities and relationships
Extracts entities and relationships from a document.
The entities and relationships extraction process involves:
- Parsing documents into semantic chunks
- Extracting entities and relationships using LLMs
Path parameters
id
The ID of the document to extract entities and relationships from.
Headers
Authorization
Bearer authentication of the form Bearer <token>, where token is your auth token.
X-API-Key
Query parameters
run_with_orchestration
Whether to run the entities and relationships extraction process with orchestration.
Request
Settings for the entities and relationships extraction process.
graph_extraction_prompt
The prompt to use for knowledge graph extraction.
graph_entity_description_prompt
The prompt to use for entity description generation.
entity_types
The types of entities to extract.
relation_types
The types of relations to extract.
chunk_merge_count
The number of extractions to merge into a single graph
extraction.
max_knowledge_relationships
The maximum number of knowledge relationships to extract
from each chunk.
max_description_input_length
The maximum length of the description for a node in the
graph.
generation_config
Configuration for text generation during graph enrichment.
automatic_deduplication
Whether to automatically deduplicate entities.
Response
Successful Response
results