Enriches citations with documentType (looked up from the document list).
When the LLM already provided a documentId, only the type lookup is needed.
Falls back to title matching for citations without an ID.
Preserves the original citation shape — only adds missing fields.
Enriches citations with
documentType(looked up from the document list). When the LLM already provided adocumentId, only the type lookup is needed. Falls back to title matching for citations without an ID.Preserves the original citation shape — only adds missing fields.