Skip to content

feat: lazy import chromadb#4226

Closed
gabemilani wants to merge 1 commit into
mainfrom
feat/lazy-import-chromadb
Closed

feat: lazy import chromadb#4226
gabemilani wants to merge 1 commit into
mainfrom
feat/lazy-import-chromadb

Conversation

@gabemilani

Copy link
Copy Markdown
Member

ChromaDB was imported at module level, causing slow imports even when not used. This was causing unnecessary delays.

The changes from this PR are moving the imports to within where it's needed and using TYPE_CHECKING where it's just for typing hints.

@gabemilani gabemilani self-assigned this Jan 12, 2026
@gabemilani gabemilani force-pushed the feat/lazy-import-chromadb branch from 4b496c5 to a0204f9 Compare January 12, 2026 21:33

@greysonlalonde greysonlalonde left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm all for the type checking changes, I think we should look at moving imports from module level a little more though

@gabemilani gabemilani force-pushed the feat/lazy-import-chromadb branch from a0204f9 to d79162c Compare January 12, 2026 21:38
@gabemilani gabemilani force-pushed the feat/lazy-import-chromadb branch from d79162c to 4637754 Compare January 12, 2026 21:49
@gabemilani

Copy link
Copy Markdown
Member Author

Holding on this for now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants