GeezerVison is showing github.com — feat: Add user-provided entities support to retain endpoint by phamgialinhlx · Pull Request #91 · vectorize-io/hindsight
Conversation
Summary
- Add support for user-provided entities in the retain endpoint that get merged with auto-extracted entities
- Entities can be passed with each memory item as
[{"text": "...", "type": "..."}]
- User entities are deduplicated (case-insensitive) against LLM-extracted entities before merging
Changes
- API: Added
EntityInput model and entities field to MemoryItem
- Engine: Updated entity processing to merge user entities with extracted ones
- Clients: Updated Python, TypeScript, and control plane clients with entity support
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
feat: entities input for retain endpoint
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 for your contribution!
Could you elaborate on the use case of this feature?
While I understand how it works, its important that is clear why and when to use it
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Thanks for your contribution!
Could you elaborate on the use case of this feature? While I understand how it works, its important that is clear why and when to use it
In some cases I already know which entities are in the chunks and want to make sure they get included. For example, critical entities like key product names that I've already extracted using regex - I want to pass those directly rather than hoping the LLM picks them up
|
nicoloboschi reacted with thumbs up emoji
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Milestone
No milestone
Development
Successfully merging this pull request may close these issues.
Uh oh!
There was an error while loading. Please reload this page.
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.