Fulltext
In-memory implementation of fulltext search and CRUD capability.
This module provides an in-memory implementation of the FulltextCapability protocol using dictionary-based storage optimized for development and testing scenarios.
InMemoryFulltextCapability(store=None, encryption=None, default_batch_size=None)
Bases: BaseFulltextCapability
In-memory implementation of FulltextCapability protocol.
This class provides document CRUD operations and flexible querying using pure Python data structures optimized for development and testing.
Attributes:
| Name | Type | Description |
|---|---|---|
store |
dict[str, Chunk]
|
Dictionary storing Chunk objects with their IDs as keys. |
Initialize the in-memory fulltext capability.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
store
|
dict[str, Any] | None
|
Dictionary storing Chunk objects with their IDs as keys. Defaults to None. |
None
|
encryption
|
EncryptionCapability | None
|
Encryption capability. Defaults to None. |
None
|
default_batch_size
|
int | None
|
Default batch size. Defaults to None. |
None
|