class QdrantVectorStore
implements VectorStoreNoEmbedModel
Qdrant vector store.
private
collectionInitialized: boolean
private
db: QdrantClient
buildPoints(nodes: BaseNode[]): Promise<{ points: PointStruct[]; ids: string[]; }>
Builds a list of points from the given nodes.
private
buildQueryFilter(query: VectorStoreQuery)
Qdrant filter builder
client()
Returns the Qdrant client.
collectionExists(collectionName: string): Promise<boolean>
Checks if the collection exists in Qdrant and creates it if not.
createCollection(): Promise<void>
Creates a collection in Qdrant.
initializeCollection(vectorSize: number): Promise<void>
Initializes the collection in Qdrant.
private
parseToQueryResult(response: Array<QuerySearchResult>): VectorStoreQueryResult
Converts the result of a query to a VectorStoreQueryResult.
query(query: VectorStoreQuery,options?: any,): Promise<VectorStoreQueryResult>
Queries the vector store for the closest matching data to the query embeddings.