bettersg / SchemesSG_v3

Refactor of SchemeseSG 2024
3 stars 1 forks source link

Firebase Function - Search #38

Closed yevkim closed 3 days ago

yevkim commented 2 months ago

MIgrate the search code to Firebase Function Explore keeping the vector files in Firebase Storage

CJBuzz commented 1 month ago

Hi I have tried to implement the search API (predicting schemes) on firebase and tested a little using Thunder Client.

Some notes:

CJBuzz commented 1 month ago

Successfully implemented Search function with firestore but schemes embedding (.npy file) and index (.faiss file) needs to be re-generated.

Models, preprocessors and tokenizers are also initialised as a class variable so they can be initialised from main.py

yevkim commented 1 month ago

Create the session id and return to frontend along with results Singleton Pattern - Check with Traci Loggin sessionid/queries/Results in the Firestore Deploy the function to firebase