Class: QdrantVectorStore
Qdrant vector store.
Extends
Constructors
new QdrantVectorStore()
new QdrantVectorStore(
__namedParameters
):QdrantVectorStore
Creates a new QdrantVectorStore.
Parameters
• __namedParameters: QdrantParams
Returns
Overrides
Defined in
packages/llamaindex/src/vector-store/QdrantVectorStore.ts:62
Properties
batchSize
batchSize:
number
Defined in
packages/llamaindex/src/vector-store/QdrantVectorStore.ts:47
collectionName
collectionName:
string
Defined in
packages/llamaindex/src/vector-store/QdrantVectorStore.ts:48
embedModel
embedModel:
BaseEmbedding
Inherited from
Defined in
packages/llamaindex/src/vector-store/types.ts:89
isEmbeddingQuery?
optional
isEmbeddingQuery:boolean
Inherited from
BaseVectorStore
.isEmbeddingQuery
Defined in
packages/llamaindex/src/vector-store/types.ts:91
storesText
storesText:
boolean
=true
Overrides
Defined in
packages/llamaindex/src/vector-store/QdrantVectorStore.ts:45
Methods
add()
add(
embeddingResults
):Promise
<string
[]>
Adds the given nodes to the vector store.
Parameters
• embeddingResults: BaseNode
<Metadata
>[]
List of nodes
Returns
Promise
<string
[]>
List of node IDs
Overrides
Defined in
packages/llamaindex/src/vector-store/QdrantVectorStore.ts:191
buildPoints()
buildPoints(
nodes
):Promise
<object
>
Builds a list of points from the given nodes.
Parameters
Returns
Promise
<object
>
ids
ids:
string
[]
points
points:
PointStruct
[]
Defined in
packages/llamaindex/src/vector-store/QdrantVectorStore.ts:143
client()
client():
QdrantClient
Returns the Qdrant client.
Returns
QdrantClient
Qdrant client
Overrides
Defined in
packages/llamaindex/src/vector-store/QdrantVectorStore.ts:94
collectionExists()
collectionExists(
collectionName
):Promise
<boolean
>
Checks if the collection exists in Qdrant and creates it if not.
Parameters
• collectionName: string
Qdrant collection name
Returns
Promise
<boolean
>
Defined in
packages/llamaindex/src/vector-store/QdrantVectorStore.ts:117
createCollection()
createCollection(
collectionName
,vectorSize
):Promise
<void
>
Creates a collection in Qdrant.
Parameters
• collectionName: string
Qdrant collection name
• vectorSize: number
Dimensionality of the vectors
Returns
Promise
<void
>
Defined in
packages/llamaindex/src/vector-store/QdrantVectorStore.ts:103
delete()
delete(
refDocId
):Promise
<void
>
Deletes the given nodes from the vector store.
Parameters
• refDocId: string
Node ID
Returns
Promise
<void
>
Overrides
Defined in
packages/llamaindex/src/vector-store/QdrantVectorStore.ts:218
initializeCollection()
initializeCollection(
vectorSize
):Promise
<void
>
Initializes the collection in Qdrant.
Parameters
• vectorSize: number
Dimensionality of the vectors
Returns
Promise
<void
>
Defined in
packages/llamaindex/src/vector-store/QdrantVectorStore.ts:130
query()
query(
query
,options
?):Promise
<VectorStoreQueryResult
>
Queries the vector store for the closest matching data to the query embeddings.
Parameters
• query: VectorStoreQuery
The VectorStoreQuery to be used
• options?: any
Required by VectorStore interface. Currently ignored.
Returns
Promise
<VectorStoreQueryResult
>
Zero or more Document instances with data from the vector store.
Overrides
Defined in
packages/llamaindex/src/vector-store/QdrantVectorStore.ts:271