Uses of Class
com.hw.langchain.schema.Document
Packages that use Document
Package
Description
-
Uses of Document in com.hw.langchain.chains.combine.documents.base
Methods in com.hw.langchain.chains.combine.documents.base with parameters of type DocumentModifier and TypeMethodDescriptionstatic String
BaseUtils.formatDocument
(Document doc, BasePromptTemplate prompt) Format a document into a string based on a prompt template.Method parameters in com.hw.langchain.chains.combine.documents.base with type arguments of type Document -
Uses of Document in com.hw.langchain.chains.combine.documents.stuff
Method parameters in com.hw.langchain.chains.combine.documents.stuff with type arguments of type DocumentModifier and TypeMethodDescriptionStuff all documents into one prompt and pass to LLM. -
Uses of Document in com.hw.langchain.chains.retrieval.qa.base
Methods in com.hw.langchain.chains.retrieval.qa.base that return types with arguments of type Document -
Uses of Document in com.hw.langchain.document.loaders
Methods in com.hw.langchain.document.loaders that return types with arguments of type Document -
Uses of Document in com.hw.langchain.document.loaders.base
Methods in com.hw.langchain.document.loaders.base that return types with arguments of type Document -
Uses of Document in com.hw.langchain.document.loaders.directory
Methods in com.hw.langchain.document.loaders.directory that return types with arguments of type Document -
Uses of Document in com.hw.langchain.document.loaders.notion
Methods in com.hw.langchain.document.loaders.notion that return types with arguments of type Document -
Uses of Document in com.hw.langchain.document.loaders.text
Methods in com.hw.langchain.document.loaders.text that return types with arguments of type Document -
Uses of Document in com.hw.langchain.retrievers.self.query.base
Methods in com.hw.langchain.retrievers.self.query.base that return types with arguments of type Document -
Uses of Document in com.hw.langchain.schema
Methods in com.hw.langchain.schema that return types with arguments of type DocumentModifier and TypeMethodDescriptionBaseRetriever.getRelevantDocuments
(String query) Get documents relevant for a query.Transform a list of documents.Method parameters in com.hw.langchain.schema with type arguments of type Document -
Uses of Document in com.hw.langchain.text.splitter
Methods in com.hw.langchain.text.splitter that return types with arguments of type DocumentModifier and TypeMethodDescriptionMarkdownHeaderTextSplitter.aggregateLinesToChunks
(List<LineType> lines) Combine lines with common metadata into chunks.Create documents from a list of texts.TextSplitter.splitDocuments
(List<Document> documents) Split documents.Split markdown file.Transform sequence of documents by splitting them.Method parameters in com.hw.langchain.text.splitter with type arguments of type Document -
Uses of Document in com.hw.langchain.vectorstores.base
Methods in com.hw.langchain.vectorstores.base that return types with arguments of type DocumentModifier and TypeMethodDescriptionVectorStoreRetriever.getRelevantDocuments
(String query) VectorStore.innerSimilaritySearchWithRelevanceScores
(String query, int k) Return docs and relevance scores, normalized on a scale from 0 to 1.VectorStore.maxMarginalRelevanceSearch
(String query) VectorStore.maxMarginalRelevanceSearch
(String query, int k, int fetchK, float lambdaMult) Return docs selected using the maximal marginal relevance.VectorStore.maxMarginalRelevanceSearchByVector
(List<Float> embedding) VectorStore.maxMarginalRelevanceSearchByVector
(List<Float> embedding, int k, int fetchK, float lambdaMult) Return docs selected using the maximal marginal relevance.VectorStore.similaritySearch
(String query) Returns the documents most similar to the given query.VectorStore.similaritySearch
(String query, int k, Map<String, Object> filter) Returns the documents most similar to the given query.VectorStore.similaritySearch
(String query, Map<String, Object> filter) Returns the documents most similar to the given query.VectorStore.similaritySearchWithRelevanceScores
(String query) Return docs and relevance scores in the range [0, 1].VectorStore.similaritySearchWithRelevanceScores
(String query, int k) Return docs and relevance scores in the range [0, 1].Return docs most similar to embedding vector.Method parameters in com.hw.langchain.vectorstores.base with type arguments of type DocumentModifier and TypeMethodDescriptionRun more documents through the embeddings and add to the vectorStore.Add documents to vectorStore.int
VectorStore.fromDocuments
(List<Document> documents, Embeddings embedding) Return VectorStore initialized from documents and embeddings. -
Uses of Document in com.hw.langchain.vectorstores.milvus
Methods in com.hw.langchain.vectorstores.milvus that return types with arguments of type DocumentModifier and TypeMethodDescriptionMilvus.innerSimilaritySearchWithRelevanceScores
(String query, int k) Milvus.maxMarginalRelevanceSearch
(String query, int k, int fetchK, float lambdaMult) Milvus.maxMarginalRelevanceSearchByVector
(List<Float> embedding, int k, int fetchK, float lambdaMult) Milvus.similaritySearch
(String query, int k, Map<String, Object> filter) -
Uses of Document in com.hw.langchain.vectorstores.pinecone
Methods in com.hw.langchain.vectorstores.pinecone that return types with arguments of type DocumentModifier and TypeMethodDescriptionPinecone.innerSimilaritySearchWithRelevanceScores
(String query, int k) Pinecone.maxMarginalRelevanceSearch
(String query, int k, int fetchK, float lambdaMult) Pinecone.maxMarginalRelevanceSearchByVector
(List<Float> embedding, int k, int fetchK, float lambdaMult) Pinecone.similaritySearch
(String query, int k, Map<String, Object> filter) Return pinecone documents most similar to query.