Nuno Campos
008301cf02
Lint
2024-04-01 16:15:30 -07:00
Nuno Campos and GitHub
2d351e8752
Merge pull request #247 from langchain-ai/nc/30mar/state-graph-elim-end-node
...
Remove __end__ node from state graph
2024-04-01 16:14:49 -07:00
Nuno Campos and GitHub
e15ba64e1b
Merge pull request #245 from langchain-ai/nc/30mar/stream-mode
...
Add stream_mode=updates or values
2024-04-01 16:14:20 -07:00
Nuno Campos and GitHub
6de5a6de28
Merge pull request #244 from langchain-ai/nc/30mar/pending-writes-by-channel
...
Collect pending writes for each node separately
2024-04-01 16:13:32 -07:00
Nuno Campos and GitHub
90e39a6cc8
Merge pull request #243 from langchain-ai/nc/30mar/rm-mutate-in-stream
...
Remove private api to mutate values during call to stream()
2024-04-01 16:13:11 -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 and GitHub
379345a39c
Merge pull request #259 from langchain-ai/rlm/clean-rag-ntbks
...
Clean and normalize all langgraph RAG ntbks
2024-04-01 14:59:37 -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
Nuno Campos
3451e04b7d
Add test for waiting edge triggered via conditional edge
2024-04-01 12:36:55 -07:00
Nuno Campos
2bf66b8834
Add some more docstrings around multi edges
...
- prompted by some github issues
2024-04-01 12:29:00 -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
Nuno Campos
4e373b8af2
Remove noisy frames from stack traces
...
- The less frames in library code the less confused the user is
- This doesn't remove all library frames (not possible), but it's a start
2024-03-31 20:19:10 -07:00
Nuno Campos
03bef445c6
Lint
2024-03-31 20:16:50 -07:00
Nuno Campos
a20bf12da9
Lint
2024-03-31 19:18:47 -07:00
Nuno Campos
02a25d890f
Lint
2024-03-31 19:16:20 -07:00
Nuno Campos
7bc95d311c
Lint
2024-03-31 19:15:18 -07:00
Nuno Campos
0d2bbe85c6
Fix default condition name
2024-03-31 18:56:38 -07:00
William Fu-Hinthorn
ab0b6d3c0d
Add img
2024-03-31 18:25:12 -07:00
Nuno Campos
b668bf8eab
Rewrite Graph/StateGraph.compile()
...
- Each iteration of the graph is one single iteration in Pregel (ie. no more "{node}:edges" nodes)
- .update_state() now acts exactly as one of the nodes in the graph (which can be chosen), which makes human-in-the-loop scenarios where you want to override the actions of a specific node a lot easier to build
- Graph/StateGraph.compile() now delegate adding nodes/edges/etc to dedicated methods that operate on the Pregel object, which is 90% of the way towards dynamic graphs where nodes and edges can be added during execution
2024-03-31 17:17:18 -07:00
Nuno Campos
4fd90f8ad6
Rename BaseChannel.empty() to BaseChannel.from_checkpoint()
...
- clearer name
- channels with complex data structures in checkpoint (eg a set or list) now copy the checkpointed data structures before creating the new channel
2024-03-31 09:25:08 -07:00
Nuno Campos
03b7d6fe0d
Remove __end__ node from state graph
...
No longer necessary with stream output modes
2024-03-30 22:04:27 -07:00
William Fu-Hinthorn
62ac195d39
Run TNT-LLM
2024-03-30 21:53:15 -07:00
Nuno Campos
1ad017781d
Add stream_mode=updates or values
...
- stream(stream_mode="values") yields thre current channel values whenever a channel is updated
- stream(stream_mode="updates") yields the update sent to each channel by each node
- this removes the __end__ value present at the end of each call to Graph/StateGraph/MessageGraph.stream(). To access the __end__ value either call .invoke() or stream(stream_mode="values")
2024-03-30 21:24:39 -07:00
Nuno Campos
885e5884c5
Collect pending writes for each node separately
...
- ensures that order of updates sent to channels is independent of timing differences when parallel executing multiple nodes
- enables future features
2024-03-30 20:02:17 -07:00
Nuno Campos
0baaf5cd96
Remove private api to mutate values during call to stream()
2024-03-30 19:41:50 -07:00
William Fu-Hinthorn
f4ef67c5d3
Draft tnt llm
2024-03-30 16:29:27 -07:00
Mohamed A. Fouad and GitHub
4182538b0a
Update lats.ipynb ( #227 )
...
Fixes a typo.
2024-03-29 16:42:24 -07:00
Nuno Campos and GitHub
15908adcd0
Merge pull request #236 from langchain-ai/jacob/async_edges
...
Adds async conditional edge support
2024-03-28 15:42:34 -07:00
Lance Martin and GitHub
8f2356b590
Merge pull request #237 from langchain-ai/rlm/adaptive-rag
...
Add adaptive RAG
2024-03-28 12:07:56 -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
Nuno Campos
5aa036639b
Update
2024-03-26 15:42:16 -07:00
jacoblee93
e79453633d
Simplify
2024-03-26 12:59:26 -07:00
jacoblee93
a6a9def91a
Adds async conditional edge support
2024-03-26 12:46:15 -07:00
Nuno Campos
2b42407f05
0.0.30
2024-03-22 08:23:34 -07:00
Nuno Campos and GitHub
458d71e694
Merge pull request #226 from langchain-ai/nc/21mar/add-message-graph-test
...
Add one more test for message graph
2024-03-21 18:00:00 -07:00
Nuno Campos and GitHub
49d3943ffd
Merge pull request #164 from langchain-ai/nc/29feb/waiting-edge
...
Add StateGraph.add_edge(string[], string)
2024-03-21 17:59:46 -07:00
Nuno Campos
62dfa48ce5
Lint
2024-03-21 17:58:23 -07:00
Nuno Campos
db2ec5b2de
Rename to add_edge(string[], string)
2024-03-21 17:56:35 -07:00
Nuno Campos
e11153cf09
Fix graph repr
2024-03-21 16:53:59 -07:00
Nuno Campos
319d72952c
Add one more test for message graph
2024-03-21 16:35:26 -07:00
Nuno Campos
ccea395002
Fox
2024-03-21 16:06:23 -07:00
Nuno Campos
01c32c2464
Finish
2024-03-21 15:54:03 -07:00
Nuno Campos
6cb5062c1a
Lol
2024-03-21 14:30:51 -07:00
Nuno Campos
158f84c826
WIP Waiting edge
2024-03-21 14:29:40 -07:00