How vivekn5500/-ai-duplicate-detection works
DupDetector AI is a Streamlit dashboard for finding semantically similar text records. Users provide manual text, a CSV, or a PDF; the app extracts records, translates and cleans them, then embeds them and calculates pairwise cosine similarity. A configurable threshold drives duplicate grouping and match diagnostics. The dashboard also presents keyword extraction, summary metrics, a similarity matrix, and a network visualization. The implementation is concentrated in app.py; the README documents capabilities consistent with that workflow. The graph reflects the shown app code; it does not assume persistence or other future-scope features.
Main entry points: app.py Streamlit app
Components 17
Dashboard
- Streamlit app
app.py
Record ingestion
- Manual text input
app.py - CSV upload
app.py - PDF extraction
app.py - Translate and clean
app.py - Google Translator
Similarity analysis
- Sentence embeddings
app.py - Sentence Transformer
- Cosine similarity
app.py - Threshold matching
app.py
Results and visualization
- Duplicate clusters
app.py - Match diagnostics
app.py - Keyword extraction
app.py - Insights metrics
app.py - Similarity network
app.py - Similarity matrix
app.py
Other components
- User
Connections 16
- User → Streamlit app: uses
README.md - Streamlit app → Manual text input: collects text
app.py - Streamlit app → CSV upload: loads records
app.py - Streamlit app → PDF extraction: extracts text
app.py - Streamlit app → Translate and clean: translates and cleans
app.py - Translate and clean → Google Translator: translates via
app.py - Streamlit app → Sentence embeddings: encodes records
app.py - Sentence embeddings → Sentence Transformer: uses model
app.py - Streamlit app → Cosine similarity: calculates scores
app.py - Streamlit app → Threshold matching: applies cutoff
app.py - Streamlit app → Duplicate clusters: groups matches
app.py - Streamlit app → Match diagnostics: renders pair details
app.py - Streamlit app → Keyword extraction: extracts keywords
app.py - Streamlit app → Insights metrics: renders counts
app.py - Streamlit app → Similarity network: builds graph
app.py - Streamlit app → Similarity matrix: renders scores
app.py