Skip to content

Commit b8e218b

Browse files
markperfectccurme
andauthored
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 <[email protected]>
1 parent 0c40524 commit b8e218b

File tree

1 file changed

+597
-538
lines changed

1 file changed

+597
-538
lines changed

0 commit comments

Comments
 (0)