JRag

org.llm4s.javaapi.rag.JRag
See theJRag companion class
object JRag

Attributes

Companion
class
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
JRag.type

Members list

Value members

Concrete methods

def builder(): JRagBuilder

A builder for a pipeline: give it an embedding client, and a chat client to ask, then build() it.

A builder for a pipeline: give it an embedding client, and a chat client to ask, then build() it.

Attributes

def inMemory(): JRagStore

A store in memory, the default: fast, and lost when the pipeline is closed.

A store in memory, the default: fast, and lost when the pipeline is closed.

Attributes

def sqlite(file: Path): JRagStore

A store in SQLite files that outlive the pipeline: the vectors in file, and the keyword index beside it, in the same name with .db replaced by -fts.db (docs.db and docs-fts.db). A file that does not exist is created. A null file makes build() a failed result of kind VALIDATION.

A store in SQLite files that outlive the pipeline: the vectors in file, and the keyword index beside it, in the same name with .db replaced by -fts.db (docs.db and docs-fts.db). A file that does not exist is created. A null file makes build() a failed result of kind VALIDATION.

Attributes