FileKnowledgeStore

marola.knowledge.FileKnowledgeStore
See theFileKnowledgeStore companion object
final class FileKnowledgeStore(corpusDir: String, indexPath: String, embedder: Embedder) extends KnowledgeStore

Local-first RAG index: embeds every corpus chunk once, stores the vectors as JSON under ./data/, and re-embeds only when the corpus or the embedding model changes (a fingerprint of file names, sizes, mtimes and the model name).

Attributes

Companion
object
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

def rebuild: Int < Sync

Forces a re-embed; returns the number of chunks indexed.

Forces a re-embed; returns the number of chunks indexed.

Attributes

def search(query: String, k: Int = ...): List[Passage] < Sync