PDFAI is a package to help to extract data from a pdf with GenAI
It's help to upload pdf file and ask to extract data from it.
pdfai-id-card.mov
make start
make composer c="install"
$pdfai = new PDFAI(new OpenAIExtractor('your-api-key'));
$dataExtracted = $pdfai->extract(['name', 'firstname'], './file.pdf');
(only for endtoend test) http://localhost:8080/
Add .env with your openai API key
OPENAI_API_KEY=your-api-key
make unit c="tests"
-
Run docker to open access to tests/endtoend/index.php in http://localhost:8080/
-
Open tests/endtoend/index.html in navigator
-
Upload a file and ask data to be extract
-
wait response