Commit f7cf836
Fix Tests (#1904)
* Revert "chore: exclude semantic search crate"
This reverts commit 6fe1e3e.
* fix(semantic_search): Fix VectorIndex is_empty implementation
The VectorIndex.is_empty() method was incorrectly checking if ef_construction
was equal to 100 to determine if the index was empty. This approach was
unreliable and caused test failures. This change adds a proper counter to
track the number of elements in the index and updates is_empty() to check
this counter instead.
🤖 Assisted by [Amazon Q Developer](https://aws.amazon.com/q/developer)
---------
Co-authored-by: Kenneth Sanchez V <[email protected]>1 parent 0f42bc6 commit f7cf836
File tree
3 files changed
+1068
-25
lines changed- crates/semantic_search_client/src/index
3 files changed
+1068
-25
lines changed
0 commit comments