crewAIInc / crewAI

Framework for orchestrating role-playing, autonomous AI agents. By fostering collaborative intelligence, CrewAI empowers agents to work together seamlessly, tackling complex tasks.

Home Page:https://crewai.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

PDFSearchTool ValueError : No data found

gergirod opened this issue · comments

this is what I'm doing in my code.
pdf_tool =PDFSearchTool(pdf="path to pdf")

Error

python3.12/site-packages/embedchain/loaders/pdf_file.py", line 21, in load_data
raise ValueError("No data found")
ValueError: No data found

this is what I'm doing in my code. pdf_tool =PDFSearchTool(pdf="path to pdf")

Error

python3.12/site-packages/embedchain/loaders/pdf_file.py", line 21, in load_data raise ValueError("No data found") ValueError: No data found

Are you sure the path to the PDF is correct? Try putting the PDF in the same directory as your python script and try again.