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: use init_splitting_data with cache annotation #75

Merged
merged 1 commit into from
Oct 15, 2024

Conversation

stefanorosanelli
Copy link
Contributor

@stefanorosanelli stefanorosanelli commented Oct 11, 2024

This PR introduces a minor refactor in index module: init_index has been deprecated and replaced by init_splitting_data

The new method will not be called at API startup but on the first indexing operation inside split_document() just once using @lru_cache annotation

@stefanorosanelli stefanorosanelli changed the title refactor: use init_splitting_data with cache annotation Refactor: use init_splitting_data with cache annotation Oct 15, 2024
@stefanorosanelli stefanorosanelli marked this pull request as ready for review October 15, 2024 10:55
@nikazzio nikazzio merged commit 3ff8c84 into brevia-ai:main Oct 15, 2024
10 checks passed
@nikazzio nikazzio deleted the refactor/init-splitting branch October 15, 2024 15:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants