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.
-
|
Beta Was this translation helpful? Give feedback.
-
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.
-
thank you for all the help |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
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