brunotech / llm-mistral-invoice-cpu

Data extraction with LLM on CPU

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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"

About

Data extraction with LLM on CPU

License:Apache License 2.0


Languages

Language:Python 100.0%