v0.2
v0.1
Preparing search index...
The search index is not available
LangChain.js - v0.2.7
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
constructor
k
Increment
maxK
min
Similarity
Score
get
Relevant
Documents
from
Vector
Store
LangChain.js - v0.2.7
langchain-anthropic
langchain-aws
langchain-azure-dynamic-sessions
langchain-azure-openai
langchain-cloudflare
langchain-cohere
langchain-community
agents/toolkits
aws_sfn
base
connery
caches
cloudflare_kv
ioredis
momento
upstash_redis
callbacks/handlers
llmonitor
lunary
upstash_ratelimit
chains/graph_qa/cypher
Loading...
Generated using
TypeDoc