deepset-ai / COVID-QA

API & Webapp to answer questions about COVID-19. Using NLP (Question Answering) and trusted data sources.
Apache License 2.0
344 stars 121 forks source link

Create new DataIngestion class #125

Open yasserelsaid opened 3 years ago

yasserelsaid commented 3 years ago

Added a new class DataIngestion to be wrapper around the 2 functions index_new_docs and update_embeddings in the file data_ingestion.py

Seeing that these 2 functions are connected in functionality, they can be both accessed through the parent class DataIngestion for more encapsulation of the code.