morpheus_llm.service.vdb.milvus_vector_db_service#
Functions
|
A decorator to synchronize access to a collection with a lock. |
Classes
|
|
|
Represents a service for managing resources in a Milvus Vector Database. |
|
Service class for Milvus Vector Database implementation. |
- with_collection_lock(func)[source]#
A decorator to synchronize access to a collection with a lock. This decorator ensures that operations on a specific collection within the Milvus Vector Database are synchronized by acquiring and releasing a collection-specific lock.
- Parameters:
- funcCallable
The function to be wrapped with the lock.
- Returns:
- Callable
The wrapped function with the lock acquisition logic.