PDFLoader
#122
Replies: 4 comments 11 replies
-
Hi you can check this example https://github.com/Abraxas-365/langchain-rust/blob/main/examples/qa_chain.rs Also if you want to create a custom chain you can follow the same steps as the qa_chain |
Beta Was this translation helpful? Give feedback.
10 replies
-
|
Beta Was this translation helpful? Give feedback.
0 replies
-
It was missing the las await to joing the streams. let path = "./chris.pdf";
let loader = LoPdfLoader::from_path(path).expect("Failed to create PdfLoader");
let your_docs = loader
.load()
.await
.unwrap()
.map(|d| d.unwrap())
.collect::<Vec<_>>()
.await; //this was missing |
Beta Was this translation helpful? Give feedback.
0 replies
-
thank you for all the help |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
Sorry for the stupid question, but once a PDF is loaded how is it used in the chain as part of the context?
Thanks
Beta Was this translation helpful? Give feedback.
All reactions