mirror of
https://github.com/hwchase17/langchain
synced 2024-11-08 07:10:35 +00:00
edd68e4ad4
## Description This PR introduces the new `langchain-qdrant` partner package, intending to deprecate the community package. ## Changes - Moved the Qdrant vector store implementation `/libs/partners/qdrant` with integration tests. - The conditional imports of the client library are now regular with minor implementation improvements. - Added a deprecation warning to `langchain_community.vectorstores.qdrant.Qdrant`. - Replaced references/imports from `langchain_community` with either `langchain_core` or by moving the definitions to the `langchain_qdrant` package itself. - Updated the Qdrant vector store documentation to reflect the changes. ## Testing - `QDRANT_URL` and [`QDRANT_API_KEY`](583e36bf6b
) env values need to be set to [run integration tests](d608c93d1f
) in the [cloud](https://cloud.qdrant.tech). - If a Qdrant instance is running at `http://localhost:6333`, the integration tests will use it too. - By default, tests use an [`in-memory`](https://github.com/qdrant/qdrant-client?tab=readme-ov-file#local-mode) instance(Not comprehensive). --------- Co-authored-by: Erick Friis <erick@langchain.dev> Co-authored-by: Erick Friis <erickfriis@gmail.com>
18 lines
399 B
Bash
Executable File
18 lines
399 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -eu
|
|
|
|
# Initialize a variable to keep track of errors
|
|
errors=0
|
|
|
|
# make sure not importing from langchain or langchain_experimental
|
|
git --no-pager grep '^from langchain\.' . && errors=$((errors+1))
|
|
git --no-pager grep '^from langchain_experimental\.' . && errors=$((errors+1))
|
|
|
|
# Decide on an exit status based on the errors
|
|
if [ "$errors" -gt 0 ]; then
|
|
exit 1
|
|
else
|
|
exit 0
|
|
fi
|