Nikki Sixx
Nikki Sixx

Reputation: 21

cannot pickle 'classmethod' object

I try to run this code with a PDFTool, but I receive this following error

    from crewai_tools import PDFSearchTool

    rag_tool = PDFSearchTool(pdf='/content/17.pdf',
        config=dict(
            llm=dict(
                provider="groq", # or google, openai, anthropic, llama2, ...
                config=dict(
                    model="llama3-8b-8192",
                    # temperature=0.5,
                    # top_p=1,
                    # stream=true,
                ),
            ),
            embedder=dict(
                provider="huggingface", # or openai, ollama, ...
                config=dict(
                    model="BAAI/bge-small-en-v1.5",
                    #task_type="retrieval_document",
                    # title="Embeddings",
                ),
            ),
        )
    )

Error: TypeError: cannot pickle 'classmethod' object

I have already definied the env. keys (GROQ_API_KEY), sounds like a incompatible versions of libraries.

I try to execute the code above, but, the error appear. I Want to use Groq api key to create a agent to search PDF information.

Upvotes: 2

Views: 318

Answers (0)

Related Questions