chroma
                                
                                 chroma copied to clipboard
                                
                                    chroma copied to clipboard
                            
                            
                            
                        [BUG]: WAL replay warnings suppression
Refs: #1733
Description of changes
Summarize the changes made by this PR.
- Improvements & Bug fixes
- Added a EmbeddingRecordflag (wal_replay) to suppress warnings in sqlite and local hnsw indices
 
- Added a 
Test plan
How are these changes tested?
- [ ] Tests pass locally with pytestfor python,yarn testfor js
Documentation Changes
N/A
Colab to reproduce the issue in 0.4.23 (and prior) - https://colab.research.google.com/drive/1CtN0qGoMZoVfwQBnJE1MloLvvdv5KouE?usp=sharing
Reviewer Checklist
Please leverage this checklist to ensure your code review is thorough before approving
Testing, Bugs, Errors, Logs, Documentation
- [ ] Can you think of any use case in which the code does not behave as intended? Have they been tested?
- [ ] Can you think of any inputs or external events that could break the code? Is user input validated and safe? Have they been tested?
- [ ] If appropriate, are there adequate property based tests?
- [ ] If appropriate, are there adequate unit tests?
- [ ] Should any logging, debugging, tracing information be added or removed?
- [ ] Are error messages user-friendly?
- [ ] Have all documentation changes needed been made?
- [ ] Have all non-obvious changes been commented?
System Compatibility
- [ ] Are there any potential impacts on other parts of the system or backward compatibility?
- [ ] Does this change intersect with any items on our roadmap, and if so, is there a plan for fitting them together?
Quality
- [ ] Is this code of a unexpectedly high quality (Readability, Modularity, Intuitiveness)
@atroyn, I've added a colab that reproduces the problem.
The gist is that we emit all entries from the WAL up to the index' MAX seqId, if there are duplicate entries (e.g. an item was added/removed multiple times) the respective index reports the duplicates as warnings.
Similar issue was reported by MemGPT - https://discord.com/channels/1073293645303795742/1205288940488359998
This is potentially made redundant by #2062
Close in favor of #2062