Commit Graph
273 Commits
Author SHA1 Message Date
Nuno CamposandGitHub de9c0786f5 Merge pull request #328 from angeligareta/improve_visualization_notebook
Fix visualization notebook outputs
2024-04-22 08:38:19 -07:00
Angel Igareta 45a9a054d7 Fix visualization notebook outputs 2024-04-19 17:29:36 +02:00
Lance Martin 5abe98e8d9 RAG agent llama3 loca 2024-04-18 17:46:31 -07:00
Nuno CamposandGitHub 97dc410b08 Merge pull request #323 from angeligareta/improve_visualization_notebook
Enrich visualization notebook to showcase new capabilities
2024-04-18 10:20:55 -07:00
William FHandGitHub fe03a60dff Fix bullet point (#324)
In tutorials index
2024-04-18 09:04:08 -07:00
Angel Igareta 3fb6519886 Remove graph from repo 2024-04-18 16:04:36 +02:00
Angel Igareta f1eca30912 Update visualization notebook to showcase new capabilities for mermaid rendering (syntax and PNG), as well as removing conditional nodes 2024-04-18 12:19:45 +02:00
William FHandGitHub 49cced4f92 Tutorial (#315) 2024-04-18 01:15:21 -07:00
William FHandGitHub 85f48da84e Docs Draft (#286) 2024-04-15 22:44:12 -07:00
Marco TrinelliandGitHub eb10fe599b fix: plan execute example response state (#303) 2024-04-15 22:43:11 -07:00
Nuno Campos f3ae555b91 Shorten conditional edge names 2024-04-12 09:29:27 -07:00
Nuno Campos 92deae4196 Add anthropic notebook 2024-04-11 10:50:06 -07:00
Nuno Campos 7dafc09a5b Add prebuilt ToolNode 2024-04-10 18:15:19 -07:00
Eugene Yurtsev a81ba40a86 x 2024-04-09 15:06:58 -04:00
Eugene Yurtsev 57feccfec9 x 2024-04-09 15:06:15 -04:00
Eugene Yurtsev 40a0f8c9ca x 2024-04-09 15:06:03 -04:00
ce687403d4 Fix single/double quotes in storm.ipynb (#225)
to avoid "unterminated string literal" error when run in Jupyter

Co-authored-by: William FH <13333726+hinthornw@users.noreply.github.com>
2024-04-08 13:42:53 -07:00
Ronen AzachiandGitHub deabce5780 added packages to run multi-agent collaboration notebook (#282)
Added packages to be able to run the notebook
2024-04-08 13:41:58 -07:00
Lance MartinandGitHub a3c4d4bdd1 Merge pull request #273 from langchain-ai/rlm/claude3-code-gen
Clean code-gen ntbk
2024-04-07 17:21:15 -07:00
Lance Martin fdc34ef3b7 Fmt 2024-04-07 16:00:18 -07:00
Lance Martin 04668df9bc Add Claude3 evals 2024-04-07 15:55:37 -07:00
Lance Martin 5f8add89c3 Clean / test 2024-04-06 13:31:48 -07:00
Lance Martin 520443d6cd Clean up code for Claude3 2024-04-06 13:20:39 -07:00
MisraaksandGitHub 217321127f Issue #274: Fix LLMCompiler Bugs (#275)
* Update LLMCompiler.ipynb

The code didn't actually handle when there's more than one dependency listed in an argument. The example of multi-step math used in the code doesn't work because the third step has more than one dependency in its args and the code only handles one:
```
User query: "What's ((3*(4+5)/0.5)+3245) + 8? What's 32/4.23? What's the sum of those two values?"
1. math(problem="((3*(4+5)/0.5)+3245) + 8")
2. math(problem="32/4.23")
3. math(problem="${1}+${2}")
4. join()<END_OFPLAN>
```
Step 3 fails, and does so silently too. It correctly parses strings that are "${1}", but not multi-argument strings like "${1}+${2}"

This fixes it to handle any number of dependencies listed in one arg. It uses the regex pattern already defined in output_parser.py.

* Fix looping function calls because no arg context

Task Fetching Unit, when it inserts the tool_messages, the function args don't get logged with function calls, this causes the replanner to loop and use the same function parameters and never corrects itself.

* Fix tool index count and range

In the planner prompt formatting, the 'num_tools' variable needs to have a +1 added to it because we're appending the join() function, without +1 it says there's one less available tools than there actually is because it only counts the passed in functions and not the join() function. And add +1 for listing otherwise it starts at a 0 offset.

* Fix unhandled empty iterator exception

Task fetching unit: When it calls the tools it doesn't handle when there's no tasks. next() is called and fails. This fixes it by wrapping in a try/except. On exception we set tasks to an empty list since next() failed, there's no tasks.
2024-04-05 10:37:11 -07:00
Lance Martin c43de8637c Finalize 2024-04-03 21:39:56 -07:00
Lance Martin e779b4335b Finalize ntbk w/ GPT-4 2024-04-03 21:27:50 -07:00
Lance Martin fe87c43375 Update notebook 2024-04-03 15:10:25 -07:00
Lance Martin a984c65b6d Clean ntbk 2024-04-03 11:34:25 -07:00
Lance Martin 1257518789 Cohere adaptive RAG 2024-04-02 21:56:10 -07:00
Nuno Campos 05009d8068 Update adaptive rag notebook to use invoke 2024-04-02 16:53:56 -07:00
Nuno Campos f269db4d58 Add LangSmith run urls in time travel notebook 2024-04-02 16:11:48 -07:00
Nuno Campos 617591ad42 Update time travel notebook 2024-04-02 14:51:14 -07:00
Nuno Campos 2a299d070e Optimize tracing output of Graph/StateGraph/MessageGraph
- control selection of relevant runs (needs langsmith release)
- see output of conditional edge function
- fix issue with conditional entry point not getting full state values as input
2024-04-02 10:32:47 -07:00
Nuno Campos 961ddd49ed Add test and notebook for using pydantic base model as state object 2024-04-01 17:40:55 -07:00
Nuno Campos f88ef74002 Add tests for both values of CheckpointAt
- fix bug when using at=END_OF_RUN together with interrupt_before
- fix bug when calling update_state after only node has run
- update some notebooks to new streaming format (ie. no __end__ node)
2024-04-01 17:17:39 -07:00
Nuno CamposandGitHub 1276547233 Merge pull request #258 from langchain-ai/nc/1apr/optimize-tracing-tree
Optimize tracing run tree
2024-04-01 16:16:54 -07:00
Nuno Campos 2736d72989 Remove __start__ node from stream output 2024-04-01 16:05:12 -07:00
Nuno Campos 3e4c94289a Manage run_manager directly
- allows us to set run output different from streamed values: here the run output should always be final value of all channels
- removes 1-2 more frames from stack traces
2024-04-01 15:08:35 -07:00
Lance Martin 736b307647 Clean, update all ntbks 2024-04-01 14:48:42 -07:00
Nuno Campos b6848c5fdf Optimize tracing run tree
- Do not run node if it's a passthrough
- Do not run writers that wouldn't affect any channels
- Combine consecutive writers when it doesn't change semantics
2024-04-01 13:43:23 -07:00
Lance Martin 3a9387e53f Update, clean, normalize langgraph RAG ntbks 2024-04-01 13:12:21 -07:00
Mohamed A. FouadandGitHub 4182538b0a Update lats.ipynb (#227)
Fixes a typo.
2024-03-29 16:42:24 -07:00
Lance Martin cb66b31286 Finalize ntbk 2024-03-28 12:03:52 -07:00
Lance Martin cf7f6243d7 Add set_conditional_entry_point 2024-03-26 16:59:24 -07:00
Lance Martin aefea04d31 Add adaptive RAG 2024-03-26 16:33:31 -07:00
Jacob LeeandGitHub 7dcc05f92f Small README tweaks (#215)
* Small README tweaks

* Update section

* Update
2024-03-19 08:49:06 -07:00
Jacob LeeandGitHub ea9fd7ada0 Fix broken link? (#214)
* Fix broken link?

* Fix
2024-03-18 22:12:29 -07:00
Jacob LeeandGitHub 575684e841 Update quickstart with simpler message graph examples (#213) 2024-03-18 21:34:12 -07:00
William FHandGitHub 00de78e2fd Add Branching Example (#212) 2024-03-18 10:51:35 -07:00
4a5206c93e add notebook for get update state (#180)
* add notebook for get update state

* cr

* Fix bad merge

* Update notebook

* Update

* Fix unbound local bug

* Fix duplicate history entries

* Update notebook with time travel section

* Update notebook

* cr

* cr

---------

Co-authored-by: Nuno Campos <nuno@langchain.dev>
2024-03-15 14:35:01 -07:00