Nuno Campos
f3a0cbf294
Format
2025-02-18 11:46:48 -08:00
Nuno Campos
f4fec76257
checkpoint: Fix memory leak in checkpoint serializer
...
- Packer instances can't be kept in memory as they retain memory after used
2025-02-18 11:44:26 -08:00
Nuno Campos
d4b22ac1d4
Fix postgres tests
2025-02-14 18:40:30 -08:00
Nuno Campos
8ff5e79e70
Lint
2025-02-14 18:27:49 -08:00
Nuno Campos
7f4822931e
Update tests
2025-02-14 18:24:48 -08:00
Nuno Campos
9706211aca
Exclude complex values from checkpoint metadata
2025-02-14 17:35:14 -08:00
Nuno Campos
da97d2e1ba
Fix
2025-02-14 12:03:03 -08:00
Nuno Campos
6baf320d8e
Fix
2025-02-14 10:43:03 -08:00
Nuno Campos
a064ccdca1
Lint
2025-02-14 10:40:09 -08:00
Nuno Campos
b5479b48bf
Lint
2025-02-14 10:39:34 -08:00
Nuno Campos
9dbcb03185
Fix busy loop in AsyncBatchedBaseStore
...
- while loop w asyncio.sleep(0) takes up cpu
2025-02-14 10:36:02 -08:00
Vadym Barda and GitHub
1377e3b6ba
checkpoint: combine metadata when writing checkpoints ( #3404 )
2025-02-13 03:24:41 +00:00
William FH and GitHub
e81979827f
Support index embed specification via string ( #3317 )
...
So you can do
```
from langgraph.store.memory|posgres|etc. import InMemoryStore
InMemoryStore(index={"embed": "openai:text-embedding-3-small"})
```
2025-02-09 02:09:10 +00:00
William FH and GitHub
3daa4ae466
Update name to InMemorySaver ( #2044 )
...
(Keep MemorySaver around for backwards compatibility)
"MemorySaver" is ambiguous: is it saving memories? Where is it saving
memories to?
InMemorySaver aligns naming InMemoryStore as well as similar LangChain
objects (InMemoryVectorStore, etc.)
2025-02-05 22:04:25 -08:00
Nuno Campos
14b500d8a8
Fix
2025-01-15 10:47:09 -08:00
Nuno Campos
053a501db3
Add optional task_path arg for put_writes()
...
- Will be used for sorting pending_sends when available
2025-01-15 10:42:54 -08:00
vbarda
a031f8294e
all lines
2024-12-12 11:06:45 -05:00
vbarda
7d940a4a96
lint
2024-12-12 10:58:50 -05:00
vbarda
6ae0c83c83
checkpoint: set strict_map_key=False in serde
2024-12-12 10:58:07 -05:00
Nuno Campos
7f8ec2c590
Fix
2024-12-10 13:46:45 -08:00
Nuno Campos
11e80210a2
lib: Performance improvements
...
- don't create contextvars.Context/asyncio.Task in RunnableSeq (not needed as each step creates it if necessary)
- don't run in-memory-saver methods in background threads (no point as they hold the gil)
- avoid calling should_interrupt when no interrupts set
2024-12-10 11:40:24 -08:00
William FH and GitHub
3f1bdb9ebf
Add sync support for the AsyncPostgresStore ( #2673 )
2024-12-09 07:12:52 -08:00
William FH and GitHub
0f0e31df24
Nicer item repr ( #2655 )
2024-12-05 10:52:44 -08:00
William FH and GitHub
e5e659c590
Add langgraph.json snippet to concept doc ( #2630 )
2024-12-04 17:11:13 +00:00
William FH and GitHub
830557d6b7
Clarify behavior in docstring ( #2628 )
2024-12-04 16:38:09 +00:00
William FH and GitHub
c322f7ffa6
Add Memory Store conceptual doc section ( #2624 )
...
On semantic search
2024-12-04 15:19:49 +00:00
William FH and GitHub
e6c83abecd
Fix ref doc formatting ( #2623 )
2024-12-04 06:55:15 -08:00
William FH and GitHub
5fa196ab38
Update docstrings for store classes ( #2616 )
2024-12-03 19:51:25 -08:00
William FH and GitHub
36b6cd1493
fix: Handle empty store similarity (numpy) ( #2602 )
2024-12-02 18:20:19 -08:00
William FH and GitHub
62a36befd5
Add in-mem vector search ( #2547 )
2024-11-27 14:53:24 -08:00
William FH and GitHub
1febec7c0d
Dedup store batch operations ( #2534 )
2024-11-25 16:31:26 -08:00
William FH and GitHub
679a7365da
Add default ns in put_writes ( #2404 )
2024-11-18 22:55:12 -08:00
Nuno Campos and GitHub
167405daf2
Merge pull request #2434 from langchain-ai/nc/15nov/update-state-copy-parent
...
lib: When copying checkpoint, make it a child of the parent
2024-11-18 08:34:34 -08:00
886df0fa86
checkpoint: Add option to use persistent dict for in-memory checkpointer ( #2439 )
...
- This should only be used in very specific circunstances, sqlite or
postgres adapters much more appropriate in most circunstances
---------
Co-authored-by: William Fu-Hinthorn <13333726+hinthornw@users.noreply.github.com >
2024-11-18 16:04:05 +00:00
Nuno Campos
36e49eb190
Add distinct source
2024-11-15 17:04:40 -08:00
Nuno Campos and GitHub
f11127648e
Merge pull request #2346 from langchain-ai/nc/4nov/send-eager
...
lib: Execute Sends in the superstep that originated them (feature-flagged)
2024-11-13 13:39:50 -08:00
Nuno Campos
03bc9ba6e6
Make Command a dataclass
2024-11-13 13:11:28 -08:00
William FH and GitHub
7b4c29a20d
[Checkpointers] MemorySaver: refrain from overwriting writes ( #2399 )
2024-11-13 00:20:38 +00:00
Nuno Campos
86d2847dab
Use neg idx
2024-11-11 17:57:45 -08:00
Nuno Campos
89a0859928
Execute Sends in same super step that triggered them
...
- Keep old code path for compatibility with existing checkpoints
- Keep a similar order of application of updates, in some cases there will be no visible change
- Update task path for Sends to contain the path of all the parent tasks (multiple parents when a Send task creates another Send)
- That lineage path is used to ensure order of application of updates respects their logical lineage (ie updates from parents always applied before their child tasks)
- Move Interrupt writes to use negative indexes, which allow replacing/shadowing (when task is re-run it may interrupt again, or succeed)
- Runner will now attempt to schedule new Send tasks as soon as the write is received (ie while the originating node is still running)
- Update kafka scheduler to support new Send behavior
2024-11-11 14:01:16 -08:00
Nuno Campos
efb1dd6a10
lib: Rename Control to GraphCommand
2024-11-11 13:01:04 -08:00
Nuno Campos
010564cbb3
lib: Make Control object serializable
2024-11-05 15:24:20 -08:00
Vadym Barda and GitHub
def3e06b4a
move py.typed to submodules for namespace packages ( #2177 )
2024-10-24 13:43:43 -04:00
Nuno Campos
dc47c7b357
lib: Add result for each task in a checkpoint
...
- Note this requires disabling the optimization that avoids saving writes for the last task in a step
2024-10-11 16:08:00 -07:00
William FH and GitHub
254b12a62d
Use AsyncBatch for postgres store ( #2020 )
2024-10-08 06:58:26 +00:00
Riya Sinha and GitHub
61798d09d2
checkpoint: set CheckpointNS ConfigurableFieldSpec model default to empty string ( #2019 )
2024-10-07 18:38:18 +00:00
William FH and GitHub
05dbc1d498
Validate in async batched store ( #2017 )
2024-10-06 14:09:35 -07:00
William FH and GitHub
018e9ac42e
Check is string in store namespace validation (on put) ( #2007 )
2024-10-04 17:55:30 +00:00
William FH and GitHub
c74aba8cc5
[Docs] Storage ref docs ( #1985 )
2024-10-02 16:53:39 -07:00
William FH and GitHub
a3cb9c1a94
Validate no empty namespace is added ( #1961 )
...
Also check the root label isn't "langgraph"
2024-10-01 18:43:45 -07:00