Expand description
Conversation chunking and LLM-powered entity/relationship extraction.
Functions§
- chunk_
conversation - Split conversation text into chunks of approximately
target_tokenstokens. - extract_
from_ chunk - Extract entities and relationships from a conversation chunk using an LLM.
- flatten_
extraction - Convert cases, patterns, and preferences into ExtractedEntity entries so they go through the same dedup pipeline.
- parse_
extraction_ response - Parse the LLM’s JSON response into an ExtractionResult. Defensively handles markdown fencing and malformed JSON.