Hi there,
Is there a special folder or method to add the pdfs?
Like only accepting absolute paths? or have to get into a folder first?
Also, I see that Langchain is the one embedding the documents, but I asked to do it with an ollama text embedding model.
I also see that my tokens in Langchain ran out and I would like to use a local solution.
My pdftool looks like this:
PDFtool = PDFSearchTool(
config=dict(
llm=dict(
provider="ollama",# or google, openai, anthropic, llama2, ...
config=dict(
model="llama3.1",
temperature=0.01,
base_url='http://127.0.0.1:11434',),),
embedder=dict(
provider="ollama",# or openai, ollama, ...
config=dict(
model="nomic-embed-text:latest",
base_url='http://127.0.0.1:11434',
# title="Embeddings",
),
),
)
)
and my outputs are:
I encountered an error while trying to use the tool. This was the error: File path /path/to/Ruben_Casillas.CV.pdf is not a valid file or url.
Tool Search a PDF's content accepts these inputs: Search a PDF's content(query: 'string', pdf: 'string') - A tool that can be used to semantic search a query from a PDF's content. query: 'Mandatory query you want to use to search the PDF's content', pdf: 'Mandatory pdf path you want to search'
can some one tell me what am I doing wrong and if there is a possibility to avoid using langchain.
Many thanks and greetings.