Ekatra QnA is a student-focused intelligent search engine that enables them to find answers across various sources.
🏠 Homepage
🎥 Check out our demo video
-
The objective of this project is to create a smart search engine named Ekatra QnA, which is intended to assist students in finding answers from various sources such as web links and PDF documents in a prompt and effective manner. The search engine employs NLP techniques, including text extraction, preprocessing, vectorization, and semantic similarity, to accurately and quickly identify the most suitable answers to students' queries. The intended target audience for this project is students worldwide who face difficulties in finding pertinent information from a vast amount of data.
-
Ekatra QnA employs cutting-edge technologies such as OpenAI and Sentence Transformers to filter out irrelevant information and offer students the most useful and appropriate content. The system is built to boost productivity and save time for students as it efficiently identifies the required information, allowing them to concentrate more on learning and less on searching.
-
Furthermore, it should be noted that all information in the search engine comes from a validated source. If the answer to a question is not present in the documents, the system is equipped to recognize this and prevent sharing misleading information.
Learn more about Ekatra here: https://www.ekatra.one/
Our proposed intelligent search engine for students offers several features that address the common challenges students face when searching for information. Here are more details on each of these features:
-
Multiple File Search: The system allows students to search for answers across multiple files, including PDFs. This feature ensures that students have access to a broader range of information sources, enabling them to find answers to their queries faster and more efficiently.
-
Simultaneous Text Extraction: The system can extract text from multiple sources simultaneously, enabling faster and more efficient searches.
-
Accurate and Condensed Presentation: The system presents the extracted text in the most accurate and condensed form, making it easier for students to read and understand.
-
Relevant Content:
- One of the most important features is its capability to detect questions that are not relevant to the provided documents. This functionality helps prevent the system from providing erroneous or misleading answers to the student.
- The system filters out irrelevant information and selects the most appropriate answer by analyzing the given data, providing students with the most useful and pertinent content.
The proposed workflow for the intelligent search engine includes the following steps:
-
Users are able to upload a PDF document to the system.
-
The system employs the PyPDF2 library to extract the text from the uploaded PDF.
-
The extracted text undergoes a preprocessing step to remove noise such as stop words and punctuation.
-
A pre-trained model from Hugging Face is used to vectorize the preprocessed text and the user's question
-
The resulting embeddings of the text and question are stored for future use.
-
The stored embeddings are used to locate similar sentences from the text.
-
The similar sentences are then combined to form a concise and accurate answer to the user's question.
-
The system presents the final answer in the most appropriate format within the provided document. If the answer cannot be found within the document, the system displays "I don't know." to the user.
- Python: A popular, high-level programming language known for its simplicity, readability, and versatility.
- Numpy: A library for scientific computing and numerical analysis in Python. It provides support for large, multi-dimensional arrays and matrices, as well as a collection of mathematical functions.
- NLTK: A suite of libraries and programs for natural language processing tasks such as tokenization, stemming, and part-of-speech tagging.
- PyPDF2: A pure-python library for extracting text from PDF documents. It can also be used to extract metadata and other information from PDF files.
- Streamlit: An open-source web app framework for building interactive, customizable, and data-driven apps using Python. It provides an intuitive UI and fast feedback, making it easy to create and iterate on apps.
-
OpenAI: OpenAI is known for its advanced language models such as GPT-3, which provide developers with powerful natural language processing capabilities for a wide range of applications. Their language models can perform tasks such as text completion, translation, and question-answering with impressive accuracy.
-
Huggingface: Hugging Face is a comprehensive platform that offers both tools and a community for data scientists, researchers, and ML engineers. The platform's tools empower users to develop, train, and implement machine learning models based on open-source code and technologies.
-
Sentence Transformers Library: The Sentence Transformers library is a core component of the tech stack as it provides pre-trained models for sentence embedding generation, as well as tools for fine-tuning and training new models.
-
Text extraction refers to the process of extracting relevant text data from a given source, such as a PDF document, web page, or image.
-
Preprocessing is the initial step in natural language processing, which involves cleaning and transforming raw text data into a format that is suitable for further analysis. This includes removing stop words, punctuations, converting all text to lowercase, and stemming.
-
Vectorization is the process of converting text data into a numerical vector representation, allowing it to be processed and analyzed using mathematical algorithms. This involves converting each word or sentence into a high-dimensional vector using techniques such as Word2Vec or BERT.
-
A vector database is a database system that stores and retrieves vectors efficiently. Vector databases are used in various applications, such as search engines, recommendation systems, and natural language processing.
-
Semantic similarity refers to the degree of similarity between two pieces of text in terms of their meaning or semantic content. It is often measured by comparing the vector representations of the text using algorithms such as cosine similarity.
-
Answer synthesis using OpenAI involves using pre-trained language models and natural language generation techniques to generate coherent and relevant responses to a user's query. The models use deep learning algorithms and large amounts of training data to generate human-like responses to natural language queries.
- Python
- Numpy
- NLTK
- Streamlit
- Sentence Transformers
Here's a quick guide to help you get started:
-
Visit Ekatra QnA
-
Once you're on our website, simply upload your PDF files using the easy upload feature.
-
Once you have uploaded your files, simply wait for the "Process Completed" message before you start asking any questions related to the content of your PDF files.
-
Our search engine will then be ready to provide you with the most relevant answers to your queries.
-
Go to the OpenAI website and click on the "Sign Up"/ "Login" button
-
Once you have successfully registered/ logged in, go to the API dashboard and click on "Create API Key".
-
Select the API plan that best suits your needs and click "Continue".
-
Review the API agreement and accept the terms and conditions.
-
Your API key will now be displayed on the dashboard. Copy the key and use it in your project.
Note: Keep your API key confidential and do not share it with anyone. Also, make sure to follow the OpenAI API usage guidelines to avoid any misuse of the API.
- Clone our github repo
git clone https://github.com/ekatraone/Ekatra-QnA-System.git
- Install dependencies
pip install -r requirements.txt
- Run app.py
streamlit run app.py
👤 Ekatra Team
🏢 Ekatra Learning, Inc.
- Website: Ekatra
- Twitter: @ekatraone
- LinkedIn: @ekatraone