Class: LlmMemoryPgvector::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/llm_memory_pgvector.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



14
15
16
# File 'lib/llm_memory_pgvector.rb', line 14

def initialize
  @pg_url = nil
end

Instance Attribute Details

#pg_urlObject

Raises:



18
19
20
21
22
23
# File 'lib/llm_memory_pgvector.rb', line 18

def pg_url
  return @pg_url if @pg_url

  error_text = "Missing Connection URIs See https://www.postgresql.org/docs/current/libpq-connect.html#LIBPQ-CONNSTRING"
  raise ConfigurationError, error_text
end