v0.2
v0.1
Preparing search index...
The search index is not available
LangChain.js - v0.2.5
LangChain.js
langchain-community/vectorstores/turbopuffer
TurbopufferVectorStore
Class TurbopufferVectorStore
Hierarchy (
view full
)
Toolkit
TurbopufferVectorStore
Index
Constructors
constructor
Properties
Filter
Type
batch
Size
caller
api
Key
api
Url
distance
Metric
namespace
Methods
add
Documents
add
Vectors
call
With
Retry
default
Headers
delete
similarity
Search
Vector
With
Score
from
Documents
query
Vectors
Constructors
constructor
new
Turbopuffer
Vector
Store
(
embeddings
,
args
)
:
TurbopufferVectorStore
Parameters
embeddings
:
EmbeddingsInterface
args
:
TurbopufferParams
Returns
TurbopufferVectorStore
Properties
Filter
Type
Filter
Type
:
TurbopufferFilterType
batch
Size
batch
Size
:
number
= 3000
caller
caller
:
AsyncCaller
Protected
api
Key
api
Key
:
string
Protected
api
Url
api
Url
:
string
= "https://api.turbopuffer.com/v1"
Protected
distance
Metric
distance
Metric
:
TurbopufferDistanceMetric
= "cosine_distance"
Protected
namespace
namespace
:
string
= "default"
Methods
add
Documents
add
Documents
(
documents
,
options
?
)
:
Promise
<
string
[]
>
Parameters
documents
:
DocumentInterface
[]
Optional
options
:
{
ids
?:
string
[]
;
}
Optional
ids
?:
string
[]
Returns
Promise
<
string
[]
>
add
Vectors
add
Vectors
(
vectors
,
documents
,
options
?
)
:
Promise
<
string
[]
>
Parameters
vectors
:
number
[]
[]
documents
:
DocumentInterface
[]
Optional
options
:
{
ids
?:
string
[]
;
}
Optional
ids
?:
string
[]
Returns
Promise
<
string
[]
>
call
With
Retry
call
With
Retry
(
fetchUrl
,
stringifiedBody
,
method
?
)
:
Promise
<
any
>
Parameters
fetchUrl
:
string
stringifiedBody
:
undefined
|
string
method
:
string
= "POST"
Returns
Promise
<
any
>
default
Headers
default
Headers
(
)
:
{
Authorization
:
string
;
Content-Type
:
string
;
}
Returns
{
Authorization
:
string
;
Content-Type
:
string
;
}
Authorization
:
string
Content-
Type
:
string
delete
delete
(
params
)
:
Promise
<
void
>
Parameters
params
:
{
deleteIndex
?:
boolean
;
}
Optional
delete
Index
?:
boolean
Returns
Promise
<
void
>
similarity
Search
Vector
With
Score
similarity
Search
Vector
With
Score
(
query
,
k
,
filter
?
)
:
Promise
<
[
DocumentInterface
,
number
]
[]
>
Parameters
query
:
number
[]
k
:
number
Optional
filter
:
TurbopufferFilterType
Returns
Promise
<
[
DocumentInterface
,
number
]
[]
>
Static
from
Documents
from
Documents
(
docs
,
embeddings
,
dbConfig
)
:
Promise
<
TurbopufferVectorStore
>
Parameters
docs
:
DocumentInterface
[]
embeddings
:
EmbeddingsInterface
dbConfig
:
TurbopufferParams
Returns
Promise
<
TurbopufferVectorStore
>
Protected
query
Vectors
query
Vectors
(
query
,
k
,
includeVector
?
,
filter
?
)
:
Promise
<
TurbopufferQueryResult
[]
>
Parameters
query
:
number
[]
k
:
number
Optional
includeVector
:
boolean
Optional
filter
:
TurbopufferFilterType
Returns
Promise
<
TurbopufferQueryResult
[]
>
Settings
Member Visibility
Protected
Inherited
Theme
OS
Light
Dark
On This Page
constructor
Filter
Type
batch
Size
caller
api
Key
api
Url
distance
Metric
namespace
add
Documents
add
Vectors
call
With
Retry
default
Headers
delete
similarity
Search
Vector
With
Score
from
Documents
query
Vectors
LangChain.js - v0.2.5
langchain-anthropic
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
chat_models
alibaba_tongyi
Loading...
Generated using
TypeDoc