mirror of
https://github.com/hwchase17/langchain.git
synced 2026-06-09 10:17:00 +00:00
release(chroma): 1.0.0a1 (#33227)
This commit is contained in:
@@ -8,11 +8,10 @@ from __future__ import annotations
|
||||
import base64
|
||||
import logging
|
||||
import uuid
|
||||
from collections.abc import Iterable, Sequence
|
||||
from collections.abc import Callable, Iterable, Sequence
|
||||
from typing import (
|
||||
TYPE_CHECKING,
|
||||
Any,
|
||||
Callable,
|
||||
Optional,
|
||||
Union,
|
||||
)
|
||||
@@ -51,6 +50,7 @@ def _results_to_docs_and_scores(results: Any) -> list[tuple[Document, float]]:
|
||||
results["metadatas"][0],
|
||||
results["ids"][0],
|
||||
results["distances"][0],
|
||||
strict=False,
|
||||
)
|
||||
]
|
||||
|
||||
@@ -62,6 +62,7 @@ def _results_to_docs_and_vectors(results: Any) -> list[tuple[Document, np.ndarra
|
||||
results["documents"][0],
|
||||
results["metadatas"][0],
|
||||
results["embeddings"][0],
|
||||
strict=False,
|
||||
)
|
||||
]
|
||||
|
||||
@@ -1166,6 +1167,7 @@ class Chroma(VectorStore):
|
||||
results["documents"],
|
||||
results["metadatas"],
|
||||
results["ids"],
|
||||
strict=False,
|
||||
)
|
||||
]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user