- On your terminal run the command
python3 app_faiss.py
- The code generates answers to queries based on a particular knowledge base using a transformer model and efficient searching using the faiss vector database.
- The system focuses on retrieving the most relevant pre-existing answers from a knowledge base (
knowledge_base.json). - The model used here is alibaba-nlp model which can be changed in the
config.json.