Coder Social home page Coder Social logo

demo-text-search-wines's Introduction

Semantic search of wines

In this repository, you'll find the practical essence of the article Hackernoon article: "Semantic Search Queries Return More Informed Results" distilled into code (albeit updated). The author points out a common hurdle: the struggle with searching through our own unstructured data. Weaviate, an open-source vector search engine, is introduced as a sturdy bridge over this hurdle. Following the narrative, this codebase sets up Weaviate, harnesses the open transformer model sentence-transformers/paraphrase-multilingual-MiniLM-L12-v2 for vectorization through the vectorization module, and dives into a dataset of wine reviews. This repository demonstrates how to set up Weaviate with your data and get straight to firing up search queries.

(TODO: Add demo video)

Prerequisites

Before you can run the project, you need to have Docker, Docker Compose, and Python installed on your machine. Follow the instructions below to install the prerequisites:

1. Install Docker:

  • For Windows and Mac:
  • For Linux:
    • Run the following commands in your terminal:
      sudo apt-get update
      sudo apt-get install docker-ce docker-ce-cli containerd.io

2. Install Docker Compose:

  • For Windows and Mac:
    • Docker Compose is included with Docker Desktop.
  • For Linux:
    • Run the following command in your terminal:
      sudo apt install docker-compose

3. Install Python:

  • Download and install the latest version of Python from Python's official website.
  • Verify the installation by running the following command in your terminal:
    python --version

Setup instructions

  1. Install virtualenv (if not already installed):
    pip install virtualenv
  2. Create a Virtual Environment: Navigate to the directory where you want to create your virtual environment, then run:
    virtualenv <name_of_virtualenv>
  3. Activate the Virtual Environment: On Windows, run:
    .\<name_of_virtualenv>\Scripts\activate
    On macOS and Linux, run:
    source <name_of_virtualenv>/bin/activate
  4. Install Python requirements:
    pip install -r requirements.txt

Usage instructions

  1. Start up Weaviate: docker-compose up -d. Once completed, Weaviate is running on http://localhost:8080.
  2. Run python import.py to import 2500 wines to Weaviate.
  3. The data is now stored in the Weaviate instance. You can experiment with it using a python notebook or a python file.

Dataset license

This folder contains Wine review data, retrieved from Kaggle (from WineEnthusiast).

Notes:

This project's origin is here and the Hackernoon article: "Semantic Search Queries Return More Informed Results".

demo-text-search-wines's People

Contributors

minimaddy avatar iamleonie avatar markgunnels avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.