Skip to main content
Version: latest

agrag.ingestion.client_work.extraction.attach_llm_work

attach_llm_work(chunks:Sequence[Chunk], llm_work:Mapping[UUID, ChunkLlmWork]) -> list[Chunk]

Return copies of chunks carrying their recorded language work.

Parameters:

  • chunks (Sequence[Chunk]) – The chunks of one extraction batch.
  • llm_work (Mapping[UUID, ChunkLlmWork]) – Work keyed by chunk id. Chunks without an entry are returned unchanged.

Returns:

  • list[Chunk] – The chunks to pass into the write pipeline.