Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/synacktraa/pdf-service

Node js PDF service
https://github.com/synacktraa/pdf-service

Last synced: about 1 month ago
JSON representation

Node js PDF service

Awesome Lists containing this project

README

        

## PDF reader service
> I crafted this for my own enjoyment, involving the chunking of PDFs and their storage in a vector store for Retrieval-Augmented Generation (RAG) purposes.

## Installation
> Make sure [node](https://nodejs.org/en/download/package-manager) is already installed.

```sh
git clone [email protected]:synacktraa/pdf-service.git
```

## Serve the API

```sh
npm run serve
```
> Visit `/endpoints` for documentation.

#### Run the test

```sh
npm run test
```

### As a docker service

- Build the image
```sh
docker build -t pdf-service .
```

- Run the image
```sh
docker run -p 3000:3000 pdf-service
```
> Make sure to update `-p` value accordingly if you're using `--env-file .env`