mirror of
https://github.com/hwchase17/langchain.git
synced 2025-07-05 20:58:25 +00:00
docs: Fix Milvus vector store initialization (#29511)
- [x] **PR title**: - [x] **PR message**: - A change in the Milvus API has caused an issue with the local vector store initialization. Having used an Ollama embedding model, the vector store initialization results in the following error: <img width="978" alt="image" src="https://github.com/user-attachments/assets/d57e495c-1764-4fbe-ab8c-21ee44f1e686" /> - This is fixed by setting the index type explicitly: `vector_store = Milvus(embedding_function=embeddings, connection_args={"uri": URI}, index_params={"index_type": "FLAT", "metric_type": "L2"},)` Other small documentation edits were also made. - [x] **Add tests and docs**: N/A - [x] **Lint and test**: Run `make format`, `make lint` and `make test` from the root of the package(s) you've modified. See contribution guidelines for more: https://python.langchain.com/docs/contributing/ Additional guidelines: - Make sure optional dependencies are imported within a function. - Please do not add dependencies to pyproject.toml files (even optional ones) unless they are required for unit tests. - Most PRs should not touch more than one package. - Changes should be backwards compatible. - If you are adding something to community, do not re-import it in langchain. If no one reviews your PR within a few days, please @-mention one of baskaryan, efriis, eyurtsev, ccurme, vbarda, hwchase17. --------- Co-authored-by: Chester Curme <chester.curme@gmail.com>
This commit is contained in:
parent
0c405245c4
commit
b8e218b09f