Skip to content

Commit faeca80

Browse files
Asaki-Mmdrxy
andauthored
docs(chroma): Update Chroma Cloud connection example code (#693)
This PR updates the example code snippet for connecting to Chroma Cloud within the official documentation. Description of Changes: The primary change is in the docs/src/oss/javascript/integrations/vectorstores/chroma.mdx notebook, where the example for instantiating a Chroma vector store for a Chroma Cloud connection has been revised. Reason for Change: The previous example was not aligned with the latest implementation for connecting to Chroma Cloud. This update ensures that the documentation provides users with a correct and easy-to-follow example. Co-authored-by: Mason Daugherty <[email protected]>
1 parent 3161d65 commit faeca80

File tree

1 file changed

+8
-3
lines changed
  • src/oss/javascript/integrations/vectorstores

1 file changed

+8
-3
lines changed

src/oss/javascript/integrations/vectorstores/chroma.mdx

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -123,9 +123,14 @@ import { Chroma } from "@langchain/community/vectorstores/chroma";
123123

124124
const vectorStore = new Chroma(embeddings, {
125125
collectionName: "a-test-collection",
126-
tenant: process.env.CHROMA_TENANT,
127-
database: process.env.CHROMA_DATABASE,
128-
chromaCloudAPIKey: process.env.CHROMA_API_KEY
126+
chromaCloudAPIKey: process.env.CHROMA_API_KEY,
127+
clientParams: {
128+
host: "api.trychroma.com",
129+
port: 8000,
130+
ssl: true,
131+
tenant: process.env.CHROMA_TENANT,
132+
database: process.env.CHROMA_DATABASE,
133+
},
129134
});
130135
```
131136

0 commit comments

Comments
 (0)