Coder Social home page Coder Social logo

debarghag / semoogle Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 78 KB

A semantic search engine prototype, made with SentenceBERT, ontological definitions, and full-text search.

HTML 13.84% Python 41.97% CSS 7.84% Jupyter Notebook 36.35%
semantic-search-engine semantic-search information-retrieval sbert

semoogle's Introduction

Semoogle

A prototype semantic search engine.

Quick Overview

In this project, I'll be creating a Semantic Search engine, on a corpus of all Wikipedia texts till 2010. Scalability and the quality of the semantic search are the focus of this project. We find that for single word searches, ontological meaning driven semantic search provides a better understanding, whereas, for phrases and sentences, dense vector-based approaches are better.

Problem Statement

Traditionally, lexical search has been successfully deployed for indexing and searching keywords amongst billions of unstructured documents, on the web, and otherwise. However, there’s a key problem with this approach, since the user may not necessarily know the exact keyword to search for, or may not be able to use the same words to coherently describe what he’s looking for to the search engine.

Semantic search allows the search to be performed while considering the meaning of what the user is requesting. Overall, this helps improve search accuracy, by using the intent of the user and the overall contextual meaning of the terms being looked for, to generate more relevant knowledge retrieval.

Building the Index

This process is slightly more complex. This involves running a FTS5 plugin to build a virtual table in the database. For all intents and purposes, since we're not using the db for concurrent writes,

Run the tests

  • cd src/
  • python3 test.py

How to run API Server

  • cd src/
  • export FLASK_APP=main.py
  • flask run

How to reproduce tests in paper

To do this you must have first built your index. Then go to src/ and run python3 sentencembedding_test.py .

semoogle's People

Contributors

debarghag avatar

Watchers

 avatar  avatar

semoogle's Issues

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.