MossaabDev commited on
Commit
d091937
·
verified ·
1 Parent(s): 6bebdf1

Upload 36 files

Browse files
Files changed (36) hide show
  1. .env +1 -0
  2. __pycache__/main.cpython-312.pyc +0 -0
  3. app/__init__.py +0 -0
  4. app/__pycache__/__init__.cpython-312.pyc +0 -0
  5. app/__pycache__/data_loader.cpython-312.pyc +0 -0
  6. app/__pycache__/main.cpython-312.pyc +0 -0
  7. app/__pycache__/qdrant_client.cpython-312.pyc +0 -0
  8. app/__pycache__/rag.cpython-312.pyc +0 -0
  9. app/__pycache__/utils.cpython-312.pyc +0 -0
  10. app/data/cleaned_file.csv +149 -0
  11. app/data/myislamicqsdataset.csv +1 -0
  12. app/data/test.csv +21 -0
  13. app/data_loader.py +51 -0
  14. app/fine-tuned-sentence-transformer-my-dataset/1_Pooling/config.json +10 -0
  15. app/fine-tuned-sentence-transformer-my-dataset/README.md +358 -0
  16. app/fine-tuned-sentence-transformer-my-dataset/config.json +25 -0
  17. app/fine-tuned-sentence-transformer-my-dataset/config_sentence_transformers.json +14 -0
  18. app/fine-tuned-sentence-transformer-my-dataset/model.safetensors +3 -0
  19. app/fine-tuned-sentence-transformer-my-dataset/modules.json +20 -0
  20. app/fine-tuned-sentence-transformer-my-dataset/sentence_bert_config.json +4 -0
  21. app/fine-tuned-sentence-transformer-my-dataset/special_tokens_map.json +37 -0
  22. app/fine-tuned-sentence-transformer-my-dataset/tokenizer.json +0 -0
  23. app/fine-tuned-sentence-transformer-my-dataset/tokenizer_config.json +65 -0
  24. app/fine-tuned-sentence-transformer-my-dataset/vocab.txt +0 -0
  25. app/main.py +36 -0
  26. app/models/__pycache__/schemas.cpython-312.pyc +0 -0
  27. app/models/schemas.py +12 -0
  28. app/qdrant_client.py +6 -0
  29. app/rag.py +38 -0
  30. app/routes/question.py +0 -0
  31. app/utils.py +3 -0
  32. app/utils/__pycache__/embeddings.cpython-312.pyc +0 -0
  33. requirements.in +5 -0
  34. requirements.txt +141 -0
  35. run.py +5 -0
  36. sentences.index +0 -0
.env ADDED
@@ -0,0 +1 @@
 
 
1
+ qdrant = eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhY2Nlc3MiOiJtIn0.aeAEaw9iTJicWYtPqv3EzwzwhqzQGlyqFpbU02RhxKg
__pycache__/main.cpython-312.pyc ADDED
Binary file (735 Bytes). View file
 
app/__init__.py ADDED
File without changes
app/__pycache__/__init__.cpython-312.pyc ADDED
Binary file (154 Bytes). View file
 
app/__pycache__/data_loader.cpython-312.pyc ADDED
Binary file (2.6 kB). View file
 
app/__pycache__/main.cpython-312.pyc ADDED
Binary file (2.45 kB). View file
 
app/__pycache__/qdrant_client.cpython-312.pyc ADDED
Binary file (460 Bytes). View file
 
app/__pycache__/rag.cpython-312.pyc ADDED
Binary file (1.12 kB). View file
 
app/__pycache__/utils.cpython-312.pyc ADDED
Binary file (355 Bytes). View file
 
