queries.
Parameters
queries (Iterable[Union[str, Dict[str, float]]]) – An iterable of queries to
bulk (execute in) – 
of (queries in the list can be strings or dictionaries) – 
queries. (weighted) – 
k (int, optional) – The number of documents to return for each query.
4. (Defaults to) – 
Returns
A list of results for each query.
Return type
List[List[Document]]
bulk_similarity_search_with_score(queries: Iterable[Union[str, Dict[str, float]]], k: int = 4, **kwargs: Any) → List[List[Tuple[Document, float]]][source]¶
Return documents from Marqo that are similar to the query as well as
their scores using a batch of queries.
Parameters
query (Iterable[Union[str, Dict[str, float]]]) – An iterable of queries
bulk (to execute in) – 
dictionaries (queries in the list can be strings or) – 
queries. (of weighted) – 
k (int, optional) – The number of documents to return. Defaults to 4.
Returns
A list of lists of the matching
documents and their scores for each query
Return type
List[Tuple[Document, float]]
delete(ids: Optional[List[str]] = None, **kwargs: Any) → Optional[bool]¶
Delete by vector ID or other criteria.
Parameters
ids – List of ids to delete.
**kwargs – Other keyword arguments that subclasses might use.
Returns
True if deletion is successful,
False otherwise, None if not implemented.
Return type
Optional[bool]
classmethod from_documents(documents: List[Document], embedding: Optional[Embeddings] = None, **kwargs: Any) → Marqo[source]¶