/llm-mistral-invoice-cpu

Data extraction with LLM on CPU

Primary LanguagePythonApache License 2.0Apache-2.0

Invoice data processing with Mistral LLM on local CPU

Youtube: Invoice Data Processing with Mistral LLM on Local CPU


Quickstart

  1. Download the Mistral model, check models/model_download.txt for the download link.
  2. Install the requirements:

pip install -r requirements.txt

  1. Copy text PDF files to the data folder.
  2. Run the script, to convert text to vector embeddings and save in FAISS index:

python ingest.py

  1. Run the script, to process data with Mistral LLL and return the answer:

python main.py "retrieve invoice number value"