Crates.io | pdf-rename |
lib.rs | pdf-rename |
version | 0.1.31 |
source | src |
created_at | 2024-05-27 07:00:50.487105 |
updated_at | 2024-05-29 18:09:00.465796 |
description | This script reads a list of PDF files from a specified directory and renames each file based on its content. The renaming logic uses the content of the PDF to generate a more descriptive and meaningful filename. |
homepage | |
repository | https://github.com/RustSandbox/pdfrename |
max_upload_size | |
id | 1253115 |
size | 65,143 |
Given the additional details you've provided, I'll revise the README to include the links to the Ollama installation and model pulling instructions. Here's an updated version that incorporates these references:
This script reads a list of PDF files from a specified directory and renames each file based on its content. The renaming logic uses the content of the PDF to generate a more descriptive and meaningful filename.
Before launching the script, ensure the following requirements are met:
ollama
tool to be installed on your machine. This tool handles the parsing and extraction of text from PDF files.llama3:70
model. This model is used by ollama
for processing the PDFs. Note that due to the complexity and size of the model, the script's execution might be slow.Ensure that ollama
is installed on your system. If not installed, you can find the installation guide at:
Ollama Installation Guide
Pull the necessary model using the following command:
ollama pull llama3:70
For more details on pulling the model, visit: How to Pull Llama3:70 Model
To run the script, navigate to the directory where the script is located and execute the following command:
./pdf-rename /path/to/your/pdf/directory
Replace /path/to/your/pdf/directory
with the actual path to the directory containing your PDF files.
This script was developed as part of a learning exercise in Rust programming. As such, it is not optimized for production use. The code may contain inefficiencies, particularly due to the heavy processing requirements of the llama3:70
model. Users are advised to review and modify the code as needed before any production deployment.
Contributions are welcome! If you have suggestions for improvement or have found a bug, please feel free to create an issue or submit a pull request.