DocumentRegistry
org.llm4s.rag.loader.DocumentRegistry
trait DocumentRegistry
Registry for tracking indexed documents.
Used by sync operations to determine which documents have been indexed, their versions, and to detect changes (adds, updates, deletes).
Attributes
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
class InMemoryDocumentRegistry
Members list
Value members
Abstract methods
Get all registered document IDs.
Get all registered document IDs.
Attributes
- Returns
-
Set of all document IDs currently registered
Check if document exists and get its version.
Check if document exists and get its version.
Value parameters
- docId
-
Document identifier
Attributes
- Returns
-
Version if document is registered, None otherwise
Register a document as indexed.
Register a document as indexed.
Value parameters
- docId
-
Document identifier
- version
-
Document version at time of indexing
Attributes
Unregister a document (deleted from source).
Unregister a document (deleted from source).
Value parameters
- docId
-
Document identifier to remove
Attributes
In this article