Skip to content

Similarity search of Quran verses using OpenAI embeddings and chromadb

Notifications You must be signed in to change notification settings

icepaq/QuranSearch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Similarity search of Quran verses using OpenAI embeddings and chromadb

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published