cohere-ai / notebooks

Code examples and jupyter notebooks for the Cohere Platform
MIT License
451 stars 120 forks source link

feat: add create_sql_agent to cookbook #207

Closed Anirudh31415926535 closed 4 weeks ago

Anirudh31415926535 commented 1 month ago

This PR adds a .gitignore file and updates thesql_agent.ipynb` notebook.

.gitignore

A `.gitignore file is added to the repository to specify intentionally untracked files and directories. This helps to keep the repository clean and prevents accidentally committing sensitive files.

sql_agent.ipynb

The notebook is updated to demonstrate two ways of setting up a SQL agent:

The notebook showcases how to use these agents to answer questions over SQL databases seamlessly with langchain's existing SQLDBToolkit. It includes code snippets and explanations for setting up the agents, loading the Cohere API key, and invoking the agents to query and manipulate data from a sample database.