Hi, I’m developing a chatbot that, based on symptoms or a search, returns drugs as feedback. I have a large database of 20k drugs with info such as, name, Therapeutic indications, active ingredient, Contraindications, for now I tried to create the embedding of the “Therapeutic indications” and based on the query get drugs to use as context. the problem is that I find it very inefficient so I thought of this approach.
- with the drug info I generate 10 or more questions to associate with the drug
- I embed the questions and associate the drug on qdrant
- based on the user query I get x better scores via Retrieval
- I further filter the search results and reduce the number of products by eliminating duplicates
- …
an example of data
{
"questions": [
{
"text": "I have persistent heartburn; what can I do?"
},
{
"text": "I feel a burning pain in the lower part of my esophagus; is this normal?"
},
{
"text": "After meals, I often experience a burning sensation that rises from my stomach to my throat."
},
{
"text": "I have a sour taste in my mouth and feel like there is a lump in my throat; what could this be?"
},
{
"text": "I suffer from acid reflux, especially at night. What can I do to relieve it?"
},
{
"text": "I have a bloated and painful stomach, accompanied by severe heartburn."
},
{
"text": "After eating, I always feel full and experience severe heartburn."
},
{
"text": "I often have acid belching, especially after eating spicy foods."
},
{
"text": "I feel a dull pain in the upper abdomen, accompanied by a feeling of fullness."
},
{
"text": "I have difficulty digesting and experience heartburn that radiates to my back."
}
],
"product": {
"Product Code": "020702080",
"Name": "MAALOX PLUS",
"Active Ingredients": "<u>100 ml of suspension contains</u>: <i>Active ingredients</i>: magnesium hydroxide 3.65 g, aluminum hydroxide 3.25 g, dimethicone 0.50 g. <i>Known excipients</i>: methyl parahydroxybenzoate, propyl parahydroxybenzoate, ethanol, inverted sugar, sucrose, sulfur dioxide (E 220), sorbitol (E420) 4.48 g/100ml (see section 4.4). For the complete list of excipients, see section 6.1. <u>One tablet contains</u>: <i>Active ingredients:</i> magnesium hydroxide 200 mg, aluminum oxide, hydrated 200 mg, dimethicone 25 mg. <i>Known excipients:</i> glucose, sucrose, sorbitol (E420) 45 mg per tablet (see section 4.4). For the complete list of excipients, see section 6.1.",
"Excipients": "<i>MAALOX PLUS 3.65% + 3.25% + 0.5% oral suspension:</i> Methylcellulose, methyl parahydroxybenzoate, propyl parahydroxybenzoate, carmellose, hydroxypropylcellulose, citric acid, sodium saccharin, non-crystallizable liquid sorbitol, lemon flavor (containing ethanol), Swiss cream flavor (containing ethanol, inverted sugar, sucrose, sulfur dioxide (E 220)), purified water. <i>MAALOX PLUS 200 mg + 200 mg + 25 mg chewable tablets:</i> Corn starch, citric acid, pregelatinized starch, glucose, mannitol, sucrose, sorbitol (E420), non-crystallizable liquid sorbitol, talc, magnesium stearate, sodium saccharin, lemon flavor, Swiss cream flavor, E 172.",
"Therapeutic Indications": "Symptomatic treatment of hyperacidity (including heartburn and pain) even in cases of esophagitis, and hyperacidity when accompanied by dyspepsia. Symptomatic treatment of gastrointestinal bloating when accompanied by hyperacidity."
}
}