# Searching Keywords by relatively long text

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fsearching-keywords-by-relatively-long-text%2F15496%3E%5C
**Category:** Beginners\
**Created:** [March 8, 2022, 10:49am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fsearching-keywords-by-relatively-long-text%2F15496 "2022-03-08T10:49:25Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![saied](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/saied/32/29266_2.png) [@saied](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fsaied)%5C
**Post date:** [March 8, 2022, 10:49am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fsearching-keywords-by-relatively-long-text%2F15496%2F1 "2022-03-08T10:49:26Z")

</div>

Hey guys,  
I wanted some sort of keyword search system that we input a text(a couple of sentences) and search through keywords and return the most similar keywords based on the input text.  
so far I used [sentence transformers](https://www.sbert.net/examples/applications/semantic-search/README.html) and [fasis](https://github.com/UKPLab/sentence-transformers/blob/master/examples/applications/semantic-search/semantic_search_quora_faiss.py) for indexing. right now the problem is when I input a sentence it doesn’t return keywords instead it returns a bunch of meaningless words. for encoding keywords I used [distilbert](https://huggingface.co/HooshvareLab/distilbert-fa-zwnj-base).  
So I was wondering did I do something wrong or my whole approach isn’t correct  
Thanks 🙂

---

<div class="post-metadata">

**Author:** ![mohammedlebda](https://avatars.discourse-cdn.com/v4/letter/m/c68b51/32.png) [@mohammedlebda](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fmohammedlebda)%5C
**Post date:** [December 5, 2024, 5:38pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fsearching-keywords-by-relatively-long-text%2F15496%2F2 "2024-12-05T17:38:28Z")

</div>

does any give u an answer or do you find it?
