Skip to content

Latest commit

 

History

History
26 lines (17 loc) · 746 Bytes

README.md

File metadata and controls

26 lines (17 loc) · 746 Bytes

Quran Search

Similarity search for the Quran. Using OpenAI embeddings and chromadb as the vector database.

Setup

Frontend

  1. npm i
  2. npm run dev

Backend

  1. Create a .env file and add an OPENAI_KEY value with your api key.
  2. Run pip install -r requirements.txt
  3. Run python3 embed.py to turn all verses from quran_en.json into embeddings
  4. Run python3 app.py to run the API

Dockerizing the API

  1. Run docker build -t quransearch .
  2. Run docker run -t quransearch -p 5000:5000

Credits and Sources

Quran JSON from https://github.com/risan/quran-json Hadith JSON from https://github.com/A7med3bdulBaset/hadith-json