Skip to content

Latest commit

 

History

History

Geospatial-Recommendation-System

Geospatial Recommendation System

In this tutorial, we'll enhance our restaurant recommendation system using Full Text Search (FTS) Indexes and Geospatial APIs.

  1. Extract User Preferences: Identify key details from user input such as preferred cuisines and location.
  2. Construct Query String: Synthesize these details into a structured query string for searching.
  3. Perform FTS Index Search: Use the query string to find relevant restaurant recommendations.
  4. Apply Geospatial Filtering: Use a Geospatial API to locate the user and refine recommendations based on proximity.

We can enhance later on by adding a filter to sort the recommendations based on distance

Setup Instructions

  1. Install Dependencies: Ensure you have Python installed. Then, install the required packages:

    pip install lancedb pandas sentence-transformers requests openai tantivy
  2. Prepare Data: Place your restaurant data CSV file in the data.csv format in the project directory.

  3. Run the Notebook: Open the geospatial-recommendation.ipynb notebook in Jupyter or Google Colab and execute the cells sequentially.

Learn More: Blog

For a detailed explanation of how this works, check out the blog post:

Read the Blog Post

Google Colab

Open In Colab