Add Letta memory provider - #29
Draft
ThePlenkov wants to merge 4 commits into
Draft
Conversation
Co-Authored-By: Petr Plenkov <petr.plenkov@gmail.com>
Co-Authored-By: Petr Plenkov <petr.plenkov@gmail.com>
Co-Authored-By: Petr Plenkov <petr.plenkov@gmail.com>
Co-Authored-By: Petr Plenkov <petr.plenkov@gmail.com>
|
@devin-ai-integration[bot] is attempting to deploy a commit to the Vectorize Team on Vercel. A member of the Team first needs to authorize it. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a
lettamemory provider to the benchmark, backed by Letta's archive API for semantic retrieval and optional agent-based answers.LettaMemoryProviderunder--memory lettaand regeneratescatalog.jsonso the UI lists it.Documents as archival passages (one archive per isolation unit), batching writes in groups of 50 and embedding document timestamps in text to avoid date-format rejections.retrieve()searches the archive viapassages.search, honors the caller'sk(default 20), and filters out passages whose stored timestamp is after the optionalquery_timestampto prevent future-context leakage.direct_answer()lazily creates a throwaway Letta agent per unit with the archive attached; prepends the question date to the prompt and serializes messages with a per-agent lock.cleanup()deletes temporary agents while keeping archives.LETTA_API_KEYorLETTA_BASE_URLis validated at startup; optionalLETTA_EMBEDDING_MODEL,LETTA_MODEL,LETTA_MAX_STEPS.Adds
letta-client>=1.12.1to dependencies and documents the new options inREADME.md.Verified with mocked Letta client only; a live run requires Letta Cloud or a self-hosted server.