Uses of Class
dev.langchain4j.data.segment.TextSegment
Packages that use TextSegment
Package
Description
-
Uses of TextSegment in dev.langchain4j.chain
Method parameters in dev.langchain4j.chain with type arguments of type TextSegmentModifier and TypeMethodDescriptionConversationalRetrievalChain.Builder.retriever
(Retriever<TextSegment> retriever) Deprecated, for removal: This API element is subject to removal in a future version.Constructor parameters in dev.langchain4j.chain with type arguments of type TextSegmentModifierConstructorDescriptionConversationalRetrievalChain
(ChatLanguageModel chatLanguageModel, ChatMemory chatMemory, PromptTemplate promptTemplate, Retriever<TextSegment> retriever) Deprecated, for removal: This API element is subject to removal in a future version.Please use another constructor with a newContentRetriever
instead. -
Uses of TextSegment in dev.langchain4j.classification
Methods in dev.langchain4j.classification with parameters of type TextSegmentModifier and TypeMethodDescriptionTextClassifier.classify
(TextSegment textSegment) Classifies the givenTextSegment
.default ClassificationResult
<L> TextClassifier.classifyWithScores
(TextSegment textSegment) Classifies the givenTextSegment
and returns labels with scores. -
Uses of TextSegment in dev.langchain4j.data.document
Methods in dev.langchain4j.data.document that return TextSegmentModifier and TypeMethodDescriptiondefault TextSegment
Document.toTextSegment()
Builds aTextSegment
from this document.Methods in dev.langchain4j.data.document that return types with arguments of type TextSegmentModifier and TypeMethodDescriptionSplits a single Document into a list of TextSegment objects.default List
<TextSegment> Splits a list of Documents into a list of TextSegment objects. -
Uses of TextSegment in dev.langchain4j.data.document.splitter
Methods in dev.langchain4j.data.document.splitter that return types with arguments of type TextSegmentModifier and TypeMethodDescription -
Uses of TextSegment in dev.langchain4j.data.segment
Methods in dev.langchain4j.data.segment that return TextSegmentModifier and TypeMethodDescriptionstatic TextSegment
Creates a new text segment.static TextSegment
Creates a new text segment.static TextSegment
TextSegment.textSegment
(String text) Creates a new text segment.static TextSegment
TextSegment.textSegment
(String text, Metadata metadata) Creates a new text segment.TextSegmentTransformer.transform
(TextSegment segment) Transforms a provided segment.Methods in dev.langchain4j.data.segment that return types with arguments of type TextSegmentModifier and TypeMethodDescriptiondefault List
<TextSegment> TextSegmentTransformer.transformAll
(List<TextSegment> segments) Transforms all the provided segments.Methods in dev.langchain4j.data.segment with parameters of type TextSegmentModifier and TypeMethodDescriptionTextSegmentTransformer.transform
(TextSegment segment) Transforms a provided segment.Method parameters in dev.langchain4j.data.segment with type arguments of type TextSegmentModifier and TypeMethodDescriptiondefault List
<TextSegment> TextSegmentTransformer.transformAll
(List<TextSegment> segments) Transforms all the provided segments. -
Uses of TextSegment in dev.langchain4j.model.azure
Method parameters in dev.langchain4j.model.azure with type arguments of type TextSegment -
Uses of TextSegment in dev.langchain4j.model.bedrock
Method parameters in dev.langchain4j.model.bedrock with type arguments of type TextSegmentModifier and TypeMethodDescriptionBedrockCohereEmbeddingModel.embedAll
(List<TextSegment> textSegments) BedrockTitanEmbeddingModel.getRequestParameters
(List<TextSegment> textSegments) -
Uses of TextSegment in dev.langchain4j.model.bedrock.internal
Method parameters in dev.langchain4j.model.bedrock.internal with type arguments of type TextSegmentModifier and TypeMethodDescriptionAbstractBedrockEmbeddingModel.embedAll
(List<TextSegment> textSegments) AbstractBedrockEmbeddingModel.getRequestParameters
(List<TextSegment> textSegments) Get request body -
Uses of TextSegment in dev.langchain4j.model.chat
Methods in dev.langchain4j.model.chat with parameters of type TextSegmentModifier and TypeMethodDescriptiondefault int
TokenCountEstimator.estimateTokenCount
(TextSegment textSegment) Estimates the count of tokens in the specified text segment. -
Uses of TextSegment in dev.langchain4j.model.cohere
Method parameters in dev.langchain4j.model.cohere with type arguments of type TextSegment -
Uses of TextSegment in dev.langchain4j.model.embedding
Methods in dev.langchain4j.model.embedding with parameters of type TextSegmentModifier and TypeMethodDescriptionDisabledEmbeddingModel.embed
(TextSegment textSegment) EmbeddingModel.embed
(TextSegment textSegment) Embed the text content of a TextSegment.default int
TokenCountEstimator.estimateTokenCount
(TextSegment textSegment) Estimates the count of tokens in the given text segment.Method parameters in dev.langchain4j.model.embedding with type arguments of type TextSegmentModifier and TypeMethodDescriptionDisabledEmbeddingModel.embedAll
(List<TextSegment> textSegments) EmbeddingModel.embedAll
(List<TextSegment> textSegments) Embeds the text content of a list of TextSegments.default int
TokenCountEstimator.estimateTokenCount
(List<TextSegment> textSegments) Estimates the count of tokens in the given text segments. -
Uses of TextSegment in dev.langchain4j.model.github
Method parameters in dev.langchain4j.model.github with type arguments of type TextSegment -
Uses of TextSegment in dev.langchain4j.model.googleai
Methods in dev.langchain4j.model.googleai with parameters of type TextSegmentMethod parameters in dev.langchain4j.model.googleai with type arguments of type TextSegment -
Uses of TextSegment in dev.langchain4j.model.huggingface
Method parameters in dev.langchain4j.model.huggingface with type arguments of type TextSegment -
Uses of TextSegment in dev.langchain4j.model.jina
Method parameters in dev.langchain4j.model.jina with type arguments of type TextSegment -
Uses of TextSegment in dev.langchain4j.model.jlama
Method parameters in dev.langchain4j.model.jlama with type arguments of type TextSegment -
Uses of TextSegment in dev.langchain4j.model.language
Methods in dev.langchain4j.model.language with parameters of type TextSegmentModifier and TypeMethodDescriptiondefault int
TokenCountEstimator.estimateTokenCount
(TextSegment textSegment) Estimates the count of tokens in the given text segment. -
Uses of TextSegment in dev.langchain4j.model.localai
Method parameters in dev.langchain4j.model.localai with type arguments of type TextSegment -
Uses of TextSegment in dev.langchain4j.model.mistralai
Method parameters in dev.langchain4j.model.mistralai with type arguments of type TextSegment -
Uses of TextSegment in dev.langchain4j.model.moderation
Methods in dev.langchain4j.model.moderation with parameters of type TextSegmentModifier and TypeMethodDescriptionDisabledModerationModel.moderate
(TextSegment textSegment) default Response
<Moderation> ModerationModel.moderate
(TextSegment textSegment) Moderates the given text segment. -
Uses of TextSegment in dev.langchain4j.model.nomic
Method parameters in dev.langchain4j.model.nomic with type arguments of type TextSegment -
Uses of TextSegment in dev.langchain4j.model.ollama
Method parameters in dev.langchain4j.model.ollama with type arguments of type TextSegment -
Uses of TextSegment in dev.langchain4j.model.openai
Method parameters in dev.langchain4j.model.openai with type arguments of type TextSegment -
Uses of TextSegment in dev.langchain4j.model.openaiofficial
Method parameters in dev.langchain4j.model.openaiofficial with type arguments of type TextSegment -
Uses of TextSegment in dev.langchain4j.model.ovhai
Method parameters in dev.langchain4j.model.ovhai with type arguments of type TextSegment -
Uses of TextSegment in dev.langchain4j.model.scoring
Methods in dev.langchain4j.model.scoring with parameters of type TextSegmentModifier and TypeMethodDescriptionScoringModel.score
(TextSegment segment, String query) Scores a givenTextSegment
against a given query.Method parameters in dev.langchain4j.model.scoring with type arguments of type TextSegmentModifier and TypeMethodDescriptionScoringModel.scoreAll
(List<TextSegment> segments, String query) Scores all providedTextSegment
s against a given query. -
Uses of TextSegment in dev.langchain4j.model.vertexai
Method parameters in dev.langchain4j.model.vertexai with type arguments of type TextSegmentModifier and TypeMethodDescriptionVertexAiEmbeddingModel.calculateTokensCounts
(List<TextSegment> segments) Calculates the number of tokens for each segment in the input list.VertexAiEmbeddingModel.embedAll
(List<TextSegment> segments) VertexAiScoringModel.scoreAll
(List<TextSegment> segments, String query) Scores all providedTextSegment
s against a given query. -
Uses of TextSegment in dev.langchain4j.model.voyageai
Method parameters in dev.langchain4j.model.voyageai with type arguments of type TextSegment -
Uses of TextSegment in dev.langchain4j.model.workersai
Methods in dev.langchain4j.model.workersai with parameters of type TextSegmentModifier and TypeMethodDescriptionWorkersAiEmbeddingModel.embed
(TextSegment textSegment) Embed the text content of a TextSegment.Method parameters in dev.langchain4j.model.workersai with type arguments of type TextSegment -
Uses of TextSegment in dev.langchain4j.rag.content
Methods in dev.langchain4j.rag.content that return TextSegmentModifier and TypeMethodDescriptionContent.textSegment()
DefaultContent.textSegment()
Returns the value of thetextSegment
record component.Methods in dev.langchain4j.rag.content with parameters of type TextSegmentModifier and TypeMethodDescriptionstatic Content
Content.from
(TextSegment textSegment) static Content
Content.from
(TextSegment textSegment, Map<ContentMetadata, Object> metadata) Constructors in dev.langchain4j.rag.content with parameters of type TextSegmentModifierConstructorDescriptionDefaultContent
(TextSegment textSegment) DefaultContent
(TextSegment textSegment, Map<ContentMetadata, Object> metadata) Creates an instance of aDefaultContent
record class. -
Uses of TextSegment in dev.langchain4j.rag.content.retriever
Method parameters in dev.langchain4j.rag.content.retriever with type arguments of type TextSegmentModifier and TypeMethodDescriptionEmbeddingStoreContentRetriever.EmbeddingStoreContentRetrieverBuilder.embeddingStore
(EmbeddingStore<TextSegment> embeddingStore) EmbeddingStoreContentRetriever.from
(EmbeddingStore<TextSegment> embeddingStore) Creates an instance of anEmbeddingStoreContentRetriever
from the specifiedEmbeddingStore
andEmbeddingModel
found through SPI (seeEmbeddingModelFactory
).Constructor parameters in dev.langchain4j.rag.content.retriever with type arguments of type TextSegmentModifierConstructorDescriptionEmbeddingStoreContentRetriever
(EmbeddingStore<TextSegment> embeddingStore, EmbeddingModel embeddingModel) EmbeddingStoreContentRetriever
(EmbeddingStore<TextSegment> embeddingStore, EmbeddingModel embeddingModel, int maxResults) EmbeddingStoreContentRetriever
(EmbeddingStore<TextSegment> embeddingStore, EmbeddingModel embeddingModel, Integer maxResults, Double minScore) -
Uses of TextSegment in dev.langchain4j.rag.content.retriever.azure.search
Methods in dev.langchain4j.rag.content.retriever.azure.search with parameters of type TextSegmentModifier and TypeMethodDescriptionvoid
AzureAiSearchContentRetriever.add
(TextSegment segment) AddTextSegment
to the full text search engine.Method parameters in dev.langchain4j.rag.content.retriever.azure.search with type arguments of type TextSegmentModifier and TypeMethodDescriptionvoid
AzureAiSearchContentRetriever.add
(List<TextSegment> segments) Add a list ofTextSegment
s to the full text search engine. -
Uses of TextSegment in dev.langchain4j.retriever
Methods in dev.langchain4j.retriever that return types with arguments of type TextSegmentModifier and TypeMethodDescriptionEmbeddingStoreRetriever.findRelevant
(String text) Deprecated, for removal: This API element is subject to removal in a future version.Method parameters in dev.langchain4j.retriever with type arguments of type TextSegmentModifier and TypeMethodDescriptionstatic EmbeddingStoreRetriever
EmbeddingStoreRetriever.from
(EmbeddingStore<TextSegment> embeddingStore, EmbeddingModel embeddingModel) Deprecated, for removal: This API element is subject to removal in a future version.static EmbeddingStoreRetriever
EmbeddingStoreRetriever.from
(EmbeddingStore<TextSegment> embeddingStore, EmbeddingModel embeddingModel, int maxResults) Deprecated, for removal: This API element is subject to removal in a future version.static EmbeddingStoreRetriever
EmbeddingStoreRetriever.from
(EmbeddingStore<TextSegment> embeddingStore, EmbeddingModel embeddingModel, int maxResults, double minScore) Deprecated, for removal: This API element is subject to removal in a future version.Constructor parameters in dev.langchain4j.retriever with type arguments of type TextSegmentModifierConstructorDescriptionEmbeddingStoreRetriever
(EmbeddingStore<TextSegment> embeddingStore, EmbeddingModel embeddingModel, int maxResults, Double minScore) Deprecated, for removal: This API element is subject to removal in a future version. -
Uses of TextSegment in dev.langchain4j.service
Method parameters in dev.langchain4j.service with type arguments of type TextSegmentModifier and TypeMethodDescriptionAiServices.retriever
(Retriever<TextSegment> retriever) Deprecated, for removal: This API element is subject to removal in a future version. -
Uses of TextSegment in dev.langchain4j.store.embedding
Method parameters in dev.langchain4j.store.embedding with type arguments of type TextSegmentModifier and TypeMethodDescriptionEmbeddingStoreIngestor.Builder.embeddingStore
(EmbeddingStore<TextSegment> embeddingStore) Sets the embedding store.static IngestionResult
EmbeddingStoreIngestor.ingest
(Document document, EmbeddingStore<TextSegment> embeddingStore) Ingests a specifiedDocument
into a specifiedEmbeddingStore
.static IngestionResult
EmbeddingStoreIngestor.ingest
(List<Document> documents, EmbeddingStore<TextSegment> embeddingStore) Ingests specifiedDocument
s into a specifiedEmbeddingStore
.Constructor parameters in dev.langchain4j.store.embedding with type arguments of type TextSegmentModifierConstructorDescriptionEmbeddingStoreIngestor
(DocumentTransformer documentTransformer, DocumentSplitter documentSplitter, TextSegmentTransformer textSegmentTransformer, EmbeddingModel embeddingModel, EmbeddingStore<TextSegment> embeddingStore) Creates an instance of anEmbeddingStoreIngestor
. -
Uses of TextSegment in dev.langchain4j.store.embedding.astradb
Methods in dev.langchain4j.store.embedding.astradb that return types with arguments of type TextSegmentModifier and TypeMethodDescriptionAstraDbEmbeddingStore.findRelevant
(Embedding referenceEmbedding, int maxResults, double minScore) Finds the most relevant (closest in space) embeddings to the provided reference embedding.AstraDbEmbeddingStore.findRelevant
(Embedding referenceEmbedding, io.stargate.sdk.data.domain.query.Filter metaDatafilter, int maxResults, double minScore) Semantic search with metadata filtering.Methods in dev.langchain4j.store.embedding.astradb with parameters of type TextSegmentModifier and TypeMethodDescriptionAstraDbEmbeddingStore.add
(Embedding embedding, TextSegment textSegment) Adds a given embedding and the corresponding content that has been embedded to the store. -
Uses of TextSegment in dev.langchain4j.store.embedding.azure.cosmos.mongo.vcore
Methods in dev.langchain4j.store.embedding.azure.cosmos.mongo.vcore that return types with arguments of type TextSegmentModifier and TypeMethodDescriptionAzureCosmosDbMongoVCoreEmbeddingStore.findRelevant
(Embedding referenceEmbedding, int maxResults, double minScore) Methods in dev.langchain4j.store.embedding.azure.cosmos.mongo.vcore with parameters of type TextSegmentModifier and TypeMethodDescriptionAzureCosmosDbMongoVCoreEmbeddingStore.add
(Embedding embedding, TextSegment textSegment) -
Uses of TextSegment in dev.langchain4j.store.embedding.azure.cosmos.nosql
Methods in dev.langchain4j.store.embedding.azure.cosmos.nosql that return types with arguments of type TextSegmentModifier and TypeMethodDescriptionAzureCosmosDbNoSqlEmbeddingStore.findRelevant
(Embedding referenceEmbedding, int maxResults, double minScore) Methods in dev.langchain4j.store.embedding.azure.cosmos.nosql with parameters of type TextSegmentModifier and TypeMethodDescriptionAzureCosmosDbNoSqlEmbeddingStore.add
(Embedding embedding, TextSegment textSegment) -
Uses of TextSegment in dev.langchain4j.store.embedding.azure.search
Methods in dev.langchain4j.store.embedding.azure.search that return types with arguments of type TextSegmentModifier and TypeMethodDescriptionprotected List
<EmbeddingMatch<TextSegment>> AbstractAzureAiSearchEmbeddingStore.getEmbeddingMatches
(com.azure.search.documents.util.SearchPagedIterable searchResults, Double minScore, AzureAiSearchQueryType azureAiSearchQueryType) AbstractAzureAiSearchEmbeddingStore.search
(EmbeddingSearchRequest request) Methods in dev.langchain4j.store.embedding.azure.search with parameters of type TextSegmentModifier and TypeMethodDescriptionAbstractAzureAiSearchEmbeddingStore.add
(Embedding embedding, TextSegment textSegment) Add an embedding and the related content to the store. -
Uses of TextSegment in dev.langchain4j.store.embedding.cassandra
Methods in dev.langchain4j.store.embedding.cassandra that return types with arguments of type TextSegmentModifier and TypeMethodDescriptionCassandraEmbeddingStore.findRelevant
(Embedding embedding, int maxResults, double minScore) Search for relevant.CassandraEmbeddingStore.findRelevant
(Embedding embedding, int maxResults, double minScore, Metadata metadata) Similarity Search ANN based on the embedding.Methods in dev.langchain4j.store.embedding.cassandra with parameters of type TextSegmentModifier and TypeMethodDescriptionCassandraEmbeddingStore.add
(@NonNull Embedding embedding, TextSegment textSegment) Add a new embedding to the store. -
Uses of TextSegment in dev.langchain4j.store.embedding.chroma
Methods in dev.langchain4j.store.embedding.chroma that return types with arguments of type TextSegmentModifier and TypeMethodDescriptionChromaEmbeddingStore.findRelevant
(Embedding referenceEmbedding, int maxResults, double minScore) ChromaEmbeddingStore.search
(EmbeddingSearchRequest request) Methods in dev.langchain4j.store.embedding.chroma with parameters of type TextSegmentModifier and TypeMethodDescriptionChromaEmbeddingStore.add
(Embedding embedding, TextSegment textSegment) -
Uses of TextSegment in dev.langchain4j.store.embedding.coherence
Methods in dev.langchain4j.store.embedding.coherence that return types with arguments of type TextSegmentMethods in dev.langchain4j.store.embedding.coherence with parameters of type TextSegmentModifier and TypeMethodDescriptionCoherenceEmbeddingStore.add
(Embedding embedding, TextSegment segment) -
Uses of TextSegment in dev.langchain4j.store.embedding.couchbase
Methods in dev.langchain4j.store.embedding.couchbase that return types with arguments of type TextSegmentMethods in dev.langchain4j.store.embedding.couchbase with parameters of type TextSegmentModifier and TypeMethodDescriptionCouchbaseEmbeddingStore.add
(Embedding embedding, TextSegment textSegment) -
Uses of TextSegment in dev.langchain4j.store.embedding.elasticsearch
Methods in dev.langchain4j.store.embedding.elasticsearch that return types with arguments of type TextSegmentModifier and TypeMethodDescriptionElasticsearchEmbeddingStore.search
(EmbeddingSearchRequest embeddingSearchRequest) Methods in dev.langchain4j.store.embedding.elasticsearch with parameters of type TextSegmentModifier and TypeMethodDescriptionElasticsearchEmbeddingStore.add
(Embedding embedding, TextSegment textSegment) -
Uses of TextSegment in dev.langchain4j.store.embedding.infinispan
Methods in dev.langchain4j.store.embedding.infinispan that return types with arguments of type TextSegmentModifier and TypeMethodDescriptionInfinispanEmbeddingStore.search
(EmbeddingSearchRequest request) Methods in dev.langchain4j.store.embedding.infinispan with parameters of type TextSegmentModifier and TypeMethodDescriptionInfinispanEmbeddingStore.add
(Embedding embedding, TextSegment textSegment) -
Uses of TextSegment in dev.langchain4j.store.embedding.inmemory
Methods in dev.langchain4j.store.embedding.inmemory that return types with arguments of type TextSegmentModifier and TypeMethodDescriptionstatic InMemoryEmbeddingStore
<TextSegment> static InMemoryEmbeddingStore
<TextSegment> static InMemoryEmbeddingStore
<TextSegment> -
Uses of TextSegment in dev.langchain4j.store.embedding.mariadb
Methods in dev.langchain4j.store.embedding.mariadb that return types with arguments of type TextSegmentModifier and TypeMethodDescriptionMariaDbEmbeddingStore.search
(EmbeddingSearchRequest request) Searches for the most similar (closest in the embedding space)Embedding
s.Methods in dev.langchain4j.store.embedding.mariadb with parameters of type TextSegmentModifier and TypeMethodDescriptionMariaDbEmbeddingStore.add
(Embedding embedding, TextSegment textSegment) Adds a given embedding and the corresponding content that has been embedded to the store. -
Uses of TextSegment in dev.langchain4j.store.embedding.milvus
Methods in dev.langchain4j.store.embedding.milvus that return types with arguments of type TextSegmentModifier and TypeMethodDescriptionMilvusEmbeddingStore.search
(EmbeddingSearchRequest embeddingSearchRequest) Methods in dev.langchain4j.store.embedding.milvus with parameters of type TextSegmentModifier and TypeMethodDescriptionMilvusEmbeddingStore.add
(Embedding embedding, TextSegment textSegment) -
Uses of TextSegment in dev.langchain4j.store.embedding.mongodb
Methods in dev.langchain4j.store.embedding.mongodb that return types with arguments of type TextSegmentMethods in dev.langchain4j.store.embedding.mongodb with parameters of type TextSegmentModifier and TypeMethodDescriptionMongoDbEmbeddingStore.add
(Embedding embedding, TextSegment textSegment) -
Uses of TextSegment in dev.langchain4j.store.embedding.neo4j
Methods in dev.langchain4j.store.embedding.neo4j that return types with arguments of type TextSegmentMethods in dev.langchain4j.store.embedding.neo4j with parameters of type TextSegmentModifier and TypeMethodDescriptionNeo4jEmbeddingStore.add
(Embedding embedding, TextSegment textSegment) -
Uses of TextSegment in dev.langchain4j.store.embedding.opensearch
Methods in dev.langchain4j.store.embedding.opensearch that return types with arguments of type TextSegmentModifier and TypeMethodDescriptionOpenSearchEmbeddingStore.search
(EmbeddingSearchRequest request) This implementation uses the exact k-NN with scoring script to calculate See https://opensearch.org/docs/latest/search-plugins/knn/knn-score-script/Methods in dev.langchain4j.store.embedding.opensearch with parameters of type TextSegmentModifier and TypeMethodDescriptionOpenSearchEmbeddingStore.add
(Embedding embedding, TextSegment textSegment) -
Uses of TextSegment in dev.langchain4j.store.embedding.oracle
Methods in dev.langchain4j.store.embedding.oracle that return types with arguments of type TextSegmentMethods in dev.langchain4j.store.embedding.oracle with parameters of type TextSegmentModifier and TypeMethodDescriptionOracleEmbeddingStore.add
(Embedding embedding, TextSegment textSegment) -
Uses of TextSegment in dev.langchain4j.store.embedding.pgvector
Methods in dev.langchain4j.store.embedding.pgvector that return types with arguments of type TextSegmentModifier and TypeMethodDescriptionPgVectorEmbeddingStore.search
(EmbeddingSearchRequest request) Searches for the most similar (closest in the embedding space)Embedding
s.Methods in dev.langchain4j.store.embedding.pgvector with parameters of type TextSegmentModifier and TypeMethodDescriptionPgVectorEmbeddingStore.add
(Embedding embedding, TextSegment textSegment) Adds a given embedding and the corresponding content that has been embedded to the store. -
Uses of TextSegment in dev.langchain4j.store.embedding.pinecone
Methods in dev.langchain4j.store.embedding.pinecone that return types with arguments of type TextSegmentMethods in dev.langchain4j.store.embedding.pinecone with parameters of type TextSegmentModifier and TypeMethodDescriptionPineconeEmbeddingStore.add
(Embedding embedding, TextSegment textSegment) -
Uses of TextSegment in dev.langchain4j.store.embedding.qdrant
Methods in dev.langchain4j.store.embedding.qdrant that return types with arguments of type TextSegmentModifier and TypeMethodDescriptionQdrantEmbeddingStore.findRelevant
(Embedding referenceEmbedding, int maxResults, double minScore) QdrantEmbeddingStore.search
(EmbeddingSearchRequest request) Methods in dev.langchain4j.store.embedding.qdrant with parameters of type TextSegmentModifier and TypeMethodDescriptionQdrantEmbeddingStore.add
(Embedding embedding, TextSegment textSegment) -
Uses of TextSegment in dev.langchain4j.store.embedding.tablestore
Methods in dev.langchain4j.store.embedding.tablestore that return types with arguments of type TextSegmentModifier and TypeMethodDescriptionTablestoreEmbeddingStore.search
(EmbeddingSearchRequest request) Methods in dev.langchain4j.store.embedding.tablestore with parameters of type TextSegmentModifier and TypeMethodDescriptionTablestoreEmbeddingStore.add
(Embedding embedding, TextSegment textSegment) protected void
TablestoreEmbeddingStore.innerAdd
(String id, Embedding embedding, TextSegment textSegment) -
Uses of TextSegment in dev.langchain4j.store.embedding.vespa
Methods in dev.langchain4j.store.embedding.vespa that return types with arguments of type TextSegmentModifier and TypeMethodDescriptionVespaEmbeddingStore.search
(EmbeddingSearchRequest request) Searches for the most similar (closest in the embedding space)Embedding
s.Methods in dev.langchain4j.store.embedding.vespa with parameters of type TextSegmentModifier and TypeMethodDescriptionVespaEmbeddingStore.add
(Embedding embedding, TextSegment textSegment) -
Uses of TextSegment in dev.langchain4j.store.embedding.weaviate
Methods in dev.langchain4j.store.embedding.weaviate that return types with arguments of type TextSegmentModifier and TypeMethodDescriptionWeaviateEmbeddingStore.search
(EmbeddingSearchRequest request) Searches for the most similar (closest in the embedding space)Embedding
s.Methods in dev.langchain4j.store.embedding.weaviate with parameters of type TextSegmentModifier and TypeMethodDescriptionWeaviateEmbeddingStore.add
(Embedding embedding, TextSegment textSegment) -
Uses of TextSegment in dev.langchain4j.web.search
Methods in dev.langchain4j.web.search that return TextSegmentModifier and TypeMethodDescriptionWebSearchOrganicResult.toTextSegment()
Converts this WebSearchOrganicResult to a TextSegment.Methods in dev.langchain4j.web.search that return types with arguments of type TextSegmentModifier and TypeMethodDescriptionWebSearchResults.toTextSegments()
Converts the organic search results to a list of text segments.
ConversationalRetrievalChain.Builder.contentRetriever(ContentRetriever)
instead.