You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After following the tutorial and getting to the 'npm run agent' line, I am getting the following error:
chroma/clients/js/examples/browser/app.ts:5:35 - error TS2559: Type '"http://localhost:8000"' has no properties in common with type '{ path?: string; }'.
chroma/clients/js/examples/browser/app.ts:8:52 - error TS2345: Argument of type
'string' is not assignable to parameter of type '{ name: string; metadata?: CollectionMetadata; embeddingFunction?: IEmbeddingFunction; }'.
After following the tutorial and getting to the 'npm run agent' line, I am getting the following error:
chroma/clients/js/examples/browser/app.ts:5:35 - error TS2559: Type '"http://localhost:8000"' has no properties in common with type '{ path?: string; }'.
5 const chroma = new ChromaClient("http://localhost:8000");
~~~~~~~~~~~~~~~~~~~~~~~
chroma/clients/js/examples/browser/app.ts:8:52 - error TS2345: Argument of type
'string' is not assignable to parameter of type '{ name: string; metadata?: CollectionMetadata; embeddingFunction?: IEmbeddingFunction; }'.
8 const collection = await chroma.createCollection("test-from-js");
~~~~~~~~~~~~~~
chroma/clients/js/examples/browser/app.ts:21:39 - error TS2554: Expected 1 arguments, but got 3.
21 let add = await collection.add(ids, embeddings, metadata);
~~~~~~~~~~~~~~~~~~~~
chroma/clients/js/examples/browser/app.ts:27:61 - error TS2554: Expected 1 arguments, but got 3.
27 const queryData = await collection.query([1, 2, 3, 4, 5], 5, {
~~~~
28 test: "test",
The text was updated successfully, but these errors were encountered: