Spaces:
Running
Running
charlieoneill
commited on
Commit
•
74e2e27
1
Parent(s):
b6c017f
Update app.py
Browse files
app.py
CHANGED
@@ -293,6 +293,34 @@ def create_interface():
|
|
293 |
subject = gr.Dropdown(choices=['astroPH', 'csLG'], label="Select Subject", value='astroPH')
|
294 |
|
295 |
with gr.Tabs():
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
296 |
with gr.Tab("SAErch"):
|
297 |
input_text = gr.Textbox(label="input")
|
298 |
search_results_state = gr.State([])
|
|
|
293 |
subject = gr.Dropdown(choices=['astroPH', 'csLG'], label="Select Subject", value='astroPH')
|
294 |
|
295 |
with gr.Tabs():
|
296 |
+
|
297 |
+
with gr.Tab("Home"):
|
298 |
+
gr.Markdown("""
|
299 |
+
# SAErch: Sparse Autoencoder-enhanced Semantic Search
|
300 |
+
|
301 |
+
Welcome to SAErch, an innovative approach to semantic search using Sparse Autoencoders (SAEs) trained on dense text embeddings.
|
302 |
+
|
303 |
+
## Key Concepts:
|
304 |
+
|
305 |
+
1. **Sparse Autoencoders (SAEs)**: Neural networks that learn to reconstruct input data using a sparse set of features, helping to disentangle complex representations.
|
306 |
+
|
307 |
+
2. **Feature Families**: Groups of related SAE features that represent concepts at varying levels of abstraction.
|
308 |
+
|
309 |
+
3. **Embedding Interventions**: Technique to modify search queries by manipulating specific semantic features identified by the SAE.
|
310 |
+
|
311 |
+
## How It Works:
|
312 |
+
|
313 |
+
1. SAEs are trained on embeddings from scientific paper abstracts.
|
314 |
+
2. The SAE learns interpretable features that capture various semantic concepts.
|
315 |
+
3. Users can interact with these features to fine-tune search queries.
|
316 |
+
4. The system performs semantic search using the modified embeddings.
|
317 |
+
|
318 |
+
Explore the "SAErch" tab to try out the semantic search capabilities, or dive into the "Feature Visualisation" tab to examine the learned features in more detail.
|
319 |
+
|
320 |
+
This tool demonstrates how SAEs can bridge the gap between the semantic richness of dense embeddings and the interpretability of sparse representations, offering new possibilities for precise and explainable semantic search.
|
321 |
+
""")
|
322 |
+
|
323 |
+
|
324 |
with gr.Tab("SAErch"):
|
325 |
input_text = gr.Textbox(label="input")
|
326 |
search_results_state = gr.State([])
|