Skip to content

fix(chroma): serialize local store and query engine initialization#171

Merged
mpekatsoula merged 2 commits intomainfrom
serialize_local_store
Mar 17, 2026
Merged

fix(chroma): serialize local store and query engine initialization#171
mpekatsoula merged 2 commits intomainfrom
serialize_local_store

Conversation

@mpekatsoula
Copy link
Copy Markdown
Contributor

  • Add thread-safe lazy initialization for Metis query engines and the Chroma persistent store to prevent duplicate concurrent setup.
  • Pin the Chroma backend to the embedded local implementation so this store cannot be redirected away from local mode by env-backed settings.
  • Update Chroma client cleanup to use close() and add regression tests for concurrent initialization and backend pinning.

  - Add thread-safe lazy initialization for Metis query engines and the Chroma persistent store to prevent duplicate concurrent setup.
  - Pin the Chroma backend to the embedded local implementation so this store cannot be redirected away from local mode by env-backed settings.
  - Update Chroma client cleanup to use close() and add regression tests for concurrent initialization and backend pinning.
@mpekatsoula
Copy link
Copy Markdown
Contributor Author

Fixes: #134

@mpekatsoula mpekatsoula requested a review from mk-arm March 17, 2026 10:56
Copy link
Copy Markdown
Contributor

@aaronjb aaronjb left a comment

Choose a reason for hiding this comment

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

Don't see any problems here

@mpekatsoula mpekatsoula merged commit a74d5cf into main Mar 17, 2026
5 checks passed
@mpekatsoula mpekatsoula deleted the serialize_local_store branch March 17, 2026 11:23
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