Skip to content
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

Refactor cache handling by moving it to a new vecdb_cache module an… #211

Merged
merged 6 commits into from
Jun 21, 2024

Conversation

JegernOUTT
Copy link
Member

…d updating VecDb and related components accordingly

@JegernOUTT JegernOUTT self-assigned this Jun 17, 2024
@JegernOUTT JegernOUTT added the enhancement New feature or request label Jun 17, 2024
@JegernOUTT JegernOUTT marked this pull request as draft June 17, 2024 05:53
@JegernOUTT JegernOUTT marked this pull request as ready for review June 19, 2024 13:48
…d updating VecDb and related components accordingly
- Remove `Duration` and `SystemTime` imports from handler.rs and structs.rs
- Remove `error` import from handler.rs
- Remove constants like TWO_WEEKS, ONE_MONTH, MIN_LIKES
- Remove fields `time_added`, `time_last_used`, `model_name`, and `used_counter` from Record struct
- Remove functions `checkout`, `try_add_from_cache`, `add_or_update` with cache logic, `contains`, `cleanup_old_records` from VecDBHandler
- Remove cache-related components from VecDb struct in vecdb.rs
- Remove old data handling from vecdb_cache.rs
- Adjust vectorizer_service to use updated cache logic
@olegklimov olegklimov merged commit 59083ee into dev Jun 21, 2024
8 checks passed
@olegklimov olegklimov deleted the vecdb_cachedb_reworking branch June 21, 2024 17:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants