Uses of Class
dev.langchain4j.model.scoring.response.ScoringResponse
Packages that use ScoringResponse
Package
Description
Model mocks for tests: they need no network, answer the way a test tells them to, and record the requests they
receive.
-
Uses of ScoringResponse in dev.langchain4j.model.cohere
Methods in dev.langchain4j.model.cohere that return ScoringResponseMethods in dev.langchain4j.model.cohere that return types with arguments of type ScoringResponseModifier and TypeMethodDescriptionCohereScoringModel.doScoreAsync(ScoringRequest scoringRequest) Genuinely non-blocking counterpart ofCohereScoringModel.doScore(ScoringRequest), used by the asynchronous and reactive RAG flow. -
Uses of ScoringResponse in dev.langchain4j.model.jina
Methods in dev.langchain4j.model.jina that return ScoringResponse -
Uses of ScoringResponse in dev.langchain4j.model.scoring
Methods in dev.langchain4j.model.scoring that return ScoringResponseModifier and TypeMethodDescriptionDecisionScoringModel.doScore(ScoringRequest request) default ScoringResponseScoringModel.doScore(ScoringRequest request) The provider hook behindScoringModel.score(ScoringRequest).default ScoringResponseScoringModel.score(ScoringRequest request) Methods in dev.langchain4j.model.scoring that return types with arguments of type ScoringResponseModifier and TypeMethodDescriptionDecisionScoringModel.doScoreAsync(ScoringRequest request) default CompletableFuture<ScoringResponse> ScoringModel.doScoreAsync(ScoringRequest request) The provider hook behindScoringModel.scoreAsync(ScoringRequest).default CompletableFuture<ScoringResponse> ScoringModel.scoreAsync(ScoringRequest request) Scores thedocumentsof the given request against itsquerywithout blocking the calling thread — the asynchronous/reactive counterpart ofScoringModel.score(ScoringRequest), used by the non-blocking RAG flow (seeReRankingContentAggregator). -
Uses of ScoringResponse in dev.langchain4j.model.scoring.listener
Methods in dev.langchain4j.model.scoring.listener that return ScoringResponseMethods in dev.langchain4j.model.scoring.listener with parameters of type ScoringResponseModifier and TypeMethodDescriptionScoringModelResponseContext.Builder.scoringResponse(ScoringResponse scoringResponse) -
Uses of ScoringResponse in dev.langchain4j.model.scoring.response
Methods in dev.langchain4j.model.scoring.response that return ScoringResponse -
Uses of ScoringResponse in dev.langchain4j.model.voyageai
Methods in dev.langchain4j.model.voyageai that return ScoringResponse -
Uses of ScoringResponse in dev.langchain4j.model.watsonx
Methods in dev.langchain4j.model.watsonx that return ScoringResponse -
Uses of ScoringResponse in dev.langchain4j.test.mock
Methods in dev.langchain4j.test.mock that return ScoringResponseMethods in dev.langchain4j.test.mock that return types with arguments of type ScoringResponseModifier and TypeMethodDescriptionMockScoringModel.doScoreAsync(ScoringRequest request) Answers likeMockScoringModel.doScore(ScoringRequest), with the next step of the script, and completes the future on another thread, where a step that computes its scores also computes them.Methods in dev.langchain4j.test.mock with parameters of type ScoringResponseModifier and TypeMethodDescriptionstatic MockScoringModelMockScoringModel.thatResponds(ScoringResponse response) A model that answers the first request with exactly the given response, including its metadata, for example its token usage or model name, to test code that reads them, such as a cost check:MockScoringModel.thenResponds(ScoringResponse response) Adds a step: the next request is answered with exactly the given response, including its metadata, seeMockScoringModel.thatResponds(ScoringResponse). -
Uses of ScoringResponse in dev.langchain4j.test.service
Methods in dev.langchain4j.test.service that return ScoringResponseModifier and TypeMethodDescriptionScoringModelCall.response()Returns the response of the scoring model, ornullif the call failed or had not ended when the invocation finished.