Commit Graph
555 Commits
Author SHA1 Message Date
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
William Fu-Hinthorn 2f22bb9f10 commentary 2024-04-01 00:32:55 -07:00
William Fu-Hinthorn 6bfb9ec666 Include classification steps 2024-04-01 00:28:55 -07:00
William Fu-Hinthorn ab0b6d3c0d Add img 2024-03-31 18:25:12 -07:00
William Fu-Hinthorn 62ac195d39 Run TNT-LLM 2024-03-30 21:53:15 -07:00
William Fu-Hinthorn f4ef67c5d3 Draft tnt llm 2024-03-30 16:29:27 -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
HowardChanandGitHub fa0f911340 Fix/Typos (#206) 2024-03-15 14:33:53 -07:00
Lance Martin 453bbdc284 Minor updates to STORM ntbk 2024-03-14 10:50:58 -07:00
William Fu-Hinthorn 5b7fa17955 Subgraph example 2024-03-07 17:58:23 -08:00
Harrison ChaseandGitHub d0e974ce8b viz notebook (#182)
* cr

* cr
2024-03-07 09:19:26 -08:00
William Fu-Hinthorn 54e367a628 format 2024-03-06 17:33:07 -08:00
William Fu-Hinthorn 7e4abdf08a clear long outputs 2024-03-06 17:32:10 -08:00
William Fu-Hinthorn afca1e3e48 Add link for langgraph code assistnat 2024-03-06 17:30:58 -08:00
William Fu-Hinthorn 073784b5e3 r 2024-03-06 17:08:20 -08:00
William Fu-Hinthorn 199af2c5b4 fixup 2024-03-06 16:59:34 -08:00
William Fu-Hinthorn f9ae2e651f gs 2024-03-06 15:07:40 -08:00
William Fu-Hinthorn 918e795961 update notebook 2024-03-06 15:03:57 -08:00
William Fu-Hinthorn c08a9329aa Add notebook 2024-03-06 14:13:11 -08:00
William Fu-Hinthorn fc48546ebd examples 2024-03-06 13:07:33 -08:00
William Fu-Hinthorn ab032fec2f tmp 2024-03-06 12:33:06 -08:00
William FHandGitHub 837a038ed2 Merge branch 'main' into wfh/recurse 2024-03-03 17:53:51 -08:00
William Fu-Hinthorn 699d89b3d9 noself 2024-03-03 17:52:12 -08:00
William Fu-Hinthorn 33d36c37b4 Recurse 2024-03-03 17:41:10 -08:00
William FHandGitHub 001fd058f3 Merge pull request #169 from kikoncuo/patch-1
Fixed rewoo.ipynb
2024-03-03 17:34:09 -08:00