ailoy-node
Preparing search index...
VectorStore
Class VectorStore
Index
Constructors
constructor
Methods
add
Vector
add
Vectors
batch
Retrieve
clear
count
get
By
Id
get
By
Ids
remove
Vector
remove
Vectors
retrieve
new
Chroma
new
Faiss
Constructors
constructor
new
VectorStore
()
:
VectorStore
Returns
VectorStore
Methods
add
Vector
addVector
(
input
:
VectorStoreAddInput
)
:
Promise
<
string
>
Parameters
input
:
VectorStoreAddInput
Returns
Promise
<
string
>
add
Vectors
addVectors
(
inputs
:
VectorStoreAddInput
[]
)
:
Promise
<
string
[]
>
Parameters
inputs
:
VectorStoreAddInput
[]
Returns
Promise
<
string
[]
>
batch
Retrieve
batchRetrieve
(
queryEmbeddings
:
Embedding
[]
,
topK
:
number
,
)
:
Promise
<
VectorStoreRetrieveResult
[]
[]
>
Parameters
queryEmbeddings
:
Embedding
[]
topK
:
number
Returns
Promise
<
VectorStoreRetrieveResult
[]
[]
>
clear
clear
()
:
Promise
<
void
>
Returns
Promise
<
void
>
count
count
()
:
Promise
<
number
>
Returns
Promise
<
number
>
get
By
Id
getById
(
id
:
string
)
:
Promise
<
VectorStoreGetResult
|
null
>
Parameters
id
:
string
Returns
Promise
<
VectorStoreGetResult
|
null
>
get
By
Ids
getByIds
(
ids
:
string
[]
)
:
Promise
<
VectorStoreGetResult
[]
>
Parameters
ids
:
string
[]
Returns
Promise
<
VectorStoreGetResult
[]
>
remove
Vector
removeVector
(
id
:
string
)
:
Promise
<
void
>
Parameters
id
:
string
Returns
Promise
<
void
>
remove
Vectors
removeVectors
(
ids
:
string
[]
)
:
Promise
<
void
>
Parameters
ids
:
string
[]
Returns
Promise
<
void
>
retrieve
retrieve
(
queryEmbedding
:
Embedding
,
topK
:
number
,
)
:
Promise
<
VectorStoreRetrieveResult
[]
>
Parameters
queryEmbedding
:
Embedding
topK
:
number
Returns
Promise
<
VectorStoreRetrieveResult
[]
>
Static
new
Chroma
newChroma
(
url
:
string
,
collectionName
?:
string
|
null
)
:
Promise
<
VectorStore
>
Parameters
url
:
string
Optional
collectionName
:
string
|
null
Returns
Promise
<
VectorStore
>
Static
new
Faiss
newFaiss
(
dim
:
number
)
:
Promise
<
VectorStore
>
Parameters
dim
:
number
Returns
Promise
<
VectorStore
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Methods
add
Vector
add
Vectors
batch
Retrieve
clear
count
get
By
Id
get
By
Ids
remove
Vector
remove
Vectors
retrieve
new
Chroma
new
Faiss
ailoy-node
Loading...