-
Notifications
You must be signed in to change notification settings - Fork 1.8k
feat: GraphDBBlock #2017
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
base: master
Are you sure you want to change the base?
feat: GraphDBBlock #2017
Conversation
|
@cafeii will help with code review |
zjrwtx
left a comment
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.
thanks @X-TRON404 !left some comments
camel/memories/agent_memories.py
Outdated
| """ | ||
| return self._graph_db_block.retrieve( | ||
| query=self._current_query, | ||
| numberOfNearestNeighbours=self._retrieve_limit, |
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.
| numberOfNearestNeighbours=self._retrieve_limit, | |
| number_of_nearest_neighbours=self._retrieve_limit, |
zjrwtx
left a comment
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.
maybe we can add some @Retry to write etc
| numberOfNearestNeighbours=self._retrieve_limit, | ||
| ) | ||
|
|
||
| def write_records(self, records: List[MemoryRecord]) -> None: |
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.
may be we can add batch process
| """ | ||
| CREATE VECTOR INDEX message_embeddings IF NOT EXISTS | ||
| FOR (m:Message) ON (m.embedding) | ||
| OPTIONS {indexConfig: {`vector.dimensions`: 1536, |
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.
the dim should vary with different embedding models
Description
GraphDBBlock for agent memory. This is a part of the feature for #1712
Checklist
Go over all the following points, and put an
xin all the boxes that apply.Fixes #issue-numberin the PR description (required)pyproject.tomlanduv lockIf you are unsure about any of these, don't hesitate to ask. We are here to help!