How alejandromt17/proyecto-busqueda-semantica works
This is a Streamlit application for semantic and hybrid document search, backed by a distributed Spark pipeline. The principal workflow is raw-document ETL and chunking, embedding generation, Elasticsearch indexing, then user search and ranked results. The UI also exposes service status, pipeline guidance, and automatic setup. The README documents the pipeline stages and storage flow; some implementation details are unsampled, so only documented or excerpt-supported links are shown.
Main entry points: app_common.py UI utilities · 1_Busqueda.py Search page · etl_features.py ETL and chunking · batch_inference.py Embedding inference
Components 21
Search interface
- Application home
app.py - Search page
pages/1_Busqueda.py - Search client
src/semantic_search.py - Service status
pages/2_Estado.py - Pipeline guide
pages/3_Pipeline.py - Automatic setup
pages/4_Servicio_Automatico.py - UI utilities
src/app_common.py
Data pipeline
- Raw documents
- ETL and chunking
src/etl_features.py - Feature files
- Embedding inference
src/batch_inference.py - Embedding files
- Index persistence
src/persistence.py - ETL quality report
scripts/reporte_calidad_etl_fase1.py - Elasticsearch index
Configuration
- Config loader
src/project_config.py - Runtime settings
conf/config.yaml
Service operations
- Service orchestrator
scripts/servicio_auto.ps1 - MinIO object store
Other components
- Search user
- Embedding model
Connections 20
- Search user → Search page: submits query
pages/1_Busqueda.py - Search page → UI utilities: loads config
pages/1_Busqueda.py - Search page → Search client: executes search
pages/1_Busqueda.py - Search client → Elasticsearch index: queries index
src/semantic_search.py - Search page → Embedding model: encodes query
pages/1_Busqueda.py - Application home → UI utilities: loads config
app.py - Service status → UI utilities: checks services
pages/2_Estado.py - Pipeline guide → UI utilities: loads config
pages/3_Pipeline.py - Automatic setup → UI utilities: checks status
pages/4_Servicio_Automatico.py - Automatic setup → Service orchestrator: runs setup
pages/4_Servicio_Automatico.py - Config loader → Runtime settings: loads settings
src/project_config.py - Raw documents → ETL and chunking: provides inputs
README.md - ETL and chunking → MinIO object store: reads raw data
README.md - ETL and chunking → Feature files: writes chunks
README.md - Feature files → Embedding inference: provides features
README.md - Embedding inference → Embedding model: generates embeddings
README.md - Embedding inference → Embedding files: writes embeddings
README.md - Embedding files → Index persistence: provides predictions
README.md - Index persistence → Elasticsearch index: upserts chunks
README.md - ETL quality report → Feature files: validates output
README.md