Abraxas-365 / langchain-rust

🦜️🔗LangChain for Rust, the easiest way to write LLM-based programs in Rust
MIT License
491 stars 63 forks source link

make lopdf optional #184

Closed prabirshrestha closed 1 month ago

prabirshrestha commented 1 month ago

Make lopdf optional feature. I wasn't able to make this work with some of the pdfs I have.

I will send another PR to have another PDF text extractors.

https://crates.io/crates/pdf-extract Seems to work but looking at issues has few panics.

Probably need to use something like https://crates.io/crates/pdfium-render.