ailoy-web
Preparing search index...
VectorStore
Class VectorStore
Index
Methods
[dispose]
add
Vector
add
Vectors
clear
count
free
get
By
Id
get
By
Ids
remove
Vector
remove
Vectors
retrieve
new
Chroma
new
Faiss
Methods
[dispose]
"[dispose]"
()
:
void
Returns
void
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
[]
>
clear
clear
()
:
Promise
<
void
>
Returns
Promise
<
void
>
count
count
()
:
Promise
<
number
>
Returns
Promise
<
number
>
free
free
()
:
void
Returns
void
get
By
Id
getById
(
id
:
string
)
:
Promise
<
VectorStoreGetResult
|
undefined
>
Parameters
id
:
string
Returns
Promise
<
VectorStoreGetResult
|
undefined
>
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
(
query_embedding
:
Float32Array
,
top_k
:
number
,
)
:
Promise
<
VectorStoreRetrieveResult
[]
>
Parameters
query_embedding
:
Float32Array
top_k
:
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
Methods
[dispose]
add
Vector
add
Vectors
clear
count
free
get
By
Id
get
By
Ids
remove
Vector
remove
Vectors
retrieve
new
Chroma
new
Faiss
ailoy-web
Loading...