From a635831b31bb705034b155428ccd5106ea22d9fd Mon Sep 17 00:00:00 2001 From: Fabricio Braz Date: Tue, 18 Jul 2023 18:18:36 -0300 Subject: [PATCH 1/5] Update LangChain Cookbook Part 1 - Fundamentals.ipynb fixing agents url --- LangChain Cookbook Part 1 - Fundamentals.ipynb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LangChain Cookbook Part 1 - Fundamentals.ipynb b/LangChain Cookbook Part 1 - Fundamentals.ipynb index 0467f4b..8df35a5 100644 --- a/LangChain Cookbook Part 1 - Fundamentals.ipynb +++ b/LangChain Cookbook Part 1 - Fundamentals.ipynb @@ -1573,7 +1573,7 @@ "\n", "The language model that drives decision making.\n", "\n", - "More specifically, an agent takes in an input and returns a response corresponding to an action to take along with an action input. You can see different types of agents (which are better for different use cases) [here](https://python.langchain.com/en/latest/modules/agents/agents/agent_types.html)." + "More specifically, an agent takes in an input and returns a response corresponding to an action to take along with an action input. You can see different types of agents (which are better for different use cases) [here](https://python.langchain.com/en/latest/modules/agents/agent_types.html)." ] }, { From b003a29b042628acce4891c3f518a29d43058d28 Mon Sep 17 00:00:00 2001 From: Yichao JIN Date: Wed, 2 Aug 2023 13:32:33 +0800 Subject: [PATCH 2/5] update Expert Structured Output (Using Kor).ipynb --- .../Expert Structured Output (Using Kor).ipynb | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/data_generation/Expert Structured Output (Using Kor).ipynb b/data_generation/Expert Structured Output (Using Kor).ipynb index 9ae29fa..0211dbf 100644 --- a/data_generation/Expert Structured Output (Using Kor).ipynb +++ b/data_generation/Expert Structured Output (Using Kor).ipynb @@ -187,7 +187,7 @@ " My sister's name is Rachel.\n", " My brother's name Joe. My dog's name is Spot\n", "\"\"\"\n", - "output = chain.predict_and_parse(text=(text))[\"data\"]\n", + "output = chain.run(text=(text))[\"data\"]\n", "\n", "printOutput(output)\n", "# Notice how there isn't \"spot\" in the results list because it's the name of a dog, not a person." @@ -218,7 +218,7 @@ } ], "source": [ - "output = chain.predict_and_parse(text=(\"The dog went to the park\"))[\"data\"]\n", + "output = chain.run(text=(\"The dog went to the park\"))[\"data\"]\n", "printOutput(output)" ] }, @@ -300,7 +300,7 @@ "text=\"Palm trees are brown with a 6 rating. Sequoia trees are green\"\n", "\n", "chain = create_extraction_chain(llm, plant_schema)\n", - "output = chain.predict_and_parse(text=text)['data']\n", + "output = chain.run(text=text)['data']\n", "\n", "printOutput(output)" ] @@ -402,7 +402,7 @@ "\n", "# Changed the encoder to json\n", "chain = create_extraction_chain(llm, cars_schema, encoder_or_encoder_class=\"json\")\n", - "output = chain.predict_and_parse(text=text)['data']\n", + "output = chain.run(text=text)['data']\n", "\n", "printOutput(output)" ] @@ -529,7 +529,7 @@ ], "source": [ "chain = create_extraction_chain(llm, schema, encoder_or_encoder_class='json')\n", - "output = chain.predict_and_parse(text=\"please add 15 more units sold to 2023\")['data']\n", + "output = chain.run(text=\"please add 15 more units sold to 2023\")['data']\n", "\n", "printOutput(output)" ] @@ -891,7 +891,7 @@ } ], "source": [ - "output = chain.predict_and_parse(text=text)[\"data\"]\n", + "output = chain.run(text=text)[\"data\"]\n", "\n", "printOutput(output)" ] @@ -1027,7 +1027,7 @@ ], "source": [ "chain = create_extraction_chain(llm, salary_range)\n", - "output = chain.predict_and_parse(text=text)[\"data\"]\n", + "output = chain.run(text=text)[\"data\"]\n", "\n", "printOutput(output)" ] @@ -1070,7 +1070,7 @@ ], "source": [ "with get_openai_callback() as cb:\n", - " result = chain.predict_and_parse(text=text)\n", + " result = chain.run(text=text)\n", " print(f\"Total Tokens: {cb.total_tokens}\")\n", " print(f\"Prompt Tokens: {cb.prompt_tokens}\")\n", " print(f\"Completion Tokens: {cb.completion_tokens}\")\n", @@ -1129,7 +1129,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.9.13" + "version": "3.9.6" } }, "nbformat": 4, From e3a7001bf089ee21704feb6485bac3094c2b4be0 Mon Sep 17 00:00:00 2001 From: Yichao JIN Date: Wed, 2 Aug 2023 13:35:14 +0800 Subject: [PATCH 3/5] update Expert Structured Output (Using Kor).ipynb --- data_generation/Expert Structured Output (Using Kor).ipynb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data_generation/Expert Structured Output (Using Kor).ipynb b/data_generation/Expert Structured Output (Using Kor).ipynb index 0211dbf..7a5bb37 100644 --- a/data_generation/Expert Structured Output (Using Kor).ipynb +++ b/data_generation/Expert Structured Output (Using Kor).ipynb @@ -1129,7 +1129,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.9.6" + "version": "3.9.13" } }, "nbformat": 4, From 859e2113829c6e6b39b6339535efd3cff2198aa8 Mon Sep 17 00:00:00 2001 From: matisandacz <54194162+matisandacz@users.noreply.github.com> Date: Mon, 11 Sep 2023 10:47:57 -0300 Subject: [PATCH 4/5] Update README.md --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 54671cb..1905187 100644 --- a/README.md +++ b/README.md @@ -31,6 +31,7 @@ Prompt Engineering (my favorite resources): | Project | Contact | Difficulty | Open Sourced? | Notes | | - | ----------- | ---------- | :-: | ---------- | | [SummarizePaper.com](https://www.summarizepaper.com/) | Quentin Kral | 🐒 Intermediate | ✅ [Code](https://github.com/summarizepaper/summarizepaper) | Summarize arXiv papers | +| [SlackSummarizerPlugin] | Matias Sandacz | 🐒 Intermediate | ✅ [Code]([https://github.com/summarizepaper/summarizepaper](https://github.com/matisandacz/SlackSummarization)) | Summarize Slack Conversations |
@@ -101,4 +102,4 @@ As an open-source project in a rapidly developing field, we are extremely open t Submit a PR with notes. -This repo and series is provided by [DataIndependent](https://dataindependent.com/) and run by [Greg Kamradt](https://twitter.com/GregKamradt) \ No newline at end of file +This repo and series is provided by [DataIndependent](https://dataindependent.com/) and run by [Greg Kamradt](https://twitter.com/GregKamradt) From 2f2da480c56451b1b09535dad7a2f16408beb08f Mon Sep 17 00:00:00 2001 From: matisandacz <54194162+matisandacz@users.noreply.github.com> Date: Mon, 11 Sep 2023 10:49:27 -0300 Subject: [PATCH 5/5] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 1905187..955be33 100644 --- a/README.md +++ b/README.md @@ -31,7 +31,7 @@ Prompt Engineering (my favorite resources): | Project | Contact | Difficulty | Open Sourced? | Notes | | - | ----------- | ---------- | :-: | ---------- | | [SummarizePaper.com](https://www.summarizepaper.com/) | Quentin Kral | 🐒 Intermediate | ✅ [Code](https://github.com/summarizepaper/summarizepaper) | Summarize arXiv papers | -| [SlackSummarizerPlugin] | Matias Sandacz | 🐒 Intermediate | ✅ [Code]([https://github.com/summarizepaper/summarizepaper](https://github.com/matisandacz/SlackSummarization)) | Summarize Slack Conversations | +| SlackSummarizerPlugin | Matias Sandacz | 🐒 Intermediate | ✅ [Code](https://github.com/matisandacz/SlackSummarization) | Summarize Slack Conversations |