Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Building Intelligent Search Apps with Firestore...

Hassan Bahati
September 21, 2024
12

Building Intelligent Search Apps with Firestore Vector Search and App Hosting

Building Intelligent Search Apps with Firestore Vector Search and App Hosting

Hassan Bahati

September 21, 2024
Tweet

Transcript

  1. Analytics Remote Config A/B Testing In App Messaging Google Admob

    Cloud Messaging Engage Engage with Firebase
  2. Vector Search? Vector search is a technique that uses vector

    representations of data to perform more accurate and context-aware searches compared to traditional keyword-based methods. Vector search represents your data as arrays of numbers and performs searches based on similarity. Find items that are semantically similar to a given query.
  3. Vector Search avails new experiences of how users can interact

    with your data unlike traditional keyword based searching.
  4. Use Cases E-commerce - Product search and recommendations based on

    user behavior and preferences Media : - Searching and categorizing multimedia content. Customer Support - Intelligent FAQs and support ticket routing based on query analysis.
  5. How it works? • Data is turned in vector embeddings.

    • By embedding data points and calculating the similarity between user queries in natural language and these vectors, it becomes possible to find or recommend items that match the user’s intent, based on the data points. • Your app can now understand and make symatic comparisons. • When you make a vector search, items semantically similar to your query are returned.
  6. Vector Search with Firestore Extension automatically computes vector embeddings making

    it easy to perform vector search for mobile or web apps.
  7. Indexing data with vectors • Prepare the data. • Decide

    what data points you want to index. Eg product descriptions.
  8. Query Techniques // Use cosine similarity or other distance measures

    to find the most relevant vectors. Example - Semantic search: Finding documents similar in meaning to a query. - Recommendations: Suggesting similar items based on user preferences.
  9. Pre-requisites // Set up a Firestore project in the Firebase

    Console. // Enable necessary APIs and install Firebase SDKs in your project. // Set up Firestore Vector Search Extension // Choose an environment eg Nodejs, Python
  10. Building a grocery app 1. Create descriptions for vectorization 2.

    Embed the descriptions 3. Register data to Firestore 4. Create indexes for vector search 5. Perform vector search using natural language
  11. Firebase App Hosting Firebase App Hosting is a service that

    allows you to deploy and host dynamic web applications (Next.js, Angular, etc.) with GitHub integration and seamless connections to other Firebase products like Authentication, Cloud Firestore, and AI tools.
  12. Hand-on session 🚀🚀 Deep dive into a hand-on second half

    where we shall build a grocery app with an intelligent search functionality.
  13. Resources 1. Search with vector embeddings | Firestore | Firebase

    2. Vector Search with Firestore | Firebase Extensions Hub