qdrant_client.fastembed_common module

class QueryResponse(*, id: Union[str, int], embedding: Optional[List[float]], sparse_embedding: Optional[SparseVector] = None, metadata: Dict[str, Any], document: str, score: float)[source]

Bases: BaseModel

document: str
embedding: Optional[List[float]]
id: Union[str, int]
metadata: Dict[str, Any]
model_computed_fields: ClassVar[dict[str, ComputedFieldInfo]] = {}

A dictionary of computed field names and their corresponding ComputedFieldInfo objects.

model_config: ClassVar[ConfigDict] = {'extra': 'forbid'}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

model_fields: ClassVar[dict[str, FieldInfo]] = {'document': FieldInfo(annotation=str, required=True), 'embedding': FieldInfo(annotation=Union[List[float], NoneType], required=True), 'id': FieldInfo(annotation=Union[str, int], required=True), 'metadata': FieldInfo(annotation=Dict[str, Any], required=True), 'score': FieldInfo(annotation=float, required=True), 'sparse_embedding': FieldInfo(annotation=Union[SparseVector, NoneType], required=False)}

Metadata about the fields defined on the model, mapping of field names to [FieldInfo][pydantic.fields.FieldInfo].

This replaces Model.__fields__ from Pydantic V1.

score: float
sparse_embedding: Optional[SparseVector]


Learn more about Qdrant vector search project and ecosystem

Discover Qdrant

Similarity Learning

Explore practical problem solving with Similarity Learning

Learn Similarity Learning


Find people dealing with similar problems and get answers to your questions

Join Community