app/data/cleaned_file.csv ADDED
@@ -0,0 +1,149 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ question,answer,label
2
+ I feel sad because I miss my dead father,"And We will surely test you with something of fear and hunger and a loss of wealth and lives and fruits, but give good tidings to the patient",1
3
+ I miss my mother ,"And your Lord has decreed that you not worship except Him, and to parents, good treatment. Whether one or both of them reach old age [while] with you, say not to them [so much as], 'uff,' and do not repel them but speak to them a noble word",1
4
+ I feel bad for gaza people ,"And be patient, [O Muhammad], for the decision of your Lord, for indeed, you are in Our eyes. And exalt [Allah] with praise of your Lord when you arise",1
5
+ I feel bad for martyrs in gaza and palastine,"And never think of those who have been killed in the cause of Allah as dead. Rather, they are alive with their Lord, receiving provision",1
6
+ I am depressed and feel sad,"Kaf, Ha, Ya, Ayn, Saad.",-1
7
+ "I lost my son, I feel so sad and powerless.","And We will surely test you with something of fear and hunger and a loss of wealth and lives and fruits, but give good tidings to the patient",1
8
+ What does quran or allah says about patience?,"Give good news to those who patiently endure who say, when struck by a disaster, Surely to Allah we belong and to Him we will ?all? return. ",1
9
+ my cat just died,"And We will surely test you with something of fear and hunger and a loss of wealth and lives and fruits, but give good tidings to the patient",1
10
+ "I feel like my world is collapsing, I am broke and I don t know what to do, in pain and lost",And persevere for ?the sake of? your Lord.,1
11
+ What to do when I make good for people and they return with bad,Do not do a favour expecting more ?in return?.,1
12
+ I feel so bad for what I watched in the news today,"Surely this Quran guides to what is most upright, and gives good news to the believers who do good that they will have a mighty reward.",-1
13
+ I feel hopeless about palestine,"If you act rightly, it is for your own good, but if you do wrong, it is to your own loss. And when the second warning would come to pass, your enemies would ?be left to? totally disgrace you and enter that place of worship as they entered it the first time, and utterly destroy whatever would fall into their hands.",1
14
+ "I have commited a lot of sins, and I lost hope and I wanna return to Allah","Say, ?O Prophet, that Allah says,? O My servants who have exceeded the limits against their souls! Do not lose hope in Allah s mercy, for Allah certainly forgives all sins.1 He is indeed the All-Forgiving, Most Merciful.",1
15
+ "I have done a lot of bad things, I wanna return to allahm but I fear allah will not forgive me","Say, ?O Prophet, that Allah says,? O My servants who have exceeded the limits against their souls! Do not lose hope in Allah s mercy, for Allah certainly forgives all sins.1 He is indeed the All-Forgiving, Most Merciful.",1
16
+ "I was addicted to alcohol, will god forgive me?","Say, ?O Prophet, that Allah says,? O My servants who have exceeded the limits against their souls! Do not lose hope in Allah s mercy, for Allah certainly forgives all sins.1 He is indeed the All-Forgiving, Most Merciful.",1
17
+ I seek forgivenes,"Say, ?O Prophet, that Allah says,? O My servants who have exceeded the limits against their souls! Do not lose hope in Allah s mercy, for Allah certainly forgives all sins.1 He is indeed the All-Forgiving, Most Merciful.",1
18
+ I fear allah will not forgive my sins,"Say, ?O Prophet, that Allah says,? O My servants who have exceeded the limits against their souls! Do not lose hope in Allah s mercy, for Allah certainly forgives all sins.1 He is indeed the All-Forgiving, Most Merciful.",1
19
+ I ask for guidance,"Or ?a soul will? say, If only Allah had guided me, I would have certainly been one of the righteous. ",-1
20
+ "I feel like my heart is in pain, I am hopeless and depressed. I left my house and family and I lost everythin.","O my sons! Go and search ?diligently? for Joseph and his brother. And do not lose hope in the mercy of Allah, for no one loses hope in Allah s mercy except those with no faith. ",1
21
+ "I am fighting in Jihad against kufar, can you give me some advice","O believers! Patiently endure, persevere, stand on guard,1 and be mindful of Allah, so you may be successful.",1
22
+ "I am in the battlefield against Kufar, and I need support, I start loosing my patience","O believers! Patiently endure, persevere, stand on guard,1 and be mindful of Allah, so you may be successful.",1
23
+ "I am in the frontlines, fighting and guarding in gaza, I want some ayats about patience in Jihad and battlefield","O believers! Patiently endure, persevere, stand on guard,1 and be mindful of Allah, so you may be successful.",1
24
+ "I am in the battlefield, fighting and guardin gainst occupation","O believers! Patiently endure, persevere, stand on guard,1 and be mindful of Allah, so you may be successful.",1
25
+ "I am in the battlefield against Kufar, and I need support, I start loosing my patience","O believers! Patiently endure, persevere, stand on guard,1 and be mindful of Allah, so you may be successful.",1
26
+ give me something about jihad,"O believers! Patiently endure, persevere, stand on guard,1 and be mindful of Allah, so you may be successful.",1
27
+ tell me about fighting kufar,"O believers! Patiently endure, persevere, stand on guard,1 and be mindful of Allah, so you may be successful.",1
28
+ I can't take it anymore,"Allah does not require of any soul more than what it can afford. All good will be for its own benefit, and all evil will be to its own loss. ?The believers pray,? Our Lord! Do not punish us if we forget or make a mistake. Our Lord! Do not place a burden on us like the one you placed on those before us. Our Lord! Do not burden us with what we cannot bear. Pardon us, forgive us, and have mercy on us. You are our ?only? Guardian. So grant us victory over the disbelieving people. ",1
29
+ I do not think I can do it anymore,"Allah does not require of any soul more than what it can afford. All good will be for its own benefit, and all evil will be to its own loss. ?The believers pray,? Our Lord! Do not punish us if we forget or make a mistake. Our Lord! Do not place a burden on us like the one you placed on those before us. Our Lord! Do not burden us with what we cannot bear. Pardon us, forgive us, and have mercy on us. You are our ?only? Guardian. So grant us victory over the disbelieving people. ",1
30
+ I feel like I reach my limits,"Allah does not require of any soul more than what it can afford. All good will be for its own benefit, and all evil will be to its own loss. ?The believers pray,? Our Lord! Do not punish us if we forget or make a mistake. Our Lord! Do not place a burden on us like the one you placed on those before us. Our Lord! Do not burden us with what we cannot bear. Pardon us, forgive us, and have mercy on us. You are our ?only? Guardian. So grant us victory over the disbelieving people. ",1
31
+ how to treat my parents,"We have commanded people to honour their parents. But if they urge you to associate with Me what you have no knowledge of,1 then do not obey them. To Me you will ?all? return, and then I will inform you of what you used to do.",1
32
+ I want to fight against the occupation and kufar,"O believers! Patiently endure, persevere, stand on guard,1 and be mindful of Allah, so you may be successful.",1
33
+ tell me about paradise,"We have commanded people to honour their parents. But if they urge you to associate with Me what you have no knowledge of,1 then do not obey them. To Me you will ?all? return, and then I will inform you of what you used to do.",-1
34
+ "I feel like I have heavy moutain on me, I cant take it anymore.","Allah does not require of any soul more than what it can afford. All good will be for its own benefit, and all evil will be to its own loss. ?The believers pray,? Our Lord! Do not punish us if we forget or make a mistake. Our Lord! Do not place a burden on us like the one you placed on those before us. Our Lord! Do not burden us with what we cannot bear. Pardon us, forgive us, and have mercy on us. You are our ?only? Guardian. So grant us victory over the disbelieving people. ",1
35
+ What should we do against the occupation,"O believers! Patiently endure, persevere, stand on guard,1 and be mindful of Allah, so you may be successful.",1
36
+ what if I dislike something,And live with them in kindness. For if you dislike them - perhaps you dislike a thing and Allah makes therein much good,-1
37
+ I have problems with my wife,"When you divorce women and they have reached the end of their waiting period, do not ?let the guardians? prevent them from re-marrying their ex-husbands if they come to an honourable agreement. This is enjoined on whoever has faith in Allah and the Last Day. This is purer and more dignifying for you. Allah knows and you do not know.",-1
38
+ I have problems with my divorced wife,"And if you divorce them before consummating the marriage but after deciding on a dowry, pay half of the dowry, unless the wife graciously waives it or the husband graciously pays in full. Graciousness is closer to righteousness. And do not forget kindness among yourselves. Surely Allah is All-Seeing of what you do.",1
39
+ I wanna be a martyr,"O believers! Patiently endure, persevere, stand on guard,1 and be mindful of Allah, so you may be successful.",1
40
+ "I can't take it anymore, I don t know what to do","Allah does not require of any soul more than what it can afford. All good will be for its own benefit, and all evil will be to its own loss. ?The believers pray,? Our Lord! Do not punish us if we forget or make a mistake. Our Lord! Do not place a burden on us like the one you placed on those before us. Our Lord! Do not burden us with what we cannot bear. Pardon us, forgive us, and have mercy on us. You are our ?only? Guardian. So grant us victory over the disbelieving people. ",1
41
+ What to do when I devorcem tell me,"When you divorce women and they have ?almost? reached the end of their waiting period, either retain them honourably or let them go honourably. But do not retain them ?only? to harm them ?or? to take advantage ?of them?. Whoever does that surely wrongs his own soul. Do not take Allah s revelations lightly. Remember Allah s favours upon you as well as the Book and wisdom1 He has sent down for your guidance. Be mindful of Allah, and know that Allah has ?perfect? knowledge of all things.",1
42
+ tell me about divorce,"When you divorce women and they have ?almost? reached the end of their waiting period, either retain them honourably or let them go honourably. But do not retain them ?only? to harm them ?or? to take advantage ?of them?. Whoever does that surely wrongs his own soul. Do not take Allah s revelations lightly. Remember Allah s favours upon you as well as the Book and wisdom1 He has sent down for your guidance. Be mindful of Allah, and know that Allah has ?perfect? knowledge of all things.",1
43
+ What to do when I divorce,"When you divorce women and they have ?almost? reached the end of their waiting period, either retain them honourably or let them go honourably. But do not retain them ?only? to harm them ?or? to take advantage ?of them?. Whoever does that surely wrongs his own soul. Do not take Allah s revelations lightly. Remember Allah s favours upon you as well as the Book and wisdom1 He has sent down for your guidance. Be mindful of Allah, and know that Allah has ?perfect? knowledge of all things.",1
44
+ I am sad seeing what Israel is doing for chindren in gaza and palastine,O Children of Israel! Remember ?all? the favours I granted you and how I honoured you above the others,-1
45
+ "I am really sad, I hate my life and I wanna suicide","And seek help through patience and prayer. Indeed, it is a burden except for the humble",1
46
+ "I did a lot of sins, what to do know?","?They are? those who, upon committing an evil deed or wronging themselves, remember Allah and seek forgiveness for their sins and who forgives sins except Allah? and they do not knowingly persist in wrongdoing?",1
47
+ "I feel like demons and devil are defeating me, I am losing my belief","?They say,? Our Lord! Do not let our hearts deviate after you have guided us. Grant us Your mercy. You are indeed the Giver ?of all bounties?.",1
48
+ tell me about patience,"O you who have believed, seek help through patience and prayer. Indeed, Allah is with the patient",1
49
+ what is peace in islam?,"And if an evil whisper comes to you from Satan, then seek refuge in Allah. Indeed, He is Hearing and Knowing",-1
50
+ "I am in pain, I feel useless","O you who have believed, seek help through patience and prayer. Indeed, Allah is with the patient",1
51
+ What is patience ?,"O you who have believed, seek help through patience and prayer. Indeed, Allah is with the patient",1
52
+ "sometimes I get a lot of evil thoughts, and I fear for no reasons, maybe devil is hurting me?","And if an evil whisper comes to you from Satan, then seek refuge in Allah. Indeed, He is Hearing and Knowing",1
53
+ I am fighting against the enemy,"O mankind, eat from whatever is on earth [that is] lawful and good and do not follow the footsteps of Satan. Indeed, he is to you a clear enemy",-1
54
+ "I dislike my life, I hate my life, I hate my wife, I hate my family, I don t deserve this",And live with them in kindness. For if you dislike them - perhaps you dislike a thing and Allah makes therein much good,1
55
+ "I don t like the field I am studying,I wish I am studying what I like, I am depressed now, what to do?",And live with them in kindness. For if you dislike them - perhaps you dislike a thing and Allah makes therein much good,1
56
+ "I wanted to marry a girl, but I couldn't and now she is married","But perhaps you hate a thing and it is good for you; and perhaps you love a thing and it is bad for you. And Allah knows, while you know not",1
57
+ I failed in exams,"But perhaps you hate a thing and it is good for you; and perhaps you love a thing and it is bad for you. And Allah knows, while you know not",1
58
+ I can not provide for my family,"Bid your people to pray, and be diligent in ?observing? it. We do not ask you to provide. It is We Who provide for you. And the ultimate outcome is ?only? for ?the people of? righteousness.",-1
59
+ "I live in a very bad country, I wish I live in another country","But perhaps you hate a thing and it is good for you; and perhaps you love a thing and it is bad for you. And Allah knows, while you know not",1
60
+ "Thank you very much, you made my day better, thanks","Those who believe and do good, for them will be bliss and an honourable destination. ",1
61
+ "I want to return to allah, I made a lot of bad things, how to return to alla?",There is no god ?worthy of worship? except You. Glory be to You! I have certainly done wrong.,1
62
+ "God bless you, and grant you paradise","Those who believe and do good, for them will be bliss and an honourable destination. ",1
63
+ I feel like allah is testing me,"But perhaps you hate a thing and it is good for you; and perhaps you love a thing and it is bad for you. And Allah knows, while you know not",1
64
+ can quran cure me,"O humanity! Indeed, there has come to you a warning from your Lord, a cure for what is in the hearts, a guide, and a mercy for the believers.",1
65
+ "I did a lot of good deeds, what should I get?","Those who believe and do good, for them will be bliss and an honourable destination. ",1
66
+ "I was a bad person, now I wanna return to allah",There is no god ?worthy of worship? except You. Glory be to You! I have certainly done wrong.,1
67
+ what is mercy in quran,"O humanity! Indeed, there has come to you a warning from your Lord, a cure for what is in the hearts, a guide, and a mercy for the believers.",1
68
+ how can quran cure me and make me happy?,"O humanity! Indeed, there has come to you a warning from your Lord, a cure for what is in the hearts, a guide, and a mercy for the believers.",1
69
+ "I feel so ill, headache and pain in my teeths, I am sick, how can you help me?","And when I am ill, it is He who cures me",1
70
+ "My mother just died, I feel so sad","Every soul will taste death. And you will only receive your full reward on the Day of Judgment. Whoever is spared from the Fire and is admitted into Paradise will ?indeed? triumph, whereas the life of this world is no more than the delusion of enjoyment.",1
71
+ "is prayers mandatory, I want my brother and may family to pray everyday","Bid your people to pray, and be diligent in ?observing? it. We do not ask you to provide. It is We Who provide for you. And the ultimate outcome is ?only? for ?the people of? righteousness.",1
72
+ what is quran,"O humanity! Indeed, there has come to you a warning from your Lord, a cure for what is in the hearts, a guide, and a mercy for the believers.",1
73
+ do I need to do good deeds,"And say, 'Do [as you will], for Allah will see your deeds, and [so will] His Messenger and the believers",1
74
+ non believers are disturbing me and bothering me,"Be patient ?O Prophet?, for your patience is only with Allah s help. Do not grieve over those ?who disbelieve?, nor be distressed by their schemes.",1
75
+ "I lost my friend, he died and I miss him","Every soul will taste death. And you will only receive your full reward on the Day of Judgment. Whoever is spared from the Fire and is admitted into Paradise will ?indeed? triumph, whereas the life of this world is no more than the delusion of enjoyment.",1
76
+ I am so sick,"And when I am ill, it is He who cures me",1
77
+ I fear death,"Every soul will taste death. And you will only receive your full reward on the Day of Judgment. Whoever is spared from the Fire and is admitted into Paradise will ?indeed? triumph, whereas the life of this world is no more than the delusion of enjoyment.",1
78
+ I am so sick and afraid that I will not survive,"And when I am ill, it is He who cures me",1
79
+ I have cancer and I am hopeless,"Be patient ?O Prophet?, for your patience is only with Allah s help. Do not grieve over those ?who disbelieve?, nor be distressed by their schemes.",1
80
+ What about working for good deeds,"And say, 'Do [as you will], for Allah will see your deeds, and [so will] His Messenger and the believers",1
81
+ "I am scared and afraid of death, since my friend died","Every soul will taste death. And you will only receive your full reward on the Day of Judgment. Whoever is spared from the Fire and is admitted into Paradise will ?indeed? triumph, whereas the life of this world is no more than the delusion of enjoyment.",1
82
+ How to be patient,"Be patient ?O Prophet?, for your patience is only with Allah s help. Do not grieve over those ?who disbelieve?, nor be distressed by their schemes.",1
83
+ tell me about death,"Every soul will taste death. And you will only receive your full reward on the Day of Judgment. Whoever is spared from the Fire and is admitted into Paradise will ?indeed? triumph, whereas the life of this world is no more than the delusion of enjoyment.",1
84
+ am I gonna be judged for my good things and deeds?,"And say, 'Do [as you will], for Allah will see your deeds, and [so will] His Messenger and the believers",1
85
+ "I want my friend to pray, tell me about prayers?","Bid your people to pray, and be diligent in ?observing? it. We do not ask you to provide. It is We Who provide for you. And the ultimate outcome is ?only? for ?the people of? righteousness.",1
86
+ "I dream of a lot of things I wanna realise, can allah realise them for me","And your Lord says, 'Call upon Me; I will respond to you.",1
87
+ tell me about good deeds,And establish prayer and give zakah and bow with those who bow [in worship and obedience],1
88
+ does allah answer my prayers?,"When My servants ask you ?O Prophet? about Me: I am truly near. I respond to one s prayer when they call upon Me. So let them respond ?with obedience? to Me and believe in Me, perhaps they will be guided ?to the Right Way?.",1
89
+ are prayers or salat obligatory,"Bid your people to pray, and be diligent in ?observing? it. We do not ask you to provide. It is We Who provide for you. And the ultimate outcome is ?only? for ?the people of? righteousness.",1
90
+ I always pray but I do not get what I ask for,"And your Lord says, 'Call upon Me; I will respond to you.",1
91
+ tell me about prayers,And establish prayer and give zakah and bow with those who bow [in worship and obedience],1
92
+ I am very poor and I cant provide for my family,"And We will surely test you with something of fear and hunger and a loss of wealth and lives and fruits, but give good tidings to the patient",1
93
+ my dog died and I am sad and depressed,"And We will surely test you with something of fear and hunger and a loss of wealth and lives and fruits, but give good tidings to the patient",1
94
+ I am depressed and feel scared,"And We will surely test you with something of fear and hunger and a loss of wealth and lives and fruits, but give good tidings to the patient",1
95
+ will god respond to my prayers?,"And your Lord says, 'Call upon Me; I will respond to you.",1
96
+ will allah answer my prayers?,"When My servants ask you ?O Prophet? about Me: I am truly near. I respond to one s prayer when they call upon Me. So let them respond ?with obedience? to Me and believe in Me, perhaps they will be guided ?to the Right Way?.",1
97
+ tell me about praying,And establish prayer and give zakah and bow with those who bow [in worship and obedience],1
98
+ "is allah testing me or turtoring me, it is really difficult","And We will surely test you with something of fear and hunger and a loss of wealth and lives and fruits, but give good tidings to the patient",1
99
+ tell me about food in quran,"O mankind, eat from whatever is on earth [that is] lawful and good and do not follow the footsteps of Satan. Indeed, he is to you a clear enemy",1
100
+ how to behave in family arguments ,"Repel evil with that which is better, and then the one whom there is enmity between you and him will become as though he was a close friend",1
101
+ I feel hungry,"And We will surely test you with something of fear and hunger and a loss of wealth and lives and fruits, but give good tidings to the patient",1
102
+ I feel really hungry and I need food,"And We will surely test you with something of fear and hunger and a loss of wealth and lives and fruits, but give good tidings to the patient",1
103
+ what about food in quran,"O mankind, eat from whatever is on earth [that is] lawful and good and do not follow the footsteps of Satan. Indeed, he is to you a clear enemy",1
104
+ my familly do no let me pray,"Again, no! Never obey him ?O Prophet?! Rather, ?continue to? prostrate and draw near ?to Allah?.",1
105
+ my familly do not treat me good,"Repel evil with that which is better, and then the one whom there is enmity between you and him will become as though he was a close friend",1
106
+ how to act in arguments,"And when the ignorant address them, they say words of peace",1
107
+ "tell me about mercy, I want to have mercy in my life",We have sent you ?O Prophet? only as a mercy for the whole world.,1
108
+ "how to avoid fights, and spread love?","Repel evil with that which is better, and then the one whom there is enmity between you and him will become as though he was a close friend",1
109
+ my name is Mohammed,We have sent you ?O Prophet? only as a mercy for the whole world.,-1
110
+ "tell me about Mohammed, prophet mohammed",We have sent you ?O Prophet? only as a mercy for the whole world.,1
111
+ my friends are not letting me pray,"Again, no! Never obey him ?O Prophet?! Rather, ?continue to? prostrate and draw near ?to Allah?.",1
112
+ how to act against the evil ,Not equal are the good deed and the bad deed. Repel [evil] by that [deed] which is better; and thereupon the one whom between you and him is enmity [will become] as though he was a devoted friend,1
113
+ how to act against the evil?,"Repel evil with that which is better, and then the one whom there is enmity between you and him will become as though he was a close friend",1
114
+ what to do when an ignorant start to argue with me?,"And when the ignorant address them, they say words of peace",1
115
+ sometimes I feel like the devil will not let me pray,"Again, no! Never obey him ?O Prophet?! Rather, ?continue to? prostrate and draw near ?to Allah?.",1
116
+ what is the message of Islam,We have sent you ?O Prophet? only as a mercy for the whole world.,1
117
+ what to do when an argument srarts at home with the familly,"And when the ignorant address them, they say words of peace",-1
118
+ what if they do not let me pray,"Again, no! Never obey him ?O Prophet?! Rather, ?continue to? prostrate and draw near ?to Allah?.",1
119
+ my friend turned on me and now he is asking for help,Not equal are the good deed and the bad deed. Repel [evil] by that [deed] which is better; and thereupon the one whom between you and him is enmity [will become] as though he was a devoted friend,1
120
+ I argue a lot,"And when the ignorant address them, they say words of peace",1
121
+ someone is against praying,"Again, no! Never obey him ?O Prophet?! Rather, ?continue to? prostrate and draw near ?to Allah?.",1
122
+ my teacher is treating me so bad,Not equal are the good deed and the bad deed. Repel [evil] by that [deed] which is better; and thereupon the one whom between you and him is enmity [will become] as though he was a devoted friend,1
123
+ tell me about peace,"And when the ignorant address them, they say words of peace",-1
124
+ how to be a friend with the enemy,"Repel evil with that which is better, and then the one whom there is enmity between you and him will become as though he was a close friend",1
125
+ what is the message of prophet Mohammed,We have sent you ?O Prophet? only as a mercy for the whole world.,1
126
+ "tell me about mercy, I want to have mercy in my life",We have sent you ?O Prophet? only as a mercy for the whole world.,1
127
+ I am sad I saw kids in gaza are dying,And never think that Allah is unaware of what the wrongdoers do. He only delays them for a Day when eyes will stare [in horror],1
128
+ I want peace,We have sent you ?O Prophet? only as a mercy for the whole world.,1
129
+ "I saw someone killing a cat in the street, I felt helpless and sad",And never think that Allah is unaware of what the wrongdoers do. He only delays them for a Day when eyes will stare [in horror],1
130
+ "my boss is really opressive, what does quran says about opression?",And never think that Allah is unaware of what the wrongdoers do. He only delays them for a Day when eyes will stare [in horror],1
131
+ What to do when I make good for people and they return with bad,Do not do a favour expecting more ?in return?.,1
132
+ what about opression?,And never think that Allah is unaware of what the wrongdoers do. He only delays them for a Day when eyes will stare [in horror],1
133
+ "is prayers mandatory, I want my brother and may family to pray everyday","Bid your people to pray, and be diligent in ?observing? it. We do not ask you to provide. It is We Who provide for you. And the ultimate outcome is ?only? for ?the people of? righteousness.",1
134
+ What to do when I make good for people and they return with bad,Do not do a favour expecting more ?in return?.,1
135
+ people opressed me,And never think that Allah is unaware of what the wrongdoers do. He only delays them for a Day when eyes will stare [in horror],1
136
+ "I saw people very hungry in gaza because of ocupation, I feel sad for them",And never think that Allah is unaware of what the wrongdoers do. He only delays them for a Day when eyes will stare [in horror],1
137
+ "is prayers mandatory, I want my brother and may family to pray everyday","Bid your people to pray, and be diligent in ?observing? it. We do not ask you to provide. It is We Who provide for you. And the ultimate outcome is ?only? for ?the people of? righteousness.",1
138
+ What to do when I make good for people and they return with bad,Do not do a favour expecting more ?in return?.,1
139
+ "Israel, America and Kufar are opressing muslims, ocupying them, killing them",And never think that Allah is unaware of what the wrongdoers do. He only delays them for a Day when eyes will stare [in horror],1
140
+ I feel sad for palastine ,And never think that Allah is unaware of what the wrongdoers do. He only delays them for a Day when eyes will stare [in horror],1
141
+ my cousin got prisoned by opression,And never think that Allah is unaware of what the wrongdoers do. He only delays them for a Day when eyes will stare [in horror],1
142
+ What to do when I make good for people and they return with bad,Do not do a favour expecting more ?in return?.,1
143
+ what allah will do for opressives,And never think that Allah is unaware of what the wrongdoers do. He only delays them for a Day when eyes will stare [in horror],1
144
+ what will happen for opressives in the day of judgment,And never think that Allah is unaware of what the wrongdoers do. He only delays them for a Day when eyes will stare [in horror],1
145
+ I hate occupatoin and opression,And never think that Allah is unaware of what the wrongdoers do. He only delays them for a Day when eyes will stare [in horror],1
146
+ "is prayers mandatory, I want my brother and may family to pray everyday","Bid your people to pray, and be diligent in ?observing? it. We do not ask you to provide. It is We Who provide for you. And the ultimate outcome is ?only? for ?the people of? righteousness.",1
147
+ "is prayers mandatory, I want my brother and may family to pray everyday","Bid your people to pray, and be diligent in ?observing? it. We do not ask you to provide. It is We Who provide for you. And the ultimate outcome is ?only? for ?the people of? righteousness.",1
148
+ "is prayers mandatory, I want my brother and may family to pray everyday","Bid your people to pray, and be diligent in ?observing? it. We do not ask you to provide. It is We Who provide for you. And the ultimate outcome is ?only? for ?the people of? righteousness.",1
149
+ "is prayers mandatory, I want my brother and may family to pray everyday","Bid your people to pray, and be diligent in ?observing? it. We do not ask you to provide. It is We Who provide for you. And the ultimate outcome is ?only? for ?the people of? righteousness.",1
app/data/myislamicqsdataset.csv ADDED
@@ -0,0 +1 @@
 
 
1
+ question,answer,label
app/data/test.csv ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ question,answer,label
2
+ I feel so depressed and lonely after losing my job,"And We will surely test you with something of fear and hunger and a loss of wealth and lives and fruits, but give good tidings to the patient",1
3
+ My father passed away last month and I can't stop crying,"Every soul will taste death. And you will only receive your full reward on the Day of Judgment. Whoever is spared from the Fire and is admitted into Paradise will ?indeed? triumph, whereas the life of this world is no more than the delusion of enjoyment.",1
4
+ I committed many sins in my youth and now I regret them,"Say, ?O Prophet, that Allah says,? O My servants who have exceeded the limits against their souls! Do not lose hope in Allah s mercy, for Allah certainly forgives all sins.1 He is indeed the All-Forgiving, Most Merciful.",1
5
+ How can I be more patient with my difficult situation?,"O you who have believed, seek help through patience and prayer. Indeed, Allah is with the patient",1
6
+ I'm struggling financially and can't pay my bills,"And We will surely test you with something of fear and hunger and a loss of wealth and lives and fruits, but give good tidings to the patient",1
7
+ My wife and I are constantly arguing,"And live with them in kindness. For if you dislike them - perhaps you dislike a thing and Allah makes therein much good",1
8
+ I feel distant from Allah and don't know how to reconnect,"When My servants ask you ?O Prophet? about Me: I am truly near. I respond to one s prayer when they call upon Me. So let them respond ?with obedience? to Me and believe in Me, perhaps they will be guided ?to the Right Way?.",1
9
+ What should I do when I have evil thoughts?,"And if an evil whisper comes to you from Satan, then seek refuge in Allah. Indeed, He is Hearing and Knowing",1
10
+ I'm sick with fever and feel very weak,"And when I am ill, it is He who cures me",1
11
+ How can I strengthen my faith in difficult times?,"O believers! Patiently endure, persevere, stand on guard,1 and be mindful of Allah, so you may be successful.",1
12
+ I feel hopeless about the situation in Palestine,"And never think that Allah is unaware of what the wrongdoers do. He only delays them for a Day when eyes will stare [in horror]",1
13
+ My children don't respect me anymore,"We have commanded people to honour their parents. But if they urge you to associate with Me what you have no knowledge of,1 then do not obey them. To Me you will ?all? return, and then I will inform you of what you used to do.",1
14
+ I want to repent but feel my sins are too great,"?They are? those who, upon committing an evil deed or wronging themselves, remember Allah and seek forgiveness for their sins and who forgives sins except Allah? and they do not knowingly persist in wrongdoing?",1
15
+ I'm being treated unfairly at work,"And never think that Allah is unaware of what the wrongdoers do. He only delays them for a Day when eyes will stare [in horror]",1
16
+ How can I control my anger during arguments?,"And when the ignorant address them, they say words of peace",1
17
+ I feel so anxious about the future,"Allah does not require of any soul more than what it can afford. All good will be for its own benefit, and all evil will be to its own loss.",1
18
+ My prayers feel unanswered - what should I do?,"And your Lord says, 'Call upon Me; I will respond to you.",1
19
+ I lost my home in a natural disaster,"And We will surely test you with something of fear and hunger and a loss of wealth and lives and fruits, but give good tidings to the patient",1
20
+ How can I be a better Muslim?,"And establish prayer and give zakah and bow with those who bow [in worship and obedience]",1
21
+ I'm struggling with addiction and want to stop,"Say, ?O Prophet, that Allah says,? O My servants who have exceeded the limits against their souls! Do not lose hope in Allah s mercy, for Allah certainly forgives all sins.1 He is indeed the All-Forgiving, Most Merciful.",1
app/data_loader.py ADDED
@@ -0,0 +1,51 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import pandas as pd
2
+ from sentence_transformers import SentenceTransformer
3
+ import torch
4
+ from app.utils import remove_numbers
5
+ from app.qdrant_client import client
6
+ from qdrant_client.http import models
7
+ from pympler import asizeof
8
+ print("Loading model and data...")
9
+
10
+ device = 'cuda' if torch.cuda.is_available() else 'cpu'
11
+ print(f"Using device: {device}")
12
+
13
+ model = SentenceTransformer("app/fine-tuned-sentence-transformer-my-dataset", device=device)
14
+ print("model size : ", asizeof.asizeof(model))
15
+ df = pd.read_csv("app/data/cleaned_file.csv")
16
+
17
+ df['answer'] = df['answer'].apply(remove_numbers)
18
+ ayat = list(set(df['answer']))
19
+ print(f"Total unique ayat loaded: {asizeof.asizeof(ayat)}")
20
+
21
+ print("✅ Model and embeddings ready.")
22
+
23
+
24
+ # --- Check if collection exists ---
25
+ collections = [c.name for c in client.get_collections().collections]
26
+ if "ayahs_collection" not in collections:
27
+ print("Creating Qdrant collection and uploading embeddings...")
28
+ embeddings = model.encode(ayat, convert_to_tensor=False).tolist()
29
+ client.recreate_collection(
30
+ collection_name="ayahs_collection",
31
+
32
+ vectors_config=models.VectorParams(
33
+ size=len(embeddings[0]),
34
+ distance=models.Distance.COSINE
35
+ ),
36
+ )
37
+
38
+ points = [
39
+ models.PointStruct(
40
+ id=idx,
41
+ vector=emb,
42
+ payload={"text": ayah}
43
+ )
44
+ for idx, (emb, ayah) in enumerate(zip(embeddings, ayat))
45
+ ]
46
+
47
+ client.upsert(collection_name="ayahs_collection", points=points)
48
+ print("✅ Embeddings uploaded to Qdrant.")
49
+ else:
50
+ print("✅ Collection already exists, skipping upload.")
51
+ # Load embeddings from Qdrant
app/fine-tuned-sentence-transformer-my-dataset/1_Pooling/config.json ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "word_embedding_dimension": 384,
3
+ "pooling_mode_cls_token": false,
4
+ "pooling_mode_mean_tokens": true,
5
+ "pooling_mode_max_tokens": false,
6
+ "pooling_mode_mean_sqrt_len_tokens": false,
7
+ "pooling_mode_weightedmean_tokens": false,
8
+ "pooling_mode_lasttoken": false,
9
+ "include_prompt": true
10
+ }
app/fine-tuned-sentence-transformer-my-dataset/README.md ADDED
@@ -0,0 +1,358 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ tags:
3
+ - sentence-transformers
4
+ - sentence-similarity
5
+ - feature-extraction
6
+ - dense
7
+ - generated_from_trainer
8
+ - dataset_size:148
9
+ - loss:CosineSimilarityLoss
10
+ base_model: sentence-transformers/all-MiniLM-L6-v2
11
+ widget:
12
+ - source_sentence: I live in a very bad country, I wish I live in another country
13
+ sentences:
14
+ - O believers! Patiently endure, persevere, stand on guard, and be mindful of Allah,
15
+ so you may be successful.
16
+ - But perhaps you hate a thing and it is good for you; and perhaps you love a thing
17
+ and it is bad for you. And Allah knows, while you know not
18
+ - Do not do a favour expecting more ?in return?.
19
+ - source_sentence: My mother just died, I feel so sad
20
+ sentences:
21
+ - And never think that Allah is unaware of what the wrongdoers do. He only delays
22
+ them for a Day when eyes will stare [in horror]
23
+ - Every soul will taste death. And you will only receive your full reward on the
24
+ Day of Judgment. Whoever is spared from the Fire and is admitted into Paradise
25
+ will ?indeed? triumph, whereas the life of this world is no more than the delusion
26
+ of enjoyment.
27
+ - Every soul will taste death. And you will only receive your full reward on the
28
+ Day of Judgment. Whoever is spared from the Fire and is admitted into Paradise
29
+ will ?indeed? triumph, whereas the life of this world is no more than the delusion
30
+ of enjoyment.
31
+ - source_sentence: I ask for guidance
32
+ sentences:
33
+ - We have sent you ?O Prophet? only as a mercy for the whole world.
34
+ - 'Or ?a soul will? say, If only Allah had guided me, I would have certainly been
35
+ one of the righteous. '
36
+ - And live with them in kindness. For if you dislike them - perhaps you dislike
37
+ a thing and Allah makes therein much good
38
+ - source_sentence: 'I feel bad for gaza people '
39
+ sentences:
40
+ - And We will surely test you with something of fear and hunger and a loss of wealth
41
+ and lives and fruits, but give good tidings to the patient
42
+ - We have sent you ?O Prophet? only as a mercy for the whole world.
43
+ - And be patient, [O Muhammad], for the decision of your Lord, for indeed, you are
44
+ in Our eyes. And exalt [Allah] with praise of your Lord when you arise
45
+ - source_sentence: can quran cure me
46
+ sentences:
47
+ - O humanity! Indeed, there has come to you a warning from your Lord, a cure for
48
+ what is in the hearts, a guide, and a mercy for the believers.
49
+ - 'Those who believe and do good, for them will be bliss and an honourable destination. '
50
+ - Not equal are the good deed and the bad deed. Repel [evil] by that [deed] which
51
+ is better; and thereupon the one whom between you and him is enmity [will become]
52
+ as though he was a devoted friend
53
+ pipeline_tag: sentence-similarity
54
+ library_name: sentence-transformers
55
+ ---
56
+
57
+ # SentenceTransformer based on sentence-transformers/all-MiniLM-L6-v2
58
+
59
+ This is a [sentence-transformers](https://www.SBERT.net) model finetuned from [sentence-transformers/all-MiniLM-L6-v2](https://huggingface.co/sentence-transformers/all-MiniLM-L6-v2). It maps sentences & paragraphs to a 384-dimensional dense vector space and can be used for semantic textual similarity, semantic search, paraphrase mining, text classification, clustering, and more.
60
+
61
+ ## Model Details
62
+
63
+ ### Model Description
64
+ - **Model Type:** Sentence Transformer
65
+ - **Base model:** [sentence-transformers/all-MiniLM-L6-v2](https://huggingface.co/sentence-transformers/all-MiniLM-L6-v2) <!-- at revision c9745ed1d9f207416be6d2e6f8de32d1f16199bf -->
66
+ - **Maximum Sequence Length:** 256 tokens
67
+ - **Output Dimensionality:** 384 dimensions
68
+ - **Similarity Function:** Cosine Similarity
69
+ <!-- - **Training Dataset:** Unknown -->
70
+ <!-- - **Language:** Unknown -->
71
+ <!-- - **License:** Unknown -->
72
+
73
+ ### Model Sources
74
+
75
+ - **Documentation:** [Sentence Transformers Documentation](https://sbert.net)
76
+ - **Repository:** [Sentence Transformers on GitHub](https://github.com/UKPLab/sentence-transformers)
77
+ - **Hugging Face:** [Sentence Transformers on Hugging Face](https://huggingface.co/models?library=sentence-transformers)
78
+
79
+ ### Full Model Architecture
80
+
81
+ ```
82
+ SentenceTransformer(
83
+ (0): Transformer({'max_seq_length': 256, 'do_lower_case': False, 'architecture': 'BertModel'})
84
+ (1): Pooling({'word_embedding_dimension': 384, 'pooling_mode_cls_token': False, 'pooling_mode_mean_tokens': True, 'pooling_mode_max_tokens': False, 'pooling_mode_mean_sqrt_len_tokens': False, 'pooling_mode_weightedmean_tokens': False, 'pooling_mode_lasttoken': False, 'include_prompt': True})
85
+ (2): Normalize()
86
+ )
87
+ ```
88
+
89
+ ## Usage
90
+
91
+ ### Direct Usage (Sentence Transformers)
92
+
93
+ First install the Sentence Transformers library:
94
+
95
+ ```bash
96
+ pip install -U sentence-transformers
97
+ ```
98
+
99
+ Then you can load this model and run inference.
100
+ ```python
101
+ from sentence_transformers import SentenceTransformer
102
+
103
+ # Download from the 🤗 Hub
104
+ model = SentenceTransformer("sentence_transformers_model_id")
105
+ # Run inference
106
+ sentences = [
107
+ 'can quran cure me',
108
+ 'O humanity! Indeed, there has come to you a warning from your Lord, a cure for what is in the hearts, a guide, and a mercy for the believers.',
109
+ 'Not equal are the good deed and the bad deed. Repel [evil] by that [deed] which is better; and thereupon the one whom between you and him is enmity [will become] as though he was a devoted friend',
110
+ ]
111
+ embeddings = model.encode(sentences)
112
+ print(embeddings.shape)
113
+ # [3, 384]
114
+
115
+ # Get the similarity scores for the embeddings
116
+ similarities = model.similarity(embeddings, embeddings)
117
+ print(similarities)
118
+ # tensor([[1.0000, 0.9580, 0.9128],
119
+ # [0.9580, 1.0000, 0.9162],
120
+ # [0.9128, 0.9162, 1.0000]])
121
+ ```
122
+
123
+ <!--
124
+ ### Direct Usage (Transformers)
125
+
126
+ <details><summary>Click to see the direct usage in Transformers</summary>
127
+
128
+ </details>
129
+ -->
130
+
131
+ <!--
132
+ ### Downstream Usage (Sentence Transformers)
133
+
134
+ You can finetune this model on your own dataset.
135
+
136
+ <details><summary>Click to expand</summary>
137
+
138
+ </details>
139
+ -->
140
+
141
+ <!--
142
+ ### Out-of-Scope Use
143
+
144
+ *List how the model may foreseeably be misused and address what users ought not to do with the model.*
145
+ -->
146
+
147
+ <!--
148
+ ## Bias, Risks and Limitations
149
+
150
+ *What are the known or foreseeable issues stemming from this model? You could also flag here known failure cases or weaknesses of the model.*
151
+ -->
152
+
153
+ <!--
154
+ ### Recommendations
155
+
156
+ *What are recommendations with respect to the foreseeable issues? For example, filtering explicit content.*
157
+ -->
158
+
159
+ ## Training Details
160
+
161
+ ### Training Dataset
162
+
163
+ #### Unnamed Dataset
164
+
165
+ * Size: 148 training samples
166
+ * Columns: <code>sentence_0</code>, <code>sentence_1</code>, and <code>label</code>
167
+ * Approximate statistics based on the first 148 samples:
168
+ | | sentence_0 | sentence_1 | label |
169
+ |:--------|:----------------------------------------------------------------------------------|:------------------------------------------------------------------------------------|:------------------------------------------------|
170
+ | type | string | string | int |
171
+ | details | <ul><li>min: 5 tokens</li><li>mean: 12.09 tokens</li><li>max: 30 tokens</li></ul> | <ul><li>min: 14 tokens</li><li>mean: 38.55 tokens</li><li>max: 121 tokens</li></ul> | <ul><li>-1: ~8.78%</li><li>1: ~91.22%</li></ul> |
172
+ * Samples:
173
+ | sentence_0 | sentence_1 | label |
174
+ |:------------------------------------------------------------------------------------------------------------|:------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|:---------------|
175
+ | <code>I have done a lot of bad things, I wanna return to allahm but I fear allah will not forgive me</code> | <code>Say, ?O Prophet, that Allah says,? O My servants who have exceeded the limits against their souls! Do not lose hope in Allah s mercy, for Allah certainly forgives all sins. He is indeed the All-Forgiving, Most Merciful.</code> | <code>1</code> |
176
+ | <code>how to act in arguments</code> | <code>And when the ignorant address them, they say words of peace</code> | <code>1</code> |
177
+ | <code>I failed in exams</code> | <code>But perhaps you hate a thing and it is good for you; and perhaps you love a thing and it is bad for you. And Allah knows, while you know not</code> | <code>1</code> |
178
+ * Loss: [<code>CosineSimilarityLoss</code>](https://sbert.net/docs/package_reference/sentence_transformer/losses.html#cosinesimilarityloss) with these parameters:
179
+ ```json
180
+ {
181
+ "loss_fct": "torch.nn.modules.loss.MSELoss"
182
+ }
183
+ ```
184
+
185
+ ### Training Hyperparameters
186
+ #### Non-Default Hyperparameters
187
+
188
+ - `num_train_epochs`: 20
189
+ - `multi_dataset_batch_sampler`: round_robin
190
+
191
+ #### All Hyperparameters
192
+ <details><summary>Click to expand</summary>
193
+
194
+ - `overwrite_output_dir`: False
195
+ - `do_predict`: False
196
+ - `eval_strategy`: no
197
+ - `prediction_loss_only`: True
198
+ - `per_device_train_batch_size`: 8
199
+ - `per_device_eval_batch_size`: 8
200
+ - `per_gpu_train_batch_size`: None
201
+ - `per_gpu_eval_batch_size`: None
202
+ - `gradient_accumulation_steps`: 1
203
+ - `eval_accumulation_steps`: None
204
+ - `torch_empty_cache_steps`: None
205
+ - `learning_rate`: 5e-05
206
+ - `weight_decay`: 0.0
207
+ - `adam_beta1`: 0.9
208
+ - `adam_beta2`: 0.999
209
+ - `adam_epsilon`: 1e-08
210
+ - `max_grad_norm`: 1
211
+ - `num_train_epochs`: 20
212
+ - `max_steps`: -1
213
+ - `lr_scheduler_type`: linear
214
+ - `lr_scheduler_kwargs`: {}
215
+ - `warmup_ratio`: 0.0
216
+ - `warmup_steps`: 0
217
+ - `log_level`: passive
218
+ - `log_level_replica`: warning
219
+ - `log_on_each_node`: True
220
+ - `logging_nan_inf_filter`: True
221
+ - `save_safetensors`: True
222
+ - `save_on_each_node`: False
223
+ - `save_only_model`: False
224
+ - `restore_callback_states_from_checkpoint`: False
225
+ - `no_cuda`: False
226
+ - `use_cpu`: False
227
+ - `use_mps_device`: False
228
+ - `seed`: 42
229
+ - `data_seed`: None
230
+ - `jit_mode_eval`: False
231
+ - `bf16`: False
232
+ - `fp16`: False
233
+ - `fp16_opt_level`: O1
234
+ - `half_precision_backend`: auto
235
+ - `bf16_full_eval`: False
236
+ - `fp16_full_eval`: False
237
+ - `tf32`: None
238
+ - `local_rank`: 0
239
+ - `ddp_backend`: None
240
+ - `tpu_num_cores`: None
241
+ - `tpu_metrics_debug`: False
242
+ - `debug`: []
243
+ - `dataloader_drop_last`: False
244
+ - `dataloader_num_workers`: 0
245
+ - `dataloader_prefetch_factor`: None
246
+ - `past_index`: -1
247
+ - `disable_tqdm`: False
248
+ - `remove_unused_columns`: True
249
+ - `label_names`: None
250
+ - `load_best_model_at_end`: False
251
+ - `ignore_data_skip`: False
252
+ - `fsdp`: []
253
+ - `fsdp_min_num_params`: 0
254
+ - `fsdp_config`: {'min_num_params': 0, 'xla': False, 'xla_fsdp_v2': False, 'xla_fsdp_grad_ckpt': False}
255
+ - `fsdp_transformer_layer_cls_to_wrap`: None
256
+ - `accelerator_config`: {'split_batches': False, 'dispatch_batches': None, 'even_batches': True, 'use_seedable_sampler': True, 'non_blocking': False, 'gradient_accumulation_kwargs': None}
257
+ - `parallelism_config`: None
258
+ - `deepspeed`: None
259
+ - `label_smoothing_factor`: 0.0
260
+ - `optim`: adamw_torch
261
+ - `optim_args`: None
262
+ - `adafactor`: False
263
+ - `group_by_length`: False
264
+ - `length_column_name`: length
265
+ - `project`: huggingface
266
+ - `trackio_space_id`: trackio
267
+ - `ddp_find_unused_parameters`: None
268
+ - `ddp_bucket_cap_mb`: None
269
+ - `ddp_broadcast_buffers`: False
270
+ - `dataloader_pin_memory`: True
271
+ - `dataloader_persistent_workers`: False
272
+ - `skip_memory_metrics`: True
273
+ - `use_legacy_prediction_loop`: False
274
+ - `push_to_hub`: False
275
+ - `resume_from_checkpoint`: None
276
+ - `hub_model_id`: None
277
+ - `hub_strategy`: every_save
278
+ - `hub_private_repo`: None
279
+ - `hub_always_push`: False
280
+ - `hub_revision`: None
281
+ - `gradient_checkpointing`: False
282
+ - `gradient_checkpointing_kwargs`: None
283
+ - `include_inputs_for_metrics`: False
284
+ - `include_for_metrics`: []
285
+ - `eval_do_concat_batches`: True
286
+ - `fp16_backend`: auto
287
+ - `push_to_hub_model_id`: None
288
+ - `push_to_hub_organization`: None
289
+ - `mp_parameters`:
290
+ - `auto_find_batch_size`: False
291
+ - `full_determinism`: False
292
+ - `torchdynamo`: None
293
+ - `ray_scope`: last
294
+ - `ddp_timeout`: 1800
295
+ - `torch_compile`: False
296
+ - `torch_compile_backend`: None
297
+ - `torch_compile_mode`: None
298
+ - `include_tokens_per_second`: False
299
+ - `include_num_input_tokens_seen`: no
300
+ - `neftune_noise_alpha`: None
301
+ - `optim_target_modules`: None
302
+ - `batch_eval_metrics`: False
303
+ - `eval_on_start`: False
304
+ - `use_liger_kernel`: False
305
+ - `liger_kernel_config`: None
306
+ - `eval_use_gather_object`: False
307
+ - `average_tokens_across_devices`: True
308
+ - `prompts`: None
309
+ - `batch_sampler`: batch_sampler
310
+ - `multi_dataset_batch_sampler`: round_robin
311
+ - `router_mapping`: {}
312
+ - `learning_rate_mapping`: {}
313
+
314
+ </details>
315
+
316
+ ### Framework Versions
317
+ - Python: 3.12.7
318
+ - Sentence Transformers: 5.1.1
319
+ - Transformers: 4.57.1
320
+ - PyTorch: 2.5.1
321
+ - Accelerate: 1.11.0
322
+ - Datasets: 4.3.0
323
+ - Tokenizers: 0.22.1
324
+
325
+ ## Citation
326
+
327
+ ### BibTeX
328
+
329
+ #### Sentence Transformers
330
+ ```bibtex
331
+ @inproceedings{reimers-2019-sentence-bert,
332
+ title = "Sentence-BERT: Sentence Embeddings using Siamese BERT-Networks",
333
+ author = "Reimers, Nils and Gurevych, Iryna",
334
+ booktitle = "Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing",
335
+ month = "11",
336
+ year = "2019",
337
+ publisher = "Association for Computational Linguistics",
338
+ url = "https://arxiv.org/abs/1908.10084",
339
+ }
340
+ ```
341
+
342
+ <!--
343
+ ## Glossary
344
+
345
+ *Clearly define terms in order to be accessible across audiences.*
346
+ -->
347
+
348
+ <!--
349
+ ## Model Card Authors
350
+
351
+ *Lists the people who create the model card, providing recognition and accountability for the detailed work that goes into its construction.*
352
+ -->
353
+
354
+ <!--
355
+ ## Model Card Contact
356
+
357
+ *Provides a way for people who have updates to the Model Card, suggestions, or questions, to contact the Model Card authors.*
358
+ -->
app/fine-tuned-sentence-transformer-my-dataset/config.json ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "BertModel"
4
+ ],
5
+ "attention_probs_dropout_prob": 0.1,
6
+ "classifier_dropout": null,
7
+ "dtype": "float32",
8
+ "gradient_checkpointing": false,
9
+ "hidden_act": "gelu",
10
+ "hidden_dropout_prob": 0.1,
11
+ "hidden_size": 384,
12
+ "initializer_range": 0.02,
13
+ "intermediate_size": 1536,
14
+ "layer_norm_eps": 1e-12,
15
+ "max_position_embeddings": 512,
16
+ "model_type": "bert",
17
+ "num_attention_heads": 12,
18
+ "num_hidden_layers": 6,
19
+ "pad_token_id": 0,
20
+ "position_embedding_type": "absolute",
21
+ "transformers_version": "4.57.1",
22
+ "type_vocab_size": 2,
23
+ "use_cache": true,
24
+ "vocab_size": 30522
25
+ }
app/fine-tuned-sentence-transformer-my-dataset/config_sentence_transformers.json ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "__version__": {
3
+ "sentence_transformers": "5.1.1",
4
+ "transformers": "4.57.1",
5
+ "pytorch": "2.5.1"
6
+ },
7
+ "model_type": "SentenceTransformer",
8
+ "prompts": {
9
+ "query": "",
10
+ "document": ""
11
+ },
12
+ "default_prompt_name": null,
13
+ "similarity_fn_name": "cosine"
14
+ }
app/fine-tuned-sentence-transformer-my-dataset/model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:126596ca11dd95f7a7a657a49dab20a47f7c0c62667db5e63d2c14c751b5ce9c
3
+ size 90864192
app/fine-tuned-sentence-transformer-my-dataset/modules.json ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "idx": 0,
4
+ "name": "0",
5
+ "path": "",
6
+ "type": "sentence_transformers.models.Transformer"
7
+ },
8
+ {
9
+ "idx": 1,
10
+ "name": "1",
11
+ "path": "1_Pooling",
12
+ "type": "sentence_transformers.models.Pooling"
13
+ },
14
+ {
15
+ "idx": 2,
16
+ "name": "2",
17
+ "path": "2_Normalize",
18
+ "type": "sentence_transformers.models.Normalize"
19
+ }
20
+ ]
app/fine-tuned-sentence-transformer-my-dataset/sentence_bert_config.json ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ {
2
+ "max_seq_length": 256,
3
+ "do_lower_case": false
4
+ }
app/fine-tuned-sentence-transformer-my-dataset/special_tokens_map.json ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "cls_token": {
3
+ "content": "[CLS]",
4
+ "lstrip": false,
5
+ "normalized": false,
6
+ "rstrip": false,
7
+ "single_word": false
8
+ },
9
+ "mask_token": {
10
+ "content": "[MASK]",
11
+ "lstrip": false,
12
+ "normalized": false,
13
+ "rstrip": false,
14
+ "single_word": false
15
+ },
16
+ "pad_token": {
17
+ "content": "[PAD]",
18
+ "lstrip": false,
19
+ "normalized": false,
20
+ "rstrip": false,
21
+ "single_word": false
22
+ },
23
+ "sep_token": {
24
+ "content": "[SEP]",
25
+ "lstrip": false,
26
+ "normalized": false,
27
+ "rstrip": false,
28
+ "single_word": false
29
+ },
30
+ "unk_token": {
31
+ "content": "[UNK]",
32
+ "lstrip": false,
33
+ "normalized": false,
34
+ "rstrip": false,
35
+ "single_word": false
36
+ }
37
+ }
app/fine-tuned-sentence-transformer-my-dataset/tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
app/fine-tuned-sentence-transformer-my-dataset/tokenizer_config.json ADDED
@@ -0,0 +1,65 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "added_tokens_decoder": {
3
+ "0": {
4
+ "content": "[PAD]",
5
+ "lstrip": false,
6
+ "normalized": false,
7
+ "rstrip": false,
8
+ "single_word": false,
9
+ "special": true
10
+ },
11
+ "100": {
12
+ "content": "[UNK]",
13
+ "lstrip": false,
14
+ "normalized": false,
15
+ "rstrip": false,
16
+ "single_word": false,
17
+ "special": true
18
+ },
19
+ "101": {
20
+ "content": "[CLS]",
21
+ "lstrip": false,
22
+ "normalized": false,
23
+ "rstrip": false,
24
+ "single_word": false,
25
+ "special": true
26
+ },
27
+ "102": {
28
+ "content": "[SEP]",
29
+ "lstrip": false,
30
+ "normalized": false,
31
+ "rstrip": false,
32
+ "single_word": false,
33
+ "special": true
34
+ },
35
+ "103": {
36
+ "content": "[MASK]",
37
+ "lstrip": false,
38
+ "normalized": false,
39
+ "rstrip": false,
40
+ "single_word": false,
41
+ "special": true
42
+ }
43
+ },
44
+ "clean_up_tokenization_spaces": false,
45
+ "cls_token": "[CLS]",
46
+ "do_basic_tokenize": true,
47
+ "do_lower_case": true,
48
+ "extra_special_tokens": {},
49
+ "mask_token": "[MASK]",
50
+ "max_length": 128,
51
+ "model_max_length": 256,
52
+ "never_split": null,
53
+ "pad_to_multiple_of": null,
54
+ "pad_token": "[PAD]",
55
+ "pad_token_type_id": 0,
56
+ "padding_side": "right",
57
+ "sep_token": "[SEP]",
58
+ "stride": 0,
59
+ "strip_accents": null,
60
+ "tokenize_chinese_chars": true,
61
+ "tokenizer_class": "BertTokenizer",
62
+ "truncation_side": "right",
63
+ "truncation_strategy": "longest_first",
64
+ "unk_token": "[UNK]"
65
+ }
app/fine-tuned-sentence-transformer-my-dataset/vocab.txt ADDED
The diff for this file is too large to render. See raw diff
 
