Module: LlmMemory::Store
- Included in:
- RedisStore
- Defined in:
- lib/llm_memory/store.rb
Defined Under Namespace
Modules: ClassMethods
Class Method Summary collapse
Instance Method Summary collapse
- #add ⇒ Object
- #create_index ⇒ Object
- #delete ⇒ Object
- #drop_index ⇒ Object
- #index_exists? ⇒ Boolean
- #list ⇒ Object
- #search ⇒ Object
Class Method Details
.included(base) ⇒ Object
4 5 6 |
# File 'lib/llm_memory/store.rb', line 4 def self.included(base) base.extend(ClassMethods) end |
Instance Method Details
#add ⇒ Object
26 27 28 |
# File 'lib/llm_memory/store.rb', line 26 def add raise NotImplementedError, "Each store must implement the 'add' method." end |
#create_index ⇒ Object
14 15 16 |
# File 'lib/llm_memory/store.rb', line 14 def create_index raise NotImplementedError, "Each store must implement the 'create_index' method." end |
#delete ⇒ Object
34 35 36 |
# File 'lib/llm_memory/store.rb', line 34 def delete raise NotImplementedError, "Each store must implement the 'delete' method." end |
#drop_index ⇒ Object
22 23 24 |
# File 'lib/llm_memory/store.rb', line 22 def drop_index raise NotImplementedError, "Each store must implement the 'drop_index' method." end |
#index_exists? ⇒ Boolean
18 19 20 |
# File 'lib/llm_memory/store.rb', line 18 def index_exists? raise NotImplementedError, "Each store must implement the 'index_exists?' method." end |
#list ⇒ Object
30 31 32 |
# File 'lib/llm_memory/store.rb', line 30 def list raise NotImplementedError, "Each store must implement the 'list' method." end |
#search ⇒ Object
38 39 40 |
# File 'lib/llm_memory/store.rb', line 38 def search raise NotImplementedError, "Each store must implement the 'search' method." end |