IdeaCredIdeaCred

erenisci/wikipedia_synonym_search

51

Semantic search engine over Turkish Wikipedia. Uses a 3-stage pipeline (MongoDB → Word2Vec → Elasticsearch) with synonym expansion, full-text, and vector similarity search modes.

What's novel

Semantic search engine over Turkish Wikipedia. Uses a 3-stage pipeline (MongoDB → Word2Vec → Elasticsearch) with synonym expansion, full-text, and vector similarity search modes.

Code Analysis

8 files read · 3 rounds

A 3-step pipeline that ingests Turkish Wikipedia XML into MongoDB, trains a Word2Vec model on the articles, indexes them into Elasticsearch with dense vectors, and provides a CLI search tool with synonym expansion, full-text, and vector similarity modes.

Strengths

Clean linear pipeline with well-separated steps, memory-efficient XML streaming via iterparse, and a practical synonym-enhanced search that combines Word2Vec semantic expansion with Elasticsearch multi-match. The wiki markup cleaning is thorough with 10+ targeted regex patterns.

Weaknesses

No tests at all, silent exception swallowing in ingest.py, module-level side effects in search.py (ES connection and model load at import time), and the vector search uses script_score instead of Elasticsearch 8.x native knn search. Several stale/incorrect docs (resources.md references a non-existent mongo/main.py, requirements.txt lists unused packages).

Score Breakdown

Innovation
4 (25%)
Craft
43 (35%)
Traction
17 (15%)
Scope
55 (25%)

Signal breakdown

Innovation

Not Fork+1
Code Novelty+1
Concept Novelty+1

Craft

Ci-3
Tests-5
Polish+0
Releases-2
Has License+5
Code Quality+16
Readme Quality+15
Recent Activity+7
Structure Quality+5
Commit Consistency+0
Has Dependency Mgmt+5

Traction

Forks+6
Stars+6
Hn Points+0
Watchers+3
Early Traction+0
Devto Reactions+0
Community Contribs+2

Scope

Commits+3
Languages+3
Subsystems+5
Bloat Penalty+0
Completeness+7
Contributors+6
Authored Files+8
Readme Code Match+3
Architecture Depth+3
Implementation Depth+8

Evidence

Commits

5

Contributors

2

Files

11

Active weeks

1

TestsCI/CDREADMELicenseContributing

Repository

Language

Python

Stars

1

Forks

1

License

MIT