Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DOC: <Issue related to /v0.2/docs/how_to/extraction_examples/> #23396

Open
2 tasks done
Tirth27 opened this issue Jun 25, 2024 · 2 comments
Open
2 tasks done

DOC: <Issue related to /v0.2/docs/how_to/extraction_examples/> #23396

Tirth27 opened this issue Jun 25, 2024 · 2 comments
Labels
🔌: cohere Primarily related to Cohere integrations 🤖:docs Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder 🔌: openai Primarily related to OpenAI integrations

Comments

@Tirth27
Copy link

Tirth27 commented Jun 25, 2024

URL

https://python.langchain.com/v0.2/docs/how_to/extraction_examples/

Checklist

  • I added a very descriptive title to this issue.
  • I included a link to the documentation page I am referring to (if applicable).

Issue with current documentation:

Here's a revised version of your report description:

I attempted the example provided in the given link. While it executed flawlessly with OpenAI, I encountered a TypeError when running it with Cohere.

The error message was: TypeError: BaseCohere.chat() received an unexpected keyword argument 'method'.

Idea or request for content:

I believe the document is not current with the Cohere chat and requires some amendments.

@dosubot dosubot bot added 🔌: cohere Primarily related to Cohere integrations 🔌: openai Primarily related to OpenAI integrations 🤖:docs Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder labels Jun 25, 2024
@Tirth27
Copy link
Author

Tirth27 commented Jun 25, 2024

Below is the snippet from my pyproject.toml package versions:

python = "^3.12.3"
langchain = "0.2.5"
langgraph = "^0.0.69"
pydantic-settings = "^2.2.1"
langchain-cohere = "0.1.8"
tiktoken = "0.7.0"
chromadb = "^0.5.0"
langchain-openai = "^0.1.8"
langchain-community = "^0.2.5"
langchain-core = "^0.2.9"
@Tirth27
Copy link
Author

Tirth27 commented Jun 26, 2024

The latest ChatCohere class version and with_structured_output method do not include a method keyword argument.

image

However, the LangChain documentation example uses the method and include_raw variables.

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🔌: cohere Primarily related to Cohere integrations 🤖:docs Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder 🔌: openai Primarily related to OpenAI integrations
1 participant