PgSearchIndexConfigLoader

org.llm4s.config.PgSearchIndexConfigLoader

Loader that builds a org.llm4s.rag.permissions.SearchIndex.PgConfig from a PureConfig pureconfig.ConfigSource.

Reads the llm4s.rag.permissions.pg config tree to obtain PostgreSQL connection details (host, port, database, credentials) and table names used by the RAG permission-aware search index.

Typically accessed via Llm4sConfig.pgSearchIndex rather than called directly.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

def load(source: ConfigSource): Result[PgConfig]

Loads PostgreSQL search index configuration from source.

Loads PostgreSQL search index configuration from source.

Value parameters

source

PureConfig source to read from; use ConfigSource.default in production to read environment variables and application.conf.

Attributes

Returns

the PgConfig, or a org.llm4s.error.ProcessingError when required connection variables are missing or malformed.