AI Help

How do I find duplicate documents in a vector store before reindexing?

Maintain an ingestion manifest with stable document IDs, versions and content checksums before adding files to the index.

Steps to follow

  1. Inventory existing indexed files and their original sources. Compare normalized source identifiers and hashes of the original bytes.
  2. Distinguish identical copies from new versions and similar documents with different ownership or access rules.
  3. Reuse or replace records through an explicit ingestion policy and verify the resulting index inventory.

Example in practice

Illustrative example. Two uploads with the same content hash can be reconciled to one source record while preserving the authorized metadata.

Related AI help

Official guidance

OpenAI documentation