Filter Type Filter Type : { min_should ?: null | Record < string , unknown > | { conditions : ( | ( { should?: (... | { key: string; match?: Record<string, unknown> | { value: string | number | boolean; } | { text: string; } | { any: string[] | number[]; } | { except: string[] | number[]; } | null | undefined; ... 4 more ...; values_count?: Record<...> | ... 2 more ... | undefined; } | { ...; } | { ...; } | { ...;...) | { key : string ; geo_bounding_box ?: null | Record < string , unknown > | { bottom_right : { lat : number ; lon : number ; } ; top_left : { lat : number ; lon : number ; } ; } ; geo_polygon ?: null | Record < string , unknown > | { exterior : { points : { lat : ...; lon : ...; } [] ; } ; interiors ?: null | { points : ...; } [] ; } ; geo_radius ?: null | Record < string , unknown > | { center : { lat : number ; lon : number ; } ; radius : number ; } ; match ?: | null | Record < string , unknown > | { value : string | number | boolean ; } | { text : string ; } | { any : string [] | number [] ; } | { except : string [] | number [] ; } ; range ?: | null | Record < string , unknown > | { gt ?: null | number ; gte ?: null | number ; lt ?: null | number ; lte ?: null | number ; } | { gt ?: null | string ; gte ?: null | string ; lt ?: null | string ; lte ?: null | string ; } ; values_count ?: null | Record < string , unknown > | { gt ?: null | number ; gte ?: null | number ; lt ?: null | number ; lte ?: null | number ; } ; } | { is_empty : { key : string ; } ; } | { is_null : { key : string ; } ; } | { has_id : ( string | number ) [] ; } | { nested : { filter : { should?: (... | { key: string; match?: Record<string, unknown> | { value: string | number | boolean; } | { text: string; } | { any: string[] | number[]; } | { except: string[] | number[]; } | null | undefined; ... 4 more ...; values_count?: Record<...> | ... 2 more ... | undefined; } | { ...; } | { ...; } | { ...;...; key : string ; } ; } ) [] ; min_count : number ; } ; must ?: null | ( | ( { should?: (... | { key: string; match?: Record<string, unknown> | { value: string | number | boolean; } | { text: string; } | { any: string[] | number[]; } | { except: string[] | number[]; } | null | undefined; ... 4 more ...; values_count?: Record<...> | ... 2 more ... | undefined; } | { ...; } | { ...; } | { ...;...) | { key : string ; geo_bounding_box ?: null | Record < string , unknown > | { bottom_right : { lat : number ; lon : number ; } ; top_left : { lat : number ; lon : number ; } ; } ; geo_polygon ?: null | Record < string , unknown > | { exterior : { points : { lat : number ; lon : number ; } [] ; } ; interiors ?: null | { points : ( ...) [] ; } [] ; } ; geo_radius ?: null | Record < string , unknown > | { center : { lat : number ; lon : number ; } ; radius : number ; } ; match ?: | null | Record < string , unknown > | { value : string | number | boolean ; } | { text : string ; } | { any : string [] | number [] ; } | { except : string [] | number [] ; } ; range ?: | null | Record < string , unknown > | { gt ?: null | number ; gte ?: null | number ; lt ?: null | number ; lte ?: null | number ; } | { gt ?: null | string ; gte ?: null | string ; lt ?: null | string ; lte ?: null | string ; } ; values_count ?: null | Record < string , unknown > | { gt ?: null | number ; gte ?: null | number ; lt ?: null | number ; lte ?: null | number ; } ; } | { is_empty : { key : string ; } ; } | { is_null : { key : string ; } ; } | { has_id : ( string | number ) [] ; } | { nested : { filter : { should?: (... | { key: string; match?: Record<string, unknown> | { value: string | number | boolean; } | { text: string; } | { any: string[] | number[]; } | { except: string[] | number[]; } | null | undefined; ... 4 more ...; values_count?: Record<...> | ... 2 more ... | undefined; } | { ...; } | { ...; } | { ...;...; key : string ; } ; } ) [] ; must_not ?: null | ( | ( { should?: (... | { key: string; match?: Record<string, unknown> | { value: string | number | boolean; } | { text: string; } | { any: string[] | number[]; } | { except: string[] | number[]; } | null | undefined; ... 4 more ...; values_count?: Record<...> | ... 2 more ... | undefined; } | { ...; } | { ...; } | { ...;...) | { key : string ; geo_bounding_box ?: null | Record < string , unknown > | { bottom_right : { lat : number ; lon : number ; } ; top_left : { lat : number ; lon : number ; } ; } ; geo_polygon ?: null | Record < string , unknown > | { exterior : { points : { lat : number ; lon : number ; } [] ; } ; interiors ?: null | { points : ( ...) [] ; } [] ; } ; geo_radius ?: null | Record < string , unknown > | { center : { lat : number ; lon : number ; } ; radius : number ; } ; match ?: | null | Record < string , unknown > | { value : string | number | boolean ; } | { text : string ; } | { any : string [] | number [] ; } | { except : string [] | number [] ; } ; range ?: | null | Record < string , unknown > | { gt ?: null | number ; gte ?: null | number ; lt ?: null | number ; lte ?: null | number ; } | { gt ?: null | string ; gte ?: null | string ; lt ?: null | string ; lte ?: null | string ; } ; values_count ?: null | Record < string , unknown > | { gt ?: null | number ; gte ?: null | number ; lt ?: null | number ; lte ?: null | number ; } ; } | { is_empty : { key : string ; } ; } | { is_null : { key : string ; } ; } | { has_id : ( string | number ) [] ; } | { nested : { filter : { should?: (... | { key: string; match?: Record<string, unknown> | { value: string | number | boolean; } | { text: string; } | { any: string[] | number[]; } | { except: string[] | number[]; } | null | undefined; ... 4 more ...; values_count?: Record<...> | ... 2 more ... | undefined; } | { ...; } | { ...; } | { ...;...; key : string ; } ; } ) [] ; should ?: null | ( | ( { should?: (... | { key: string; match?: Record<string, unknown> | { value: string | number | boolean; } | { text: string; } | { any: string[] | number[]; } | { except: string[] | number[]; } | null | undefined; ... 4 more ...; values_count?: Record<...> | ... 2 more ... | undefined; } | { ...; } | { ...; } | { ...;...) | { key : string ; geo_bounding_box ?: null | Record < string , unknown > | { bottom_right : { lat : number ; lon : number ; } ; top_left : { lat : number ; lon : number ; } ; } ; geo_polygon ?: null | Record < string , unknown > | { exterior : { points : { lat : number ; lon : number ; } [] ; } ; interiors ?: null | { points : ( ...) [] ; } [] ; } ; geo_radius ?: null | Record < string , unknown > | { center : { lat : number ; lon : number ; } ; radius : number ; } ; match ?: | null | Record < string , unknown > | { value : string | number | boolean ; } | { text : string ; } | { any : string [] | number [] ; } | { except : string [] | number [] ; } ; range ?: | null | Record < string , unknown > | { gt ?: null | number ; gte ?: null | number ; lt ?: null | number ; lte ?: null | number ; } | { gt ?: null | string ; gte ?: null | string ; lt ?: null | string ; lte ?: null | string ; } ; values_count ?: null | Record < string , unknown > | { gt ?: null | number ; gte ?: null | number ; lt ?: null | number ; lte ?: null | number ; } ; } | { is_empty : { key : string ; } ; } | { is_null : { key : string ; } ; } | { has_id : ( string | number ) [] ; } | { nested : { filter : { should?: (... | { key: string; match?: Record<string, unknown> | { value: string | number | boolean; } | { text: string; } | { any: string[] | number[]; } | { except: string[] | number[]; } | null | undefined; ... 4 more ...; values_count?: Record<...> | ... 2 more ... | undefined; } | { ...; } | { ...; } | { ...;...; key : string ; } ; } ) [] ; }
Type declaration Optional
min_ should ?: null | Record < string , unknown > | { conditions : ( | ( { should?: (... | { key: string; match?: Record<string, unknown> | { value: string | number | boolean; } | { text: string; } | { any: string[] | number[]; } | { except: string[] | number[]; } | null | undefined; ... 4 more ...; values_count?: Record<...> | ... 2 more ... | undefined; } | { ...; } | { ...; } | { ...;...) | { key : string ; geo_bounding_box ?: null | Record < string , unknown > | { bottom_right : { lat : number ; lon : number ; } ; top_left : { lat : number ; lon : number ; } ; } ; geo_polygon ?: null | Record < string , unknown > | { exterior : { points : { lat : ...; lon : ...; } [] ; } ; interiors ?: null | { points : ...; } [] ; } ; geo_radius ?: null | Record < string , unknown > | { center : { lat : number ; lon : number ; } ; radius : number ; } ; match ?: | null | Record < string , unknown > | { value : string | number | boolean ; } | { text : string ; } | { any : string [] | number [] ; } | { except : string [] | number [] ; } ; range ?: | null | Record < string , unknown > | { gt ?: null | number ; gte ?: null | number ; lt ?: null | number ; lte ?: null | number ; } | { gt ?: null | string ; gte ?: null | string ; lt ?: null | string ; lte ?: null | string ; } ; values_count ?: null | Record < string , unknown > | { gt ?: null | number ; gte ?: null | number ; lt ?: null | number ; lte ?: null | number ; } ; } | { is_empty : { key : string ; } ; } | { is_null : { key : string ; } ; } | { has_id : ( string | number ) [] ; } | { nested : { filter : { should?: (... | { key: string; match?: Record<string, unknown> | { value: string | number | boolean; } | { text: string; } | { any: string[] | number[]; } | { except: string[] | number[]; } | null | undefined; ... 4 more ...; values_count?: Record<...> | ... 2 more ... | undefined; } | { ...; } | { ...; } | { ...;...; key : string ; } ; } ) [] ; min_count : number ; } Optional
must ?: null | ( | ( { should?: (... | { key: string; match?: Record<string, unknown> | { value: string | number | boolean; } | { text: string; } | { any: string[] | number[]; } | { except: string[] | number[]; } | null | undefined; ... 4 more ...; values_count?: Record<...> | ... 2 more ... | undefined; } | { ...; } | { ...; } | { ...;...) | { key : string ; geo_bounding_box ?: null | Record < string , unknown > | { bottom_right : { lat : number ; lon : number ; } ; top_left : { lat : number ; lon : number ; } ; } ; geo_polygon ?: null | Record < string , unknown > | { exterior : { points : { lat : number ; lon : number ; } [] ; } ; interiors ?: null | { points : ( ...) [] ; } [] ; } ; geo_radius ?: null | Record < string , unknown > | { center : { lat : number ; lon : number ; } ; radius : number ; } ; match ?: | null | Record < string , unknown > | { value : string | number | boolean ; } | { text : string ; } | { any : string [] | number [] ; } | { except : string [] | number [] ; } ; range ?: | null | Record < string , unknown > | { gt ?: null | number ; gte ?: null | number ; lt ?: null | number ; lte ?: null | number ; } | { gt ?: null | string ; gte ?: null | string ; lt ?: null | string ; lte ?: null | string ; } ; values_count ?: null | Record < string , unknown > | { gt ?: null | number ; gte ?: null | number ; lt ?: null | number ; lte ?: null | number ; } ; } | { is_empty : { key : string ; } ; } | { is_null : { key : string ; } ; } | { has_id : ( string | number ) [] ; } | { nested : { filter : { should?: (... | { key: string; match?: Record<string, unknown> | { value: string | number | boolean; } | { text: string; } | { any: string[] | number[]; } | { except: string[] | number[]; } | null | undefined; ... 4 more ...; values_count?: Record<...> | ... 2 more ... | undefined; } | { ...; } | { ...; } | { ...;...; key : string ; } ; } ) [] Optional
must_ not ?: null | ( | ( { should?: (... | { key: string; match?: Record<string, unknown> | { value: string | number | boolean; } | { text: string; } | { any: string[] | number[]; } | { except: string[] | number[]; } | null | undefined; ... 4 more ...; values_count?: Record<...> | ... 2 more ... | undefined; } | { ...; } | { ...; } | { ...;...) | { key : string ; geo_bounding_box ?: null | Record < string , unknown > | { bottom_right : { lat : number ; lon : number ; } ; top_left : { lat : number ; lon : number ; } ; } ; geo_polygon ?: null | Record < string , unknown > | { exterior : { points : { lat : number ; lon : number ; } [] ; } ; interiors ?: null | { points : ( ...) [] ; } [] ; } ; geo_radius ?: null | Record < string , unknown > | { center : { lat : number ; lon : number ; } ; radius : number ; } ; match ?: | null | Record < string , unknown > | { value : string | number | boolean ; } | { text : string ; } | { any : string [] | number [] ; } | { except : string [] | number [] ; } ; range ?: | null | Record < string , unknown > | { gt ?: null | number ; gte ?: null | number ; lt ?: null | number ; lte ?: null | number ; } | { gt ?: null | string ; gte ?: null | string ; lt ?: null | string ; lte ?: null | string ; } ; values_count ?: null | Record < string , unknown > | { gt ?: null | number ; gte ?: null | number ; lt ?: null | number ; lte ?: null | number ; } ; } | { is_empty : { key : string ; } ; } | { is_null : { key : string ; } ; } | { has_id : ( string | number ) [] ; } | { nested : { filter : { should?: (... | { key: string; match?: Record<string, unknown> | { value: string | number | boolean; } | { text: string; } | { any: string[] | number[]; } | { except: string[] | number[]; } | null | undefined; ... 4 more ...; values_count?: Record<...> | ... 2 more ... | undefined; } | { ...; } | { ...; } | { ...;...; key : string ; } ; } ) [] Optional
should ?: null | ( | ( { should?: (... | { key: string; match?: Record<string, unknown> | { value: string | number | boolean; } | { text: string; } | { any: string[] | number[]; } | { except: string[] | number[]; } | null | undefined; ... 4 more ...; values_count?: Record<...> | ... 2 more ... | undefined; } | { ...; } | { ...; } | { ...;...) | { key : string ; geo_bounding_box ?: null | Record < string , unknown > | { bottom_right : { lat : number ; lon : number ; } ; top_left : { lat : number ; lon : number ; } ; } ; geo_polygon ?: null | Record < string , unknown > | { exterior : { points : { lat : number ; lon : number ; } [] ; } ; interiors ?: null | { points : ( ...) [] ; } [] ; } ; geo_radius ?: null | Record < string , unknown > | { center : { lat : number ; lon : number ; } ; radius : number ; } ; match ?: | null | Record < string , unknown > | { value : string | number | boolean ; } | { text : string ; } | { any : string [] | number [] ; } | { except : string [] | number [] ; } ; range ?: | null | Record < string , unknown > | { gt ?: null | number ; gte ?: null | number ; lt ?: null | number ; lte ?: null | number ; } | { gt ?: null | string ; gte ?: null | string ; lt ?: null | string ; lte ?: null | string ; } ; values_count ?: null | Record < string , unknown > | { gt ?: null | number ; gte ?: null | number ; lt ?: null | number ; lte ?: null | number ; } ; } | { is_empty : { key : string ; } ; } | { is_null : { key : string ; } ; } | { has_id : ( string | number ) [] ; } | { nested : { filter : { should?: (... | { key: string; match?: Record<string, unknown> | { value: string | number | boolean; } | { text: string; } | { any: string[] | number[]; } | { except: string[] | number[]; } | null | undefined; ... 4 more ...; values_count?: Record<...> | ... 2 more ... | undefined; } | { ...; } | { ...; } | { ...;...; key : string ; } ; } ) [] Optional
collection Config collection Config ?: { hnsw_config ?: null | Record < string , unknown > | { ef_construct ?: null | number ; full_scan_threshold ?: null | number ; m ?: null | number ; max_indexing_threads ?: null | number ; on_disk ?: null | boolean ; payload_m ?: null | number ; } ; init_from ?: null | Record < string , unknown > | { collection : string ; } ; on_disk_payload ?: null | boolean ; optimizers_config ?: null | Record < string , unknown > | { default_segment_number ?: null | number ; deleted_threshold ?: null | number ; flush_interval_sec ?: null | number ; indexing_threshold ?: null | number ; max_optimization_threads ?: null | number ; max_segment_size ?: null | number ; memmap_threshold ?: null | number ; vacuum_min_vector_number ?: null | number ; } ; quantization_config ?: | null | Record < string , unknown > | { scalar : { type : "int8" ; always_ram ?: null | boolean ; quantile ?: null | number ; } ; } | { product : { compression : | "x4" | "x8" | "x16" | "x32" | "x64" ; always_ram ?: null | boolean ; } ; } | { binary : { always_ram ?: null | boolean ; } ; } ; replication_factor ?: null | number ; shard_number ?: null | number ; sharding_method ?: | null | Record < string , unknown > | "auto" | "custom" ; sparse_vectors ?: null | { [key : string ]: components [ "schemas" ] [ "SparseVectorParams" ] | undefined ; } ; vectors ?: { distance : | "Cosine" | "Euclid" | "Dot" | "Manhattan" ; size : number ; datatype ?: | null | Record < string , unknown > | "float32" | "uint8" ; hnsw_config ?: null | Record < string , unknown > | { ef_construct ?: null | number ; full_scan_threshold ?: null | number ; m ?: null | number ; max_indexing_threads ?: null | number ; on_disk ?: null | boolean ; payload_m ?: null | number ; } ; on_disk ?: null | boolean ; quantization_config ?: | null | Record < string , unknown > | { scalar : { type : "int8" ; always_ram ?: null | boolean ; quantile ?: null | number ; } ; } | { product : { compression : | "x4" | "x8" | "x16" | "x32" | "x64" ; always_ram ?: null | boolean ; } ; } | { binary : { always_ram ?: null | boolean ; } ; } ; } | { [key : string ]: components [ "schemas" ] [ "VectorParams" ] | undefined ; } ; wal_config ?: null | Record < string , unknown > | { wal_capacity_mb ?: null | number ; wal_segments_ahead ?: null | number ; } ; write_consistency_factor ?: null | number ; }
Type declaration Optional
hnsw_ config ?: null | Record < string , unknown > | { ef_construct ?: null | number ; full_scan_threshold ?: null | number ; m ?: null | number ; max_indexing_threads ?: null | number ; on_disk ?: null | boolean ; payload_m ?: null | number ; } Optional
init_ from ?: null | Record < string , unknown > | { collection : string ; } Optional
on_ disk_ payload ?: null | boolean Optional
optimizers_ config ?: null | Record < string , unknown > | { default_segment_number ?: null | number ; deleted_threshold ?: null | number ; flush_interval_sec ?: null | number ; indexing_threshold ?: null | number ; max_optimization_threads ?: null | number ; max_segment_size ?: null | number ; memmap_threshold ?: null | number ; vacuum_min_vector_number ?: null | number ; } Optional
quantization_ config ?: | null | Record < string , unknown > | { scalar : { type : "int8" ; always_ram ?: null | boolean ; quantile ?: null | number ; } ; } | { product : { compression : | "x4" | "x8" | "x16" | "x32" | "x64" ; always_ram ?: null | boolean ; } ; } | { binary : { always_ram ?: null | boolean ; } ; } Optional
replication_ factor ?: null | number Optional
shard_ number ?: null | number Optional
sharding_ method ?: | null | Record < string , unknown > | "auto" | "custom" Optional
sparse_ vectors ?: null | { [key : string ]: components [ "schemas" ] [ "SparseVectorParams" ] | undefined ; } Optional
vectors ?: { distance : | "Cosine" | "Euclid" | "Dot" | "Manhattan" ; size : number ; datatype ?: | null | Record < string , unknown > | "float32" | "uint8" ; hnsw_config ?: null | Record < string , unknown > | { ef_construct ?: null | number ; full_scan_threshold ?: null | number ; m ?: null | number ; max_indexing_threads ?: null | number ; on_disk ?: null | boolean ; payload_m ?: null | number ; } ; on_disk ?: null | boolean ; quantization_config ?: | null | Record < string , unknown > | { scalar : { type : "int8" ; always_ram ?: null | boolean ; quantile ?: null | number ; } ; } | { product : { compression : | "x4" | "x8" | "x16" | "x32" | "x64" ; always_ram ?: null | boolean ; } ; } | { binary : { always_ram ?: null | boolean ; } ; } ; } | { [key : string ]: components [ "schemas" ] [ "VectorParams" ] | undefined ; } Optional
wal_ config ?: null | Record < string , unknown > | { wal_capacity_mb ?: null | number ; wal_segments_ahead ?: null | number ; } Optional
write_ consistency_ factor ?: null | number
Class that extends the
VectorStore
base class to interact with a Qdrant database. It includes methods for adding documents and vectors to the Qdrant database, searching for similar vectors, and ensuring the existence of a collection in the database.