Uses of Class
com.tnsai.knowledge.Document
Packages that use Document
Package
Description
Knowledge base abstraction for Retrieval-Augmented Generation (RAG).
Canonical RAG configuration and retrieval contracts.
-
Uses of Document in com.tnsai.knowledge
Methods in com.tnsai.knowledge that return DocumentModifier and TypeMethodDescriptionDocument.Builder.build()Builds the document.SearchResult.getDocument()Gets the matched document.static DocumentCreates a simple document with just content.static DocumentCreates a document with content and a single metadata entry.Document.withEmbedding(float[] embedding) Creates a copy of this document with a new embedding.Methods in com.tnsai.knowledge that return types with arguments of type DocumentModifier and TypeMethodDescriptionInMemoryKnowledgeBase.getDocument(String id) KnowledgeBase.getDocument(String id) Retrieves a document by its ID.Methods in com.tnsai.knowledge with parameters of type DocumentModifier and TypeMethodDescriptionvoidInMemoryKnowledgeBase.addDocument(Document document) voidKnowledgeBase.addDocument(Document document) Adds a document to the knowledge base.Method parameters in com.tnsai.knowledge with type arguments of type DocumentModifier and TypeMethodDescriptionvoidInMemoryKnowledgeBase.addDocuments(List<Document> documentsToAdd) default voidKnowledgeBase.addDocuments(List<Document> documents) Adds multiple documents to the knowledge base.voidInMemoryKnowledgeBase.replaceDocuments(Collection<String> removeIds, List<Document> add) default voidKnowledgeBase.replaceDocuments(Collection<String> removeIds, List<Document> add) Removes then adds documents as one generation.Constructors in com.tnsai.knowledge with parameters of type DocumentModifierConstructorDescriptionSearchResult(Document document, double score) Creates a new search result. -
Uses of Document in com.tnsai.rag
Methods in com.tnsai.rag with parameters of type DocumentModifier and TypeMethodDescriptionstatic StringChunkContext.modelVisibleContent(Document document) Returns the model-visible body of a stored document.