Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rumenpetrov/pdf-brand-to-json
Extracts information from brand guidelines `.pdf` file using AI and outputs json formatted string.
https://github.com/rumenpetrov/pdf-brand-to-json
Last synced: about 2 months ago
JSON representation
Extracts information from brand guidelines `.pdf` file using AI and outputs json formatted string.
- Host: GitHub
- URL: https://github.com/rumenpetrov/pdf-brand-to-json
- Owner: rumenpetrov
- License: mit
- Created: 2024-06-24T12:13:58.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2024-07-02T15:04:49.000Z (6 months ago)
- Last Synced: 2024-07-25T12:39:28.064Z (6 months ago)
- Language: JavaScript
- Size: 36 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# PDF brand to JSON
Extracts information from brand guidelines `.pdf` file using AI and outputs json formatted string.![Output preview](output-preview.png)
> **Warning** Use the output only as suggestions. Results may vary depending on the information in the .pdf file and the provided questions. Always validate the accuracy of the output and the values.
#### Requirements
* node >= 20.x
* npm >= 10.x## Get started
1. Install dependencies
```sh
$ npm i
```
2. Create your `.env` file from the `.env.example` template file
```sh
$ cp .env.example .env
```
3. Add value to every environment variable
4. Start the script and provide the path to your `.pdf` document. (There are example files which you could use in the `demo/` folder)
```sh
$ npm start demo/microsoft-brand-guidelines.pdf
```### Tech stack
* [Open AI API](https://platform.openai.com/docs/overview)
* [Langchain](https://js.langchain.com/v0.2/docs/introduction/)