Here is the short version: replace from langchain.vectorstores import chroma with the Chroma class imported from the separate langchain-chroma integration package. Install that package in the same Python environment as your application, then use the Python statement from langchain_chroma import Chroma. The lowercase name in the original statement refers to a module, while Chroma with a capital C is the class most examples actually need.
This is an import migration, not a change to your embedding model or a promise that an existing index will work unchanged. Package APIs evolve, so check the integration documentation and your installed versions when adapting an older project.
Install the integration in the right environment
Create or activate your project's virtual environment first. Then run the following command in your terminal: python -m pip install -U langchain-chroma chromadb. The hyphenated name is the package you install; the underscored name is the Python module you import. Using python -m pip helps ensure pip targets the interpreter named by python.
Next, verify the import in that same terminal with: python -c "from langchain_chroma import Chroma; print(Chroma)". If the command prints a class reference without an exception, the integration is importable. It does not yet verify that your embedding provider, persistent database, or application works.
In a notebook, install packages into the notebook kernel's environment rather than assuming it matches your terminal. A notebook cell containing %pip install -U langchain-chroma chromadb is a practical starting point. Restart the kernel afterward if imports still resolve to older packages.

Why from langchain.vectorstores import chroma causes confusion
Older LangChain examples commonly placed integrations under the main langchain package or the community integrations package. A project pinned to an older release may still have an import path that works there, while a newer environment may not. In some transitional setups, from langchain_community.vectorstores import Chroma can work if langchain-community is installed, but the dedicated integration is the better starting point for a migration.
There is also a capitalization trap. Python treats chroma and Chroma as different names. Importing a module does not automatically give you a variable named Chroma. If existing code calls Chroma(...), import the class explicitly rather than only changing the package path and leaving the lowercase name in place.
Avoid upgrading a production environment blindly. First capture its installed dependencies with python -m pip freeze, save the output, and make the change on a branch or in a fresh environment. Record the versions that pass your application's tests in its dependency configuration. An unrestricted upgrade can affect other LangChain integrations as well as Chroma.
Connect an embedding function and a collection
The import alone does not create searchable vectors. A typical setup needs an embedding implementation, a collection name, and optionally a directory for persisted data. In Python, the constructor pattern is Chroma(collection_name="docs", embedding_function=embeddings, persist_directory="./chroma_data"), where embeddings is an initialized LangChain-compatible embeddings object.
That object must implement the embedding interface expected by your installed integration. For example, an embeddings integration might provide methods for embedding documents and queries. Consult that provider's setup instructions for its package, model identifier, credentials if applicable, and any required runtime dependencies. Do not substitute a raw model name string for the initialized object unless the specific API says to do so.
Once the store is configured, you can add text through a supported method such as store.add_texts(["A short document about local search."]) and query it with store.similarity_search("local search", k=1), assuming the constructor result was assigned to store. This tiny example checks the plumbing, not retrieval quality. A one-document collection cannot tell you whether an embedding model will perform well on your actual corpus.

Preserve an existing index carefully
Before changing packages or opening an existing persistent directory, make a backup while the application is stopped. Then test against a copy of the data in an isolated environment. Chroma's storage formats and migration requirements depend on the versions involved; consult the relevant Chroma migration instructions rather than assuming that every old directory can be opened directly.
Keep the collection name and embedding configuration consistent. An existing collection may contain vectors produced by a particular model and preprocessing pipeline. Switching models can produce incompatible vector dimensions or, more subtly, matching dimensions that still represent a different embedding space. A successful query is not proof that the new embeddings are compatible with the stored ones.
If you change the embedding model, document chunking, or vector normalization, plan to rebuild the collection from source documents. Retain stable document IDs and metadata if your application relies on them, and validate a few known queries before directing traffic to the replacement. Persistence is useful for local development, but a directory on one machine is not a backup strategy by itself.
Troubleshoot the failure you actually see
A ModuleNotFoundError for langchain_chroma usually means the integration is missing from the active interpreter. Compare python -m pip show langchain-chroma with python -c "import sys; print(sys.executable)" and verify that your editor, shell, and notebook use the intended environment. Also check that your project does not contain a local file or directory named langchain_chroma that shadows the installed package.
An ImportError involving another LangChain module can indicate incompatible dependency versions rather than a missing Chroma installation. Inspect python -m pip check for declared dependency conflicts, then reproduce the issue in a clean environment with a compatible set of packages. Save the full traceback and version list before changing anything else.
If imports work but retrieval fails, separate the stages: initialize the embedding provider, embed a short text, create a fresh test collection, add one document, and run one query. Authentication errors, model-download failures, dimension mismatches, and database access errors need different fixes. This sequence tells you which boundary broke without treating every problem as an import problem.
Finally, use a small set of real queries and expected documents to check the migration. Compare the old and new setups with the same corpus, model, chunking, and query settings. Record any differences rather than assuming an import change improved search. The benchmark is the conversation starter, not the verdict.

No feedback yet — submit the first.