org.llm4s.rag.loader.InMemoryDocumentRegistry
See theInMemoryDocumentRegistry companion object
class InMemoryDocumentRegistry extends DocumentRegistry
In-memory implementation of DocumentRegistry.
Suitable for development and testing. Data is lost on restart.
Attributes
- Companion
- object
- Graph
-
- Supertypes
Members list
Value members
Concrete 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
Inherited methods
Check if a document is registered.
Get the count of registered documents.
In this article