app/main.py ADDED
@@ -0,0 +1,36 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from fastapi import FastAPI
2
+ from app.rag import find_top_5_ayahs_qdrant
3
+ from app.models.schemas import QuestionRequest, AnswerListResponse
4
+ import psutil, os, asyncio
5
+
6
+ app = FastAPI()
7
+
8
+ def get_memory_usage_mb() -> float:
9
+ """Return current memory usage in MB."""
10
+ process = psutil.Process(os.getpid())
11
+ return process.memory_info().rss / (1024 * 1024)
12
+
13
+ @app.on_event("startup")
14
+ async def log_memory_usage():
15
+ """Background task that prints memory usage every 10 seconds."""
16
+ async def monitor():
17
+ while True:
18
+ mem = get_memory_usage_mb()
19
+ print(f"💾 Memory usage: {mem:.2f} MB")
20
+ await asyncio.sleep(10)
21
+ asyncio.create_task(monitor())
22
+
23
+ @app.post("/ask/", response_model=AnswerListResponse)
24
+ def ask(payload: QuestionRequest):
25
+ results = find_top_5_ayahs_qdrant(payload.question)
26
+ return {"results": results}
27
+
28
+ @app.get("/")
29
+ def read_root():
30
+ return {"message": "Hello, Mustafa! FastAPI is running 🚀"}
31
+
32
+ @app.get("/memory")
33
+ def memory_endpoint():
34
+ """Check memory usage manually via /memory"""
35
+ mem = get_memory_usage_mb()
36
+ return {"memory_MB": round(mem, 2)}
app/models/__pycache__/schemas.cpython-312.pyc ADDED
Binary file (877 Bytes). View file
 
