langchain.js
Preparing search index...
langchain
retrievers/score_threshold
ScoreThresholdRetriever
Class ScoreThresholdRetriever<V>
LangChain Messages
Type Parameters
V
extends
BaseMessage
Hierarchy (
View Summary
)
BaseMessage
<
V
>
ScoreThresholdRetriever
Index
Constructors
constructor
Properties
k
Increment
max
K
min
Similarity
Score
Methods
get
Relevant
Documents
from
Vector
Store
Constructors
constructor
new
ScoreThresholdRetriever
<
V
extends
VectorStore
>
(
input
:
ScoreThresholdRetrieverInput
<
V
>
,
)
:
ScoreThresholdRetriever
<
V
>
Type Parameters
V
extends
VectorStore
Parameters
input
:
ScoreThresholdRetrieverInput
<
V
>
Returns
ScoreThresholdRetriever
<
V
>
Properties
k
Increment
kIncrement
:
number
= 10
max
K
maxK
:
number
= 100
min
Similarity
Score
minSimilarityScore
:
number
Methods
get
Relevant
Documents
getRelevantDocuments
(
query
:
string
)
:
Promise
<
Document
[]
>
Parameters
query
:
string
Returns
Promise
<
Document
[]
>
Static
from
Vector
Store
fromVectorStore
<
V
extends
VectorStore
>
(
vectorStore
:
V
,
options
:
Omit
<
ScoreThresholdRetrieverInput
<
V
>
,
"vectorStore"
>
,
)
:
ScoreThresholdRetriever
<
V
>
Type Parameters
V
extends
VectorStore
Parameters
vectorStore
:
V
options
:
Omit
<
ScoreThresholdRetrieverInput
<
V
>
,
"vectorStore"
>
Returns
ScoreThresholdRetriever
<
V
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
k
Increment
max
K
min
Similarity
Score
Methods
get
Relevant
Documents
from
Vector
Store
langchain.js
Loading...
LangChain Messages