-
Notifications
You must be signed in to change notification settings - Fork 22
Add Mem0 integration - support for Mem0 platform #391
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
68 commits
Select commit
Hold shift + click to select a range
097aaaf
Add mem0 integration
Amnah199 df96c56
Add custom prompt
Amnah199 fd6288e
Merge branch 'main' of https://github.com/deepset-ai/haystack-experim…
Amnah199 114d784
Udpates
Amnah199 7af23ae
Update tests
Amnah199 56fe622
Fix errors and update
Amnah199 8024c2d
Fix licenses
Amnah199 69d3fbf
Updates
Amnah199 4ca6164
Fixes
Amnah199 18ebd92
Fix linting
Amnah199 73426b5
Fix linting
Amnah199 b063430
Updates
Amnah199 9582257
Update agent logic
Amnah199 758067b
Fix linting
Amnah199 d6d503a
fix linting
Amnah199 9a7dbf7
Fix linting
Amnah199 b6ca11e
Update agent
Amnah199 0790f5b
Update tests
Amnah199 ad7cb32
PR comments
Amnah199 41624cd
PR comments
Amnah199 efec3a5
Merge branch 'main' of https://github.com/deepset-ai/haystack-experim…
Amnah199 bf5f7d9
Use experimental agent
Amnah199 c58c1a7
PR comments
Amnah199 4b18f57
Fix linting
Amnah199 048f990
Update tests
Amnah199 4cef5d0
Fix linting
Amnah199 5bc9028
PR comments
Amnah199 d9d784b
PR comments
Amnah199 bad6e08
Update the init file
Amnah199 21ba442
Remove config
Amnah199 d44eb9d
Retrieve memories as system messages
Amnah199 88398a3
Add missing init files
Amnah199 0d05156
Fixes
Amnah199 474bd37
More linting issues
Amnah199 8f5be7a
Try fixing import error
Amnah199 8e085b6
add memory_store
Amnah199 023324c
Update haystack_experimental/components/agents/agent.py
Amnah199 4130eda
Add types
Amnah199 ee10759
Merge branch 'mem0-integration' of https://github.com/deepset-ai/hays…
Amnah199 35d6808
Update add logic
Amnah199 4f95dd1
Fix version
Amnah199 c2fb710
Add new search method
Amnah199 30b1525
Remove print statements
Amnah199 00313dd
Fix linting error
Amnah199 0dae67c
Update tests
Amnah199 5e6eb0f
Update the dependency
Amnah199 687688b
Test update
Amnah199 f79d8f0
Fix bug
Amnah199 a1eefce
Merge branch 'main' of https://github.com/deepset-ai/haystack-experim…
Amnah199 d18f5b0
Add filter conversion
Amnah199 cbf7b2c
Remove example file
Amnah199 5de02b7
PR comments
Amnah199 72a0f71
Fix tests
Amnah199 166b196
Fix linting
Amnah199 06784ad
Fix tests
Amnah199 51e7b7f
Update pydocs
Amnah199 3af72ca
Update types
Amnah199 9e71f83
Add integration tests
Amnah199 722986f
Update the tests
Amnah199 e1cccfa
Update workflow
Amnah199 08b7e2b
Update workflow
Amnah199 9f40526
Update memory store fixture
Amnah199 5d46bf3
Update workflow
Amnah199 adc209a
Update workflow
Amnah199 bfc9ca6
Add permission
Amnah199 7d135bd
PR comments
Amnah199 f9ee756
Add license
Amnah199 e91518c
Add pydocs
Amnah199 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change | ||||||
|---|---|---|---|---|---|---|---|---|
|
|
@@ -24,12 +24,20 @@ on: | |||||||
| - "pyproject.toml" | ||||||||
| - ".github/workflows/tests.yml" | ||||||||
|
|
||||||||
| permissions: | ||||||||
| id-token: write | ||||||||
| contents: read | ||||||||
|
|
||||||||
| env: | ||||||||
| PYTHON_VERSION: "3.10" | ||||||||
| HATCH_VERSION: "1.14.2" | ||||||||
| PYTHONUNBUFFERED: "1" | ||||||||
| FORCE_COLOR: "1" | ||||||||
| OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} | ||||||||
| COHERE_API_KEY: ${{ secrets.COHERE_API_KEY }} | ||||||||
| MEM0_API_KEY: ${{ secrets.MEM0_API_KEY }} | ||||||||
| GOOGLE_API_KEY: ${{ secrets.GOOGLE_API_KEY }} | ||||||||
| AWS_REGION: "us-east-1" | ||||||||
| jobs: | ||||||||
| linting: | ||||||||
| runs-on: ubuntu-latest | ||||||||
|
|
@@ -129,5 +137,16 @@ jobs: | |||||||
|
|
||||||||
| - name: Install Hatch | ||||||||
| run: pip install hatch==${{ env.HATCH_VERSION }} | ||||||||
|
|
||||||||
| # Do not authenticate on PRs from forks and on PRs created by dependabot | ||||||||
| - name: AWS authentication | ||||||||
| id: aws-auth | ||||||||
| if: github.event_name == 'schedule' || (github.event.pull_request.head.repo.full_name == github.repository && !startsWith(github.event.pull_request.head.ref, 'dependabot/')) | ||||||||
| uses: aws-actions/configure-aws-credentials@61815dcd50bd041e203e49132bacad1fd04d2708 | ||||||||
| with: | ||||||||
| aws-region: ${{ env.AWS_REGION }} | ||||||||
| role-to-assume: ${{ secrets.AWS_CI_ROLE_ARN }} | ||||||||
|
|
||||||||
| - name: Run | ||||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Seems like we also have this in the bedrock integration tests
Suggested change
|
||||||||
| if: success() && steps.aws-auth.outcome == 'success' | ||||||||
| run: hatch run test:integration-retry | ||||||||
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| # SPDX-FileCopyrightText: 2022-present deepset GmbH <info@deepset.ai> | ||
| # | ||
| # SPDX-License-Identifier: Apache-2.0 | ||
|
|
||
| from .types import MemoryStore | ||
|
|
||
| __all__ = ["MemoryStore"] |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
| # SPDX-FileCopyrightText: 2022-present deepset GmbH <info@deepset.ai> | ||
| # | ||
| # SPDX-License-Identifier: Apache-2.0 | ||
|
|
||
| import sys | ||
| from typing import TYPE_CHECKING | ||
|
|
||
| from lazy_imports import LazyImporter | ||
|
|
||
| _import_structure = {"memory_store": ["Mem0MemoryStore"]} | ||
|
|
||
| if TYPE_CHECKING: | ||
| from .memory_store import Mem0MemoryStore as Mem0MemoryStore | ||
|
|
||
| else: | ||
| sys.modules[__name__] = LazyImporter(name=__name__, module_file=__file__, import_structure=_import_structure) |
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And right before
integration-tests:add this block