Skip to content

yash2002vardhan/semantic-search

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 

Repository files navigation

semantic-search

This is a demo for a semantic search engine.

Semantic Search with txtai

This GitHub project demonstrates how to use txtai to perform semantic search on a document. Sentence transformer is used to create embeddings for each sentence in the document and then txtai is used to find the most relevant sentences for a given query.

Requirements

To use this project, you need to install the following packages:

  • txtai
  • sentence-transformers
  • gradio

Usage

  1. Clone this repository:

    git clone https://github.com/yash2002vardhan/semantic-search.git
  2. Access the app on your web browser after running the code.

  3. Upload a text file by clicking on the "Upload a Text File" button and select a file from your local machine.

  4. Enter a query in the "How can we help" textbox and click on the "Search" button.

  5. The top matching result will be displayed in the "Top Matching Result" textbox.

Credits

This project was created using the following open-source tools:

  • txtai
  • sentence-transformers
  • gradio

YouTube

Youtube Link for the explanation of the code

About

This is a demo for a semantic search engine.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published