Extract company mentions
Identify names, identifiers, countries and document context during ingestion.
COMPANY DATA FOR RAG
Improve company-data retrieval in RAG applications. Resolve legal entities, attach VAT and EIN metadata, and keep company evidence linked to the right documents.
THE PRACTICAL ANSWER
Retrieval-augmented generation, or RAG, supplies retrieved evidence to a language model before it answers. For company questions, resolve the legal entity before attaching documents to an index. Use country and typed company identifiers as metadata, alongside document permissions and dates. VATFind supports the company-resolution and enrichment step; your retrieval system selects the documents and generates the answer.
THE WORKFLOW
Identify names, identifiers, countries and document context during ingestion.
Match mentions to resolved legal-company records and preserve unresolved or ambiguous states.
Attach registration number, tax ID, jurisdiction, parent context, source and timestamps as metadata.
Use your governed enterprise identifier and jurisdiction context to constrain the evidence supplied to the model.
WHAT VATFIND DOES
During ingestion, VATFind resolves company mentions and submitted VAT numbers or EINs to legal-company records. The resulting company identifiers, jurisdiction, source and retrieval time become structured metadata, helping the RAG system retrieve documents for the intended entity rather than a similar name or group company.
Evidence meaning: a verified association means the submitted VAT number or EIN is linked to the returned company record. It is not, by itself, confirmation of current tax-registration status, tax compliance or approval of the wider transaction.
For API checks, use vat_number outside the US and tax_identifier for US EINs. Optional fields can be absent when a source does not provide them.
CHOOSE THE RIGHT APPROACH
Index the document passages needed to answer a question, preserving their original source and context.
Keep country, registration identifiers, source and dates as structured fields for exact filtering and citation.
Model established parent and subsidiary relationships separately. A shared brand should not merge documents belonging to different entities.
CONTROL OWNERSHIP
A reliable workflow names who owns the input, who interprets the company evidence and who makes the wider decision. That separation prevents a data result from becoming an unexplained approval.
Define canonical entity IDs, indexing strategy and retrieval filters.
Resolve source records and govern legal-company attributes.
Validate document-to-entity links and maintain domain-specific exceptions.
DECISION DESIGN
| Stage | Evidence to retain | Controlled action |
|---|---|---|
| Entity extraction | Mention text, document context, jurisdiction and available identifiers. | Generate candidates without collapsing similarly named companies. |
| Resolution and indexing | Canonical company ID, legal name, aliases, local identifiers and confidence. | Attach documents and chunks to the resolved entity with provenance. |
| Retrieval | Entity filter, source document, date and relevant company evidence. | Retrieve for the intended entity and show uncertainty when the link is weak. |
EXAMPLE WORKFLOW
A contract repository contains agreements with several subsidiaries of the same group. Resolve the entity named in each agreement at ingestion, retaining unresolved mentions for review. At query time, identify whether the user means one subsidiary or the whole group. Apply that scope before sending retrieved passages to the model. Keep the document citation as well as the company-record source: the company record establishes identity, while the contract supports the claim about the agreement.
Connect the company-data toolsIMPLEMENTATION CHECKLIST
WHAT TO MEASURE
Track operating quality rather than claiming that a company match guarantees the downstream outcome.
READ THE RESULT CORRECTLY
Embeddings can find semantically similar text but do not reliably distinguish legal entities. Entity resolution should create the identity layer, while the RAG system retains document-level permissions, citations, freshness and relevance controls.
Review data and limitationsFREQUENTLY ASKED QUESTIONS
They let the retrieval layer filter and join by legal entity instead of relying only on name similarity or document wording.
Useful descriptive fields can be embedded, but governed identifiers, country, source and dates should also remain structured metadata for exact filtering and audit.
Resolve each legal entity separately, then add group relationships as linked metadata so retrieval can include or exclude the wider group intentionally.
A contracted bulk snapshot or change feed can supply agreed company records for large-scale ingestion, subject to licensed fields, markets, identifiers and delivery design.
No. Keep the relevant identifier, type and country in structured metadata as well. Your retrieval application can then apply explicit filters instead of relying on semantic similarity to distinguish legal entities.
VATFind supplies company lookup and evidence through its documented delivery methods. Your application owns the document index, embeddings, permissions, retrieval logic and answer generation.
Microsoft: how retrieval-augmented generation uses evidence RAG retrieves relevant material and supplies it to the model as grounding data.