org.llm4s.rag.RAG
See theRAG companion class
object RAG
Attributes
Members list
Type members
Classlikes
final implicit class RAGConfigOps(config: RAGConfig) extends AnyVal
Extension method to build from config.
Extension method to build from config.
Attributes
- Supertypes
-
class AnyValtrait Matchableclass Any
Value members
Concrete methods
def build(config: RAGConfig, resolveEmbeddingProvider: String => Result[EmbeddingProviderConfig], resolveRerankerConfig: () => Result[Option[RerankProviderConfig]])(using ModelRegistryService, ProviderRegistry): Result[RAG]
Build a RAG pipeline from configuration.
Build a RAG pipeline from configuration.
config.embeddingProvider is resolved through the given org.llm4s.llmconnect.spi.ProviderRegistry - by default every provider on the classpath - so an embedding provider that ships in its own module is usable here with nothing in llm4s-rag edited, and one that is absent fails with the registry's "not registered" error.
Value parameters
- resolveEmbeddingProvider
-
supplies the provider config for the resolved, canonical embedding provider id - typically from
Llm4sConfig.embeddings().
Attributes
Implicits
Implicits
Extension method to build from config.
Extension method to build from config.
Attributes
In this article