app/models/schemas.py ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from pydantic import BaseModel
2
+ from typing import List
3
+
4
+ class QuestionRequest(BaseModel):
5
+ question: str
6
+
7
+ class AyahResponse(BaseModel):
8
+ question: str
9
+ answer: str
10
+
11
+ class AnswerListResponse(BaseModel):
12
+ results: List[AyahResponse]
app/qdrant_client.py ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ from qdrant_client import QdrantClient
2
+
3
+ client = QdrantClient(
4
+ url="https://6ea859f1-904f-4600-a943-00d18c01b454.europe-west3-0.gcp.cloud.qdrant.io:6333",
5
+ api_key="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhY2Nlc3MiOiJtIn0.aeAEaw9iTJicWYtPqv3EzwzwhqzQGlyqFpbU02RhxKg"
6
+ )
app/rag.py ADDED
@@ -0,0 +1,38 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from app.data_loader import model
2
+ from sklearn.metrics.pairwise import cosine_similarity
3
+ from app.qdrant_client import client
4
+
5
+ from pympler import asizeof
6
+ """
7
+ def find_top_5_ayahs(question: str):
8
+ q_emb = model.encode(question)
9
+ sims = cosine_similarity([q_emb], embeddings)[0]
10
+ top_indices = sims.argsort()[-5:][::-1]
11
+
12
+ results = []
13
+ for i in top_indices:
14
+ ayah_text = ayat[i] # single column with the ayah text
15
+ results.append({
16
+ "question": question, # the question from the request
17
+ "answer": ayah_text # the ayah text
18
+ })
19
+ return results
20
+ """
21
+ # find top 5 ayahs from Qdrant (alternative method)
22
+ def find_top_5_ayahs_qdrant(question: str):
23
+ q_emb = model.encode(question).tolist()
24
+ search_result = client.search(
25
+ collection_name="ayahs_collection",
26
+ query_vector=q_emb,
27
+ limit=5
28
+ )
29
+
30
+ results = []
31
+ for point in search_result:
32
+ ayah_text = point.payload['text']
33
+ results.append({
34
+ "question": question,
35
+ "answer": ayah_text
36
+ })
37
+ print("results size : ",asizeof.asizeof(results))
38
+ return results
app/routes/question.py ADDED
File without changes
app/utils.py ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ import re
2
+ def remove_numbers(text):
3
+ return re.sub(r'\d+', '', text)
app/utils/__pycache__/embeddings.cpython-312.pyc ADDED
Binary file (648 Bytes). View file
 
