This project demonstrates how to use LangChain to load a PDF document, split it into smaller chunks, create embeddings, and build a retrieval-based question-answering system using a Hugging Face model.
Before running the code, make sure you have the following dependencies installed:
- Python 3.7+
pip(Python package installer)
To install the required libraries, you can use the following command:
pip install -r requirements.txt