awacke1 commited on
Commit
436442c
·
1 Parent(s): 7133df6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -17
app.py CHANGED
@@ -10,23 +10,9 @@ from collections import Counter
10
 
11
  # sidebar
12
  with st.sidebar:
13
- st.header("What is a Semantic Search Engine?")
14
- st.markdown("**[Semantic Search](https://medium.com/nlplanet/semantic-search-with-few-lines-of-code-490df1d53fd6)** allows retrieving documents from a corpus using a search query in a semantic way. This means that the search engine looks not only for exact text matches, but also for **overlapping semantic meaning** (e.g. synonyms and periphrases).")
15
- st.markdown("This is different from a **text-matching search engine**, which looks for exact text matches only.")
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")