Uses of Class
dev.langchain4j.model.scoring.request.ScoringRequest
Packages that use ScoringRequest
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 ScoringRequest in dev.langchain4j.model.cohere
Methods in dev.langchain4j.model.cohere with parameters of type ScoringRequestModifier and TypeMethodDescriptionCohereScoringModel.doScore(ScoringRequest scoringRequest) CohereScoringModel.doScoreAsync(ScoringRequest scoringRequest) Genuinely non-blocking counterpart ofCohereScoringModel.doScore(ScoringRequest), used by the asynchronous and reactive RAG flow. -
Uses of ScoringRequest in dev.langchain4j.model.jina
Methods in dev.langchain4j.model.jina with parameters of type ScoringRequest -
Uses of ScoringRequest in dev.langchain4j.model.scoring
Methods in dev.langchain4j.model.scoring with parameters of type ScoringRequestModifier and TypeMethodDescriptionDecisionScoringModel.doScore(ScoringRequest request) default ScoringResponseScoringModel.doScore(ScoringRequest request) The provider hook behindScoringModel.score(ScoringRequest).DecisionScoringModel.doScoreAsync(ScoringRequest request) default CompletableFuture<ScoringResponse> ScoringModel.doScoreAsync(ScoringRequest request) The provider hook behindScoringModel.scoreAsync(ScoringRequest).default ScoringResponseScoringModel.score(ScoringRequest request) 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 ScoringRequest in dev.langchain4j.model.scoring.listener
Methods in dev.langchain4j.model.scoring.listener that return ScoringRequestModifier and TypeMethodDescriptionScoringModelErrorContext.scoringRequest()ScoringModelRequestContext.scoringRequest()ScoringModelResponseContext.scoringRequest()Methods in dev.langchain4j.model.scoring.listener with parameters of type ScoringRequestModifier and TypeMethodDescriptionScoringModelErrorContext.Builder.scoringRequest(ScoringRequest scoringRequest) ScoringModelRequestContext.Builder.scoringRequest(ScoringRequest scoringRequest) ScoringModelResponseContext.Builder.scoringRequest(ScoringRequest scoringRequest) -
Uses of ScoringRequest in dev.langchain4j.model.scoring.request
Methods in dev.langchain4j.model.scoring.request that return ScoringRequest -
Uses of ScoringRequest in dev.langchain4j.model.voyageai
Methods in dev.langchain4j.model.voyageai with parameters of type ScoringRequest -
Uses of ScoringRequest in dev.langchain4j.model.watsonx
Methods in dev.langchain4j.model.watsonx with parameters of type ScoringRequest -
Uses of ScoringRequest in dev.langchain4j.test.mock
Methods in dev.langchain4j.test.mock that return ScoringRequestModifier and TypeMethodDescriptionMockScoringModel.lastRequest()The last request received so far.MockScoringModel.request()The only request received so far.Methods in dev.langchain4j.test.mock that return types with arguments of type ScoringRequestModifier and TypeMethodDescriptionMockScoringModel.requests()A copy of the requests received so far, in the order they arrived.Methods in dev.langchain4j.test.mock with parameters of type ScoringRequestModifier and TypeMethodDescriptionMockScoringModel.doScore(ScoringRequest request) MockScoringModel.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. -
Uses of ScoringRequest in dev.langchain4j.test.service
Methods in dev.langchain4j.test.service that return ScoringRequestModifier and TypeMethodDescriptionScoringModelCall.request()Returns the request sent to the scoring model.