2023-06-22 11:23:22 -07:00
2023-06-22 11:19:11 -07:00
2023-06-22 11:19:11 -07:00
2023-06-22 11:23:22 -07:00
2023-06-22 10:37:24 -07:00
2023-06-22 10:36:07 -07:00
2023-06-22 10:36:07 -07:00
2023-06-22 10:36:07 -07:00
2023-06-22 11:21:01 -07:00
2023-06-22 11:21:01 -07:00

chromadb-extended by Mintplex Labs

This is an extension on the original chromadb npm package to enable the ability to use private single-instance Chroma instances to utilize authentication during their requests.

Getting started

Chroma needs to be running in order for this client to talk to it. Please see the 🧪 Usage Guide to learn how to quickly stand this up.

Small example

import { ChromaClientExtended } from "chromadb-extended";
const chroma = new ChromaClient({
  path: "http://localhost:8000",
  fetchOptions: {
    headers: {
      'X-Api-Token': "sk-live-Hunt3r2", // Works like regular node-fetch headers!
    }
  }
});

// Now use as you normally would use chromadb

await client.reset()
await client.heartbeat()
await client.getOrCreateCollection({ name: "test" });
await client.listCollections()
const collection = await client.getCollection({ name: 'test' })
await collection.count()
await collection.add({ ids, embeddings, metadatas })
// etc etc

License

Apache 2.0

S
Description
This functionality was merged into the chroma-core JS library - just use that.
Readme Apache-2.0 53 KiB
Languages
TypeScript 94.3%
JavaScript 5.7%