This project is a simple Question Answering system powered by local Large Language Models (LLMs), built with LangChain.
You can feed this system with any text document and then ask questions related to the topics in the document. For demonstration purposes, "stellarcorp.txt" has been included, which contains information about a fictional company and its employees. The system accepts one text document about any topic, then you can query that document using a local LLM of your choice. As an example, the document "stellarcorp.txt" has been used, which contains information about a fictional company and its employees. The primary LLM used is gpt4all-j-v1.3-groovy.
Python 3.10 or newer.
- Start by installing the required dependencies:
pip install -r requirements.txt
-
Add your text document and update its path in 'run-llm.py' as INPUT_DOCUMENT_PATH.
-
Place your desired LLM in the models/LLM_NAME directory. Ensure that the path is updated in 'run-llm.py' under MODEL_PATH.
-
Run the file:
python run-llm.py
Note: It might take some time to run.
- Ask your query and wait for the LLM to respond!