Module: LlmMemory

Defined in:
lib/llm_memory/store.rb,
lib/llm_memory.rb,
lib/llm_memory/broca.rb,
lib/llm_memory/loader.rb,
lib/llm_memory/version.rb,
lib/llm_memory/wernicke.rb,
lib/llm_memory/embedding.rb,
lib/llm_memory/hippocampus.rb,
lib/llm_memory/llms/openai.rb,
lib/llm_memory/configuration.rb,
lib/llm_memory/embeddings/openai.rb,
lib/llm_memory/stores/redis_store.rb,
lib/llm_memory/loaders/file_loader.rb

Overview

lib/lilyama_index/Embedding.rb

Defined Under Namespace

Modules: Embedding, Embeddings, Llms, Loader, Store Classes: Broca, Configuration, EmbeddingManager, Error, FileLoader, Hippocampus, LoaderManager, RedisStore, StoreManager, Wernicke

Constant Summary collapse

VERSION =
"0.1.14"

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.configurationObject

Returns the value of attribute configuration.



15
16
17
# File 'lib/llm_memory.rb', line 15

def configuration
  @configuration
end

.log_levelObject

Returns the value of attribute log_level.



15
16
17
# File 'lib/llm_memory.rb', line 15

def log_level
  @log_level
end

Class Method Details

.configure {|configuration| ... } ⇒ Object

Yields:



24
25
26
27
# File 'lib/llm_memory.rb', line 24

def self.configure
  self.configuration ||= Configuration.new
  yield(configuration) if block_given?
end

.loggerObject



17
18
19
20
21
# File 'lib/llm_memory.rb', line 17

def logger
  @logger ||= Logger.new($stdout).tap do |logger|
    logger.level = log_level || Logger::INFO
  end
end