# Match data2vec outputs

**URL:** <https://discuss.huggingface.co/t/match-data2vec-outputs/35693>\
**Category:** 🤗Transformers\
**Created:** [April 5, 2023, 9:23pm UTC](https://discuss.huggingface.co/t/match-data2vec-outputs/35693 "2023-04-05T21:23:38Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dragosbalmau](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/dragosbalmau/32/15204_2.png) [@dragosbalmau](https://discuss.huggingface.co/u/dragosbalmau)\
**Post date:** [April 5, 2023, 9:23pm UTC](https://discuss.huggingface.co/t/match-data2vec-outputs/35693/1 "2023-04-05T21:23:38Z")

</div>

Hello,

I’m working on my final projects and decided to make a Support Chat Bot. I want my bot to find the most suitable paragraph from a documentation for the question I ask him (I want to focus on trivial questions).

These are the things that I’ve done so far:

I’ve run facebook/data2vec-text-base on all my paragraphs and stored every output in a JSON object with an identifier. Further, I’ve run the same model on the question, and with the cosine-similarity, I tried to find the closest paragraph.

The problem is that the logic doesn’t seem to work…Do you guys have any suggestions?
