Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -10,23 +10,9 @@ from collections import Counter
|
|
10 |
|
11 |
# sidebar
|
12 |
with st.sidebar:
|
13 |
-
st.header("
|
14 |
-
st.markdown("
|
15 |
-
|
16 |
-
st.header("How does semantic search work?")
|
17 |
-
st.markdown("The idea behind semantic search is to [embed](https://machinelearningmastery.com/what-are-word-embeddings/) all the entries in your corpus, which can be sentences, paragraphs, or documents, into a **vector space**. At search time, the query is embedded into the same vector space and the **[closest vectors](https://en.wikipedia.org/wiki/Cosine_similarity)** from your corpus are found.")
|
18 |
-
st.header("Useful libraries")
|
19 |
-
st.markdown("""
|
20 |
-
- [`sentence-transformers`](https://sbert.net/): Allows to easily use great pre-trained models for semantic search and has a fast implementation for finding nearest neighbors by cosine similarity.
|
21 |
-
- [`faiss`](https://github.com/facebookresearch/faiss): Allows efficient similarity search and clustering of dense vectors.
|
22 |
-
""")
|
23 |
-
st.header("Useful links")
|
24 |
-
st.markdown("""
|
25 |
-
- [Semantic Search with Sentence Transformers](https://medium.com/nlplanet/semantic-search-with-few-lines-of-code-490df1d53fd6)
|
26 |
-
- [Sentence Transformers cheatsheet](https://medium.com/nlplanet/two-minutes-nlp-sentence-transformers-cheat-sheet-2e9865083e7a)
|
27 |
-
""")
|
28 |
-
st.header("Who made this?")
|
29 |
-
st.markdown("Hi, I'm Fabio Chiusano. You can contact me on [LinkedIn](https://www.linkedin.com/in/fabio-chiusano-b6a3b311b/).")
|
30 |
|
31 |
# main content
|
32 |
st.header("Semantic Search Engine on [Medium](https://medium.com/) articles")
|
|
|
10 |
|
11 |
# sidebar
|
12 |
with st.sidebar:
|
13 |
+
st.header("Examples:")
|
14 |
+
st.markdown("This search finds content in Medium .")
|
15 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
16 |
|
17 |
# main content
|
18 |
st.header("Semantic Search Engine on [Medium](https://medium.com/) articles")
|