import error with chroma client #18032
Replies: 2 comments
-
The import statement For an ephemeral client: import chromadb
# Create a Chroma client
client = chromadb.EphemeralClient() For an HTTP client: import chromadb
# Create a Chroma HTTP client
client = chromadb.HttpClient(host='your_host', port='your_port', ssl=False, headers={}) These are the correct ways to initialize a Chroma client in the latest version of the To continue talking to Dosu, mention @dosu. Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Bug Report | Other |
Beta Was this translation helpful? Give feedback.
-
I used the client/server proposal, and it works. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Is it correct to use client as in this code? Because I'm getting a "Module not found error":
`from chromadb.client import ChromaClient
Initialize ChromaDB client
client = ChromaClient(Settings(chroma_db_impl="duckdb+parquet"))
`
Beta Was this translation helpful? Give feedback.
All reactions