waleedkadous / ansari-backend

Ansari is a helper for you to become a better Muslim
65 stars 12 forks source link

Post-process input to insert ayahs/hadith #29

Open waleedkadous opened 3 months ago

waleedkadous commented 3 months ago

Currently Ansari will copy-paste ayahs and hadith from the contextual information retrieved. This is:

  1. Unnecessarily costly
  2. Extremely slow
  3. More error prone

Instead we should allow direct insertion via references e.g. it should be able to say [[ref("quran", "2:255")]] to insert Ayat ul Kursi and a translation, with a link to the Ayah.

This also gives us the opportunity to add links to these sources either within Ansari or outside.