SQLiteKeywordIndex

org.llm4s.vectorstore.SQLiteKeywordIndex
See theSQLiteKeywordIndex companion class

Attributes

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

Members list

Type members

Classlikes

final case class Config(path: Option[String], tableName: String)

Configuration for SQLite keyword index.

Configuration for SQLite keyword index.

Value parameters

path

Path to database file (None for in-memory)

tableName

Table name for documents

Attributes

Companion
object
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
object Config

Attributes

Companion
class
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
Config.type

Value members

Concrete methods

def apply(path: String, tableName: String): Result[SQLiteKeywordIndex]

Create a file-based keyword index.

Create a file-based keyword index.

Value parameters

path

Path to SQLite database file

tableName

Table name for documents (default: "documents")

Attributes

Returns

New keyword index

Create a keyword index from configuration.

Create a keyword index from configuration.

Value parameters

config

Index configuration

Attributes

Returns

New keyword index

def inMemory(tableName: String): Result[SQLiteKeywordIndex]

Create an in-memory keyword index.

Create an in-memory keyword index.

Value parameters

tableName

Table name for documents (default: "documents")

Attributes

Returns

New keyword index