Quickstart
Get started with Batch4LLM. This guide shows you how to extract the title from a set of PDF documents.
What you need:
- A running Batch4LLM instance (local or hosted)
- PDF documents to process
- A Gemini API key (this guide uses Gemini, but all providers work)
-
Create an endpoint
Section titled “Create an endpoint”An endpoint connects Batch4LLM to an LLM provider. To create one, open the Sidebar and click
Endpoints. Then clickAdd Endpointin the top right corner.In the pop-up, select
Geminias the provider. Enter"gemini"as the name and paste your Gemini API key. ClickTest connectionto verify it works. Once the test passes, clickAdd Endpoint. -
Create a prompt
Section titled “Create a prompt”A prompt is the instruction sent to the model for each document. Open the Sidebar and click
Prompts. Then clickAdd Promptin the top right corner.Enter
"Retrieve pdf title"as the name. Paste the following into the text box:Your given a pdf document. Please extract the title from it.Only answer with the document title withoutany formatting or additional information.Leave all other settings as they are and click
Add Prompt. -
Upload your documents
Section titled “Upload your documents”Go to
Filesand clickUpload Files. Either click the file box to browse your files, or drag and drop them in. Your files will appear in a list below the box.Type
My documentsin the file tag field and press Enter. Then clickUpload files. Uploading may take a few seconds or a few minutes depending on how many files you have. -
Create a batch
Section titled “Create a batch”A batch processes your documents using your chosen endpoint and prompt. Go to
Batchesin the Sidebar and clickCreate Batch.In the pop-up, select
"gemini"from the first dropdown. Then pick a model — for this guide, selectgemini-2.5-flash. Next, select the prompt you just created. For the file reader, choosepymupdf_default. It works well for most standard PDFs.Leave all other settings as they are and click
Start Batch. Wait for the batch to finish.When the batch is done, you will see a green indicator. Click on the batch to see a list of all documents and their status.
-
Export your results
Section titled “Export your results”Click the
Export Iconon your finished batch. Leave the settings in the pop-up as they are and clickExport. Allow downloads in your browser if prompted.
You’re done! You just processed a set of documents with a prompt and exported the results.