# muthupalaniappan925/embeddingbasedfashionsearch architecture

> Architecture diagram of the GitHub repository muthupalaniappan925/embeddingbasedfashionsearch, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-08). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/muthupalaniappan925/embeddingbasedfashionsearch
- Repository: https://github.com/muthupalaniappan925/embeddingbasedfashionsearch

## Overview

This repository provides embedding-based fashion search: a user submits a text query, the app encodes it, searches a prebuilt Faiss index, optionally filters by gender, and displays matching catalog details. A separate ingestion script prepares that index from product descriptions; the app also offers a project credit page. The graph separates those domain stages while keeping components implemented in the same file distinct. Relationships are grounded in the README and excerpted source; the CSV and index are represented as data artifacts, not inspected internally.

Main entry points: [`app.py`](https://github.com/muthupalaniappan925/embeddingbasedfashionsearch/blob/master/app.py) (Search interface), [`data_ingestion.py`](https://github.com/muthupalaniappan925/embeddingbasedfashionsearch/blob/master/data_ingestion.py) (Ingestion pipeline), [`Dataset/Myntra Fasion Clothing.csv`](https://github.com/muthupalaniappan925/embeddingbasedfashionsearch/blob/master/Dataset/Myntra%20Fasion%20Clothing.csv) (Fashion catalog), [`vector_store/myntra_embedding_vector_store.index`](https://github.com/muthupalaniappan925/embeddingbasedfashionsearch/blob/master/vector_store/myntra_embedding_vector_store.index) (Faiss vector index)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_search["Fashion search"]
  node_search_app["Search interface<br/>[app.py]"]
  node_query_encoder["Query encoder<br/>[app.py]"]
  node_similarity_search["Similarity retrieval<br/>[app.py]"]
  node_gender_filter["Gender filter<br/>[app.py]"]
  node_result_display["Result display<br/>[app.py]"]
  node_credit_page["Project credits<br/>[credit_app.py]"]
end

subgraph group_prep["Index preparation"]
  node_ingestion["Ingestion pipeline<br/>[data_ingestion.py]"]
  node_description_embedder["Description embedder<br/>[data_ingestion.py]"]
  node_faiss_builder["Faiss index builder<br/>[data_ingestion.py]"]
  node_index_writer["Index writer<br/>[data_ingestion.py]"]
end

subgraph group_catalog["Product data"]
  node_product_catalog["Fashion catalog"]
  node_vector_index[("Faiss vector index")]
end

node_visitor(("Search visitor"))

node_visitor -->|"submits query"| node_search_app
node_search_app -->|"loads catalog"| node_product_catalog
node_search_app -->|"encodes query"| node_query_encoder
node_search_app -->|"requests results"| node_similarity_search
node_search_app -->|"loads index"| node_vector_index
node_similarity_search -->|"searches vectors"| node_vector_index
node_similarity_search -->|"joins matches"| node_product_catalog
node_search_app -->|"filters results"| node_gender_filter
node_search_app -->|"renders matches"| node_result_display
node_search_app -->|"opens credits"| node_credit_page
node_ingestion -->|"loads catalog"| node_product_catalog
node_ingestion -->|"creates embeddings"| node_description_embedder
node_ingestion -->|"builds index"| node_faiss_builder
node_ingestion -->|"stores index"| node_index_writer
node_index_writer -->|"writes index"| node_vector_index

click node_search_app "https://github.com/muthupalaniappan925/embeddingbasedfashionsearch/blob/master/app.py"
click node_query_encoder "https://github.com/muthupalaniappan925/embeddingbasedfashionsearch/blob/master/app.py"
click node_similarity_search "https://github.com/muthupalaniappan925/embeddingbasedfashionsearch/blob/master/app.py"
click node_gender_filter "https://github.com/muthupalaniappan925/embeddingbasedfashionsearch/blob/master/app.py"
click node_result_display "https://github.com/muthupalaniappan925/embeddingbasedfashionsearch/blob/master/app.py"
click node_credit_page "https://github.com/muthupalaniappan925/embeddingbasedfashionsearch/blob/master/credit_app.py"
click node_ingestion "https://github.com/muthupalaniappan925/embeddingbasedfashionsearch/blob/master/data_ingestion.py"
click node_description_embedder "https://github.com/muthupalaniappan925/embeddingbasedfashionsearch/blob/master/data_ingestion.py"
click node_faiss_builder "https://github.com/muthupalaniappan925/embeddingbasedfashionsearch/blob/master/data_ingestion.py"
click node_index_writer "https://github.com/muthupalaniappan925/embeddingbasedfashionsearch/blob/master/data_ingestion.py"
click node_product_catalog "https://github.com/muthupalaniappan925/embeddingbasedfashionsearch/blob/master/Dataset/Myntra%20Fasion%20Clothing.csv"
click node_vector_index "https://github.com/muthupalaniappan925/embeddingbasedfashionsearch/blob/master/vector_store/myntra_embedding_vector_store.index"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_search_app,node_query_encoder,node_similarity_search,node_gender_filter,node_result_display,node_credit_page toneBlue
class node_ingestion,node_description_embedder,node_faiss_builder,node_index_writer toneAmber
class node_product_catalog,node_vector_index toneMint
class node_visitor toneIndigo
```

## Components

### Fashion search

- [Search interface](https://github.com/muthupalaniappan925/embeddingbasedfashionsearch/blob/master/app.py): `app.py`
- [Query encoder](https://github.com/muthupalaniappan925/embeddingbasedfashionsearch/blob/master/app.py): `app.py`
- [Similarity retrieval](https://github.com/muthupalaniappan925/embeddingbasedfashionsearch/blob/master/app.py): `app.py`
- [Gender filter](https://github.com/muthupalaniappan925/embeddingbasedfashionsearch/blob/master/app.py): `app.py`
- [Result display](https://github.com/muthupalaniappan925/embeddingbasedfashionsearch/blob/master/app.py): `app.py`
- [Project credits](https://github.com/muthupalaniappan925/embeddingbasedfashionsearch/blob/master/credit_app.py): `credit_app.py`

### Index preparation

- [Ingestion pipeline](https://github.com/muthupalaniappan925/embeddingbasedfashionsearch/blob/master/data_ingestion.py): `data_ingestion.py`
- [Description embedder](https://github.com/muthupalaniappan925/embeddingbasedfashionsearch/blob/master/data_ingestion.py): `data_ingestion.py`
- [Faiss index builder](https://github.com/muthupalaniappan925/embeddingbasedfashionsearch/blob/master/data_ingestion.py): `data_ingestion.py`
- [Index writer](https://github.com/muthupalaniappan925/embeddingbasedfashionsearch/blob/master/data_ingestion.py): `data_ingestion.py`

### Product data

- [Fashion catalog](https://github.com/muthupalaniappan925/embeddingbasedfashionsearch/blob/master/Dataset/Myntra%20Fasion%20Clothing.csv): `Dataset/Myntra Fasion Clothing.csv`
- [Faiss vector index](https://github.com/muthupalaniappan925/embeddingbasedfashionsearch/blob/master/vector_store/myntra_embedding_vector_store.index): `vector_store/myntra_embedding_vector_store.index`

### Other components

- **Search visitor**

## Connections

- Search visitor → Search interface: submits query (evidence: `README.md`)
- Search interface → Fashion catalog: loads catalog (evidence: `app.py`)
- Search interface → Query encoder: encodes query (evidence: `app.py`)
- Search interface → Similarity retrieval: requests results (evidence: `app.py`)
- Search interface → Faiss vector index: loads index (evidence: `app.py`)
- Similarity retrieval → Faiss vector index: searches vectors (evidence: `app.py`)
- Similarity retrieval → Fashion catalog: joins matches (evidence: `app.py`)
- Search interface → Gender filter: filters results (evidence: `app.py`)
- Search interface → Result display: renders matches (evidence: `app.py`)
- Search interface → Project credits: opens credits (evidence: `app.py`)
- Ingestion pipeline → Fashion catalog: loads catalog (evidence: `data_ingestion.py`)
- Ingestion pipeline → Description embedder: creates embeddings (evidence: `data_ingestion.py`)
- Ingestion pipeline → Faiss index builder: builds index (evidence: `data_ingestion.py`)
- Ingestion pipeline → Index writer: stores index (evidence: `data_ingestion.py`)
- Index writer → Faiss vector index: writes index (evidence: `data_ingestion.py`)