requirements.in ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ fastapi
2
+ uvicorn
3
+ scikit-learn
4
+ pandas
5
+ sentence-transformers
requirements.txt ADDED
@@ -0,0 +1,141 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #
2
+ # This file is autogenerated by pip-compile with Python 3.12
3
+ # by the following command:
4
+ #
5
+ # pip-compile requirements.in
6
+ #
7
+ annotated-doc==0.0.3
8
+ # via fastapi
9
+ annotated-types==0.7.0
10
+ # via pydantic
11
+ anyio==4.11.0
12
+ # via starlette
13
+ certifi==2025.10.5
14
+ # via requests
15
+ charset-normalizer==3.4.4
16
+ # via requests
17
+ click==8.3.0
18
+ # via uvicorn
19
+ colorama==0.4.6
20
+ # via
21
+ # click
22
+ # tqdm
23
+ fastapi==0.120.2
24
+ # via -r requirements.in
25
+ filelock==3.20.0
26
+ # via
27
+ # huggingface-hub
28
+ # torch
29
+ # transformers
30
+ fsspec==2025.10.0
31
+ # via
32
+ # huggingface-hub
33
+ # torch
34
+ h11==0.16.0
35
+ # via uvicorn
36
+ huggingface-hub==0.36.0
37
+ # via
38
+ # sentence-transformers
39
+ # tokenizers
40
+ # transformers
41
+ idna==3.11
42
+ # via
43
+ # anyio
44
+ # requests
45
+ jinja2==3.1.6
46
+ # via torch
47
+ joblib==1.5.2
48
+ # via scikit-learn
49
+ markupsafe==3.0.3
50
+ # via jinja2
51
+ mpmath==1.3.0
52
+ # via sympy
53
+ networkx==3.5
54
+ # via torch
55
+ numpy==2.3.4
56
+ # via
57
+ # pandas
58
+ # scikit-learn
59
+ # scipy
60
+ # transformers
61
+ packaging==25.0
62
+ # via
63
+ # huggingface-hub
64
+ # transformers
65
+ pandas==2.3.3
66
+ # via -r requirements.in
67
+ pillow==12.0.0
68
+ # via sentence-transformers
69
+ pydantic==2.12.3
70
+ # via fastapi
71
+ pydantic-core==2.41.4
72
+ # via pydantic
73
+ python-dateutil==2.9.0.post0
74
+ # via pandas
75
+ pytz==2025.2
76
+ # via pandas
77
+ pyyaml==6.0.3
78
+ # via
79
+ # huggingface-hub
80
+ # transformers
81
+ regex==2025.10.23
82
+ # via transformers
83
+ requests==2.32.5
84
+ # via
85
+ # huggingface-hub
86
+ # transformers
87
+ safetensors==0.6.2
88
+ # via transformers
89
+ scikit-learn==1.7.2
90
+ # via
91
+ # -r requirements.in
92
+ # sentence-transformers
93
+ scipy==1.16.3
94
+ # via
95
+ # scikit-learn
96
+ # sentence-transformers
97
+ sentence-transformers==5.1.2
98
+ # via -r requirements.in
99
+ six==1.17.0
100
+ # via python-dateutil
101
+ sniffio==1.3.1
102
+ # via anyio
103
+ starlette==0.49.1
104
+ # via fastapi
105
+ sympy==1.14.0
106
+ # via torch
107
+ threadpoolctl==3.6.0
108
+ # via scikit-learn
109
+ tokenizers==0.22.1
110
+ # via transformers
111
+ torch==2.9.0
112
+ # via sentence-transformers
113
+ tqdm==4.67.1
114
+ # via
115
+ # huggingface-hub
116
+ # sentence-transformers
117
+ # transformers
118
+ transformers==4.57.1
119
+ # via sentence-transformers
120
+ typing-extensions==4.15.0
121
+ # via
122
+ # anyio
123
+ # fastapi
124
+ # huggingface-hub
125
+ # pydantic
126
+ # pydantic-core
127
+ # sentence-transformers
128
+ # starlette
129
+ # torch
130
+ # typing-inspection
131
+ typing-inspection==0.4.2
132
+ # via pydantic
133
+ tzdata==2025.2
134
+ # via pandas
135
+ urllib3==2.5.0
136
+ # via requests
137
+ uvicorn==0.38.0
138
+ # via -r requirements.in
139
+
140
+ # The following packages are considered to be unsafe in a requirements file:
141
+ # setuptools
run.py ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ # run.py
2
+ import uvicorn
3
+
4
+ if __name__ == "__main__":
5
+ uvicorn.run("app.main:app", host="0.0.0.0", port=8000, reload=True)
sentences.index ADDED
Binary file (4.65 kB). View file