How to upload our own pdf in the code for router query engine lesson? I uploaded my pdf in the folder by selecting file->open and included the pdf name in the code.
I wrote an example where you can load any PDF as a URL or from a local file that you can pass as a program argument.
Here the notebook: x.com
If you wanna go deeper here you have an example on how to integrate with an external search tool: GitHub - Fewsats/agent-demo: Integrate document management and monetization with LlamaIndex and FewsatsCLI.
Let me know if you have issues / find it useful
1 Like