v0.2
v0.1
Preparing search index...
The search index is not available
LangChain.js - v0.2.8
LangChain.js
langchain/retrievers/score_threshold
ScoreThresholdRetriever
Class ScoreThresholdRetriever<V>
Type Parameters
V
extends
Toolkit
Hierarchy (
view full
)
Toolkit
<
V
>
ScoreThresholdRetriever
Index
Constructors
constructor
Properties
k
Increment
maxK
min
Similarity
Score
Methods
get
Relevant
Documents
from
Vector
Store
Constructors
constructor
new
Score
Threshold
Retriever
<
V
>
(
input
)
:
ScoreThresholdRetriever
<
V
>
Type Parameters
V
extends
VectorStore
Parameters
input
:
ScoreThresholdRetrieverInput
<
V
>
Returns
ScoreThresholdRetriever
<
V
>
Properties
k
Increment
k
Increment
:
number
= 10
maxK
maxK
:
number
= 100
min
Similarity
Score
min
Similarity
Score
:
number
Methods
get
Relevant
Documents
get
Relevant
Documents
(
query
)
:
Promise
<
Document
[]
>
Parameters
query
:
string
Returns
Promise
<
Document
[]
>
Static
from
Vector
Store
from
Vector
Store
<
V
>
(
vectorStore
,
options
)
:
ScoreThresholdRetriever
<
V
>
Type Parameters
V
extends
VectorStore
Parameters
vectorStore
:
V
options
:
Omit
<
ScoreThresholdRetrieverInput
<
V
>
,
"vectorStore"
>
Returns
ScoreThresholdRetriever
<
V
>
Settings
Member Visibility
Protected
Inherited
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
k
Increment
maxK
min
Similarity
Score
Methods
get
Relevant
Documents
from
Vector
Store
LangChain.js - v0.2.8
Loading...