We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5294dd3 commit c38c623Copy full SHA for c38c623
langchain/src/vectorstores/chroma.ts
@@ -98,6 +98,9 @@ export class Chroma extends VectorStore {
98
const result = await collection.query(query, k);
99
100
const { ids, distances, documents, metadatas } = result;
101
+ if (!ids || !distances || !documents || !metadatas) {
102
+ return [];
103
+ }
104
// get the result data from the first and only query vector
105
const [firstIds] = ids;
106
const [firstDistances] = distances;
0 commit comments