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

Add csv agent migration cookbook #347

Merged

Conversation

Anirudh31415926535
Copy link
Contributor

@Anirudh31415926535 Anirudh31415926535 commented Jan 10, 2025

This PR introduces a new migration guide for the create_csv_agent in langchain-cohere, which has been sunset from the package version 0.3.5 onwards. The guide is provided as a notebook and a markdown file, offering a tutorial on building a replacement CSV agent without the create_csv_agent abstraction.

The notebook and markdown file include:

  • A detailed explanation of the CSV agent's capabilities and its integration with natural language processing.
  • Instructions for building the CSV agent, including the necessary packages and their installation.
  • A section on defining prompts and tools for the CSV agent, with code examples.
  • Helper functions for assembling the full prompt.
  • A comprehensive guide to building the core CSV agent abstraction, including code and explanations.
  • A practical example of using the CSV agent with a dummy CSV file.

Changes:

  • New files:
    • fern/pages/cookbooks.mdx
    • fern/pages/cookbooks/migrate-csv-agent.mdx
    • fern/v1.yml
    • fern/v2.yml
    • notebooks/agents/csv-agent-migration/migrate_csv_agent.ipynb
  • Updated files:
    • fern/pages/cookbooks.mdx
    • fern/v1.yml
    • fern/v2.yml

@mrmer1
Copy link
Contributor

mrmer1 commented Jan 11, 2025

Let's also delete this section if it's not relevant anymore - https://docs.cohere.com/docs/tools-on-langchain#csv-agent

@Anirudh31415926535
Copy link
Contributor Author

Let's also delete this section if it's not relevant anymore - https://docs.cohere.com/docs/tools-on-langchain#csv-agent

Yeah, that's a good point. I think let's keep it for a little longer, and then we should remove it eventually. We haven't officially removed the csv agent from langchain yet. Would be good to gauge the response and remove it accordingly.

Copy link

@invader89 invader89 force-pushed the anirudh.shrinivason/add-csv-agent-migration-cookbook branch from 75e5be7 to de5c00c Compare January 15, 2025 13:55
Copy link

Copy link

Copy link

Copy link

Copy link

Copy link

…f github.com:cohere-ai/cohere-developer-experience into anirudh.shrinivason/add-csv-agent-migration-cookbook
Copy link

Copy link

Copy link
Collaborator

@mkozakov mkozakov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The first paragraph could be clearer. Maybe I'm misreading it but you're saying "create_csv_agent abstraction offered by langchain-cohere is a powerful agent abstraction"

But then talking about NOT using it? "without the create_csv_agent abstraction, that can be used as a replacement for the create_csv_agent provided which is now sunset from the langchain-cohere package version 0.3.5 onwards."

@Anirudh31415926535
Copy link
Contributor Author

The first paragraph could be clearer. Maybe I'm misreading it but you're saying "create_csv_agent abstraction offered by langchain-cohere is a powerful agent abstraction"

But then talking about NOT using it? "without the create_csv_agent abstraction, that can be used as a replacement for the create_csv_agent provided which is now sunset from the langchain-cohere package version 0.3.5 onwards."

Yeah this makes sense. I couldn't english when I was writing that paragraph lol. Will update it.

Copy link

Copy link

…f github.com:cohere-ai/cohere-developer-experience into anirudh.shrinivason/add-csv-agent-migration-cookbook
Copy link

Copy link

Copy link

@Anirudh31415926535 Anirudh31415926535 merged commit f31c5d6 into main Jan 21, 2025
8 checks passed
@Anirudh31415926535 Anirudh31415926535 deleted the anirudh.shrinivason/add-csv-agent-migration-cookbook branch January 21, 2025 15:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants