This repository extends the existing Firebase extension firestore-vector-search with the following enhanced functionality:
- Distance Result Field: Returns the
distanceResultFieldto check how good the search results are - Distance Threshold: Add
distanceThresholdto your query to only find documents that truly match the search criteria - Enhanced Query Results:
ext-firestore-vector-search-queryCallablereturns the actual documents instead of only the IDs
-
Clone this repository into your workspace:
git clone <repository-url>
-
Install the extension in your Firebase project:
firebase ext:install ../firebase-extensions-extended-firestore-vector-search/firestore-vector-search
Note: Make sure to replace the path with your actual local path to the extension.
-
Configure the extension according to your needs
-
Deploy the extension:
firebase deploy --only extensions