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

PR for the final cut of cookbooks for socials release #182

Draft
wants to merge 31 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
4384e2d
Include Vanessa's first batch of fixes
kyle-cohere May 29, 2024
0bfef10
Anna-fix
anna-cohere May 29, 2024
4ddc397
Fix the titles
anna-cohere May 29, 2024
c82a0cf
One more
anna-cohere May 29, 2024
6ea03af
boyu - fixed summarization notebooks
boyu-cohere May 29, 2024
cbe679b
Change images to refer to GitHub locations; remove <br> newlines; min…
justin-lee-cohere May 29, 2024
530d8cd
Fixing typo
anna-cohere May 30, 2024
7b8a07d
Fixing typos
anna-cohere May 30, 2024
86a76f3
Removes unused link, adds active email
co-antwan May 30, 2024
88f61d7
Merge branch 'main' into socials-release-final-edits
kyle-cohere May 30, 2024
11d727f
native-csv-agent
co-jason May 30, 2024
de9c4bf
Address issues in basic-tool-use, fix Colab link, edit wording
justin-lee-cohere May 30, 2024
1a6b3fb
Delete adaptive RAG notebook - migrated to agents folder
justin-lee-cohere May 30, 2024
210a8b6
fixed sql agent nb
shaandes May 30, 2024
2e46690
mem walkthrough
shaandes May 30, 2024
b912ce0
deterministic API notebook fixes
shaandes May 30, 2024
94b26af
Fix formatting issues in document parsing notebook
justin-lee-cohere May 31, 2024
c27726e
Address issues and change wording in agentic_rag_publication
justin-lee-cohere May 31, 2024
eeb8a20
More wording changes
justin-lee-cohere May 31, 2024
06f6efc
fix errors
co-jason May 31, 2024
4c36ab3
remove pandas to avoid weird behaviour
marcodel13 May 31, 2024
88ee03c
Updating naming for the financial analyst notebook
helloMitchell May 31, 2024
f7cb2a1
Deleting the old notebook
helloMitchell May 31, 2024
e7830ad
Merge branch 'main' into socials-release-final-edits
shaandes Jun 7, 2024
4f102d7
fixed hash comment line
shaandes Jun 7, 2024
de1edcf
final edits round 2
shaandes Jun 7, 2024
1dda6b7
fixed sql notebook
shaandes Jun 7, 2024
afe2b59
minor toc fix sql
shaandes Jun 7, 2024
3c90c90
toc and empty cell fix on deterministic api
shaandes Jun 7, 2024
e45e89f
native API TOC fix
shaandes Jun 7, 2024
a8f2e98
Updating financial agent notebook heading
helloMitchell Jun 12, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added notebooks/.DS_Store
Binary file not shown.
1,018 changes: 1,018 additions & 0 deletions notebooks/.ipynb_checkpoints/Deep_dive_into_RAG_evaluation-checkpoint.ipynb

Large diffs are not rendered by default.

1,830 changes: 1,830 additions & 0 deletions notebooks/.ipynb_checkpoints/Document_Parsing_For_Enterprises-checkpoint.ipynb

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

743 changes: 743 additions & 0 deletions notebooks/.ipynb_checkpoints/Vanilla_RAG-checkpoint.ipynb

Large diffs are not rendered by default.

700 changes: 349 additions & 351 deletions notebooks/Embed_Jobs_Semantic_Search.ipynb

Large diffs are not rendered by default.

1,071 changes: 534 additions & 537 deletions notebooks/Embed_Jobs_Serverless_Pinecone_Semantic_Search.ipynb

Large diffs are not rendered by default.

1,419 changes: 705 additions & 714 deletions notebooks/Vanilla_RAG.ipynb

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,6 @@
"This notebook contains the starter code to do simple [semantic search](https://txt.cohere.ai/what-is-semantic-search/) on the [Wikipedia embeddings archives](https://txt.cohere.ai/embedding-archives-wikipedia/) published by Cohere. These archives embed Wikipedia sites in multiple languages. In this example, we'll use [Wikipedia Simple English](https://huggingface.co/datasets/Cohere/wikipedia-22-12-simple-embeddings). "
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"id": "IUnwp2cYNnP0"
},
"outputs": [],
"source": [
"# Let's install \"cohere<5\" and HF datasets\n",
"# TODO: upgrade to \"cohere>5\"",
"!pip install \"cohere<5\" datasets"
]
},
{
"cell_type": "markdown",
"metadata": {
Expand Down Expand Up @@ -207,7 +194,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.9.13"
"version": "3.8.16"
}
},
"nbformat": 4,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"source": [
"# Tool Use - Simple Data Analyst Agent with Cohere and Langchain\n",
"\n",
"Tool use is a method whichs allows developers to connect Cohere's Command models to external tools like search engines, APIs, databases, and other software tools. Just like how [Retrieval-Augmented Generation (RAG)](https://docs.cohere.com/docs/retrieval-augmented-generation-rag) allows a model to use an external data source to improve factual generation, tool use is a capability that allows retrieving data from multiple sources. But it goes beyond simply retrieving information and is able to use software tools to execute code, or even create entries in a CRM system.\n",
"Tool use is a method which allows developers to connect Cohere's Command models to external tools like search engines, APIs, databases, and other software tools. Just like how [Retrieval-Augmented Generation (RAG)](https://docs.cohere.com/docs/retrieval-augmented-generation-rag) allows a model to use an external data source to improve factual generation, tool use is a capability that allows retrieving data from multiple sources. But it goes beyond simply retrieving information and is able to use software tools to execute code, or even create entries in a CRM system.\n",
"\n",
"In this notebook, we'll see how we can use two tools to create a simple data analyst agent that is able to search the web and run code in a python interpreter. This agent uses Cohere's Command R+ mode and Langchain.\n",
"\n",
Expand Down Expand Up @@ -92,7 +92,7 @@
},
"source": [
"### Web search\n",
"Let's first equip our agent with web search! We can use the Tivaly API for this. Head on to [tavily.com](https://tavily.com) and grab an API key to use here."
"Let's first equip our agent with web search! We can use the Tavily API for this. Head on to [tavily.com](https://tavily.com) and grab an API key to use here."
]
},
{
Expand Down Expand Up @@ -390,7 +390,7 @@
"id": "wZBaxCYeG4Xf"
},
"source": [
"This is a simple example to get you start. There [are many tools](https://python.langchain.com/docs/integrations/tools/) you can equip your agent with. Once youre comfortable with these ideas, you can also proceed to define your tools (see [Multi-step tool use in Action](https://docs.cohere.com/docs/multi-step-tool-use#multi-step-tool-use-in-action)).\n"
"This is a simple example to get you started. There [are many tools](https://python.langchain.com/docs/integrations/tools/) you can equip your agent with. Once you're comfortable with these ideas, you can also proceed to define your tools (see [Multi-step tool use in Action](https://docs.cohere.com/docs/multi-step-tool-use#multi-step-tool-use-in-action)).\n"
]
}
],
Expand All @@ -413,7 +413,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.9.13"
"version": "3.8.16"
}
},
"nbformat": 4,
Expand Down
Loading