Shortcuts

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, default=None)}

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

This replaces Model.__fields__ from Pydantic V1.

score: float
sparse_embedding: Optional[SparseVector]

Qdrant

Learn more about Qdrant vector search project and ecosystem

Discover Qdrant

Similarity Learning

Explore practical problem solving with Similarity Learning

Learn Similarity Learning

Community

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

Join Community