How senthilthangaiah/bns-search-app works
This is a small Streamlit app for semantic search over Bharatiya Nyaya Sanhita text. The user enters a query; the app loads the CSV corpus and embedding model, ranks corpus entries by similarity, and displays the selected details and scores. The sampled app.py shows the runtime flow; the README documents the search and result-count controls. The pretrained model is represented as an external dependency; no separate service or storage system is evident.
Main entry points: app.py Streamlit app · bns.csv BNS corpus
Components 8
Search interface
- Streamlit app
app.py - BNS corpus
bns.csv - Corpus loader
app.py - Displayed results
app.py
Semantic search
- Model loader
app.py - Embedding model
- Similarity ranker
app.py
Other components
- Researcher
Connections 9
- Researcher → Streamlit app: enters query
README.md - Streamlit app → Corpus loader: loads corpus
app.py - Corpus loader → BNS corpus: reads CSV
app.py - Streamlit app → Model loader: loads model
app.py - Model loader → Embedding model: instantiates
app.py - Streamlit app → Similarity ranker: calls search
app.py - Similarity ranker → Embedding model: encodes text
app.py - Similarity ranker → BNS corpus: reads details
app.py - Streamlit app → Displayed results: renders matches
app.py