<!-- .github/pull_request_template.md --> ## Description <!-- Provide a clear description of the changes in this PR --> ## DCO Affirmation I affirm that all code in every commit of this pull request conforms to the terms of the Topoteretes Developer Certificate of Origin. --------- Co-authored-by: vasilije <vas.markovic@gmail.com>
18 lines
517 B
Python
18 lines
517 B
Python
from functools import lru_cache
|
|
from .LoaderEngine import LoaderEngine
|
|
from .create_loader_engine import create_loader_engine
|
|
|
|
|
|
@lru_cache
|
|
def get_loader_engine() -> LoaderEngine:
|
|
"""
|
|
Factory function to get loader engine.
|
|
|
|
Follows cognee's pattern with @lru_cache for efficient reuse
|
|
of engine instances. Configuration is loaded from environment
|
|
variables and settings.
|
|
|
|
Returns:
|
|
Cached LoaderEngine instance configured with current settings
|
|
"""
|
|
return create_loader_engine()
|