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

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

#addObject

Raises:

  • (NotImplementedError)


26
27
28
# File 'lib/llm_memory/store.rb', line 26

def add
  raise NotImplementedError, "Each store must implement the 'add' method."
end

#create_indexObject

Raises:

  • (NotImplementedError)


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

#deleteObject

Raises:

  • (NotImplementedError)


34
35
36
# File 'lib/llm_memory/store.rb', line 34

def delete
  raise NotImplementedError, "Each store must implement the 'delete' method."
end

#drop_indexObject

Raises:

  • (NotImplementedError)


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

Returns:

  • (Boolean)

Raises:

  • (NotImplementedError)


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

#listObject

Raises:

  • (NotImplementedError)


30
31
32
# File 'lib/llm_memory/store.rb', line 30

def list
  raise NotImplementedError, "Each store must implement the 'list' method."
end

#searchObject

Raises:

  • (NotImplementedError)


38
39
40
# File 'lib/llm_memory/store.rb', line 38

def search
  raise NotImplementedError, "Each store must implement the 'search' method."
end