Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove all references to weaviate in the langchain_community package #29753

Closed

Conversation

hsm207
Copy link
Contributor

@hsm207 hsm207 commented Feb 12, 2025

Remove all references to Weaviate in the langchain_community package.

  • Delete Files:

    • Delete libs/community/langchain_community/query_constructors/weaviate.py
    • Delete libs/community/langchain_community/retrievers/weaviate_hybrid_search.py
    • Delete libs/community/langchain_community/vectorstores/weaviate.py
    • Delete libs/community/tests/integration_tests/retrievers/test_weaviate_hybrid_search.py
    • Delete libs/community/tests/integration_tests/vectorstores/test_weaviate.py
    • Delete libs/community/tests/unit_tests/query_constructors/test_weaviate.py
  • Modify Files:

    • In libs/community/tests/unit_tests/vectorstores/test_imports.py, remove Weaviate from the EXPECTED_ALL list.
    • In libs/community/langchain_community/retrievers/__init__.py, remove the import statement for WeaviateHybridSearchRetriever, and remove WeaviateHybridSearchRetriever from the _module_lookup dictionary and __all__ list.
    • In libs/community/langchain_community/vectorstores/__init__.py, remove the import statement for Weaviate, and remove Weaviate from the _module_lookup dictionary and __all__ list.
    • In libs/langchain/tests/unit_tests/vectorstores/test_public_api.py, remove mention of Weaviate.

Remove all references to Weaviate in the `langchain_community` package.

* **Delete Files:**
  - Delete `libs/community/langchain_community/query_constructors/weaviate.py`
  - Delete `libs/community/langchain_community/retrievers/weaviate_hybrid_search.py`
  - Delete `libs/community/langchain_community/vectorstores/weaviate.py`
  - Delete `libs/community/tests/integration_tests/retrievers/test_weaviate_hybrid_search.py`
  - Delete `libs/community/tests/integration_tests/vectorstores/test_weaviate.py`
  - Delete `libs/community/tests/unit_tests/query_constructors/test_weaviate.py`

* **Modify Files:**
  - In `libs/community/tests/unit_tests/vectorstores/test_imports.py`, remove `Weaviate` from the `EXPECTED_ALL` list.
  - In `libs/community/langchain_community/retrievers/__init__.py`, remove the import statement for `WeaviateHybridSearchRetriever`, and remove `WeaviateHybridSearchRetriever` from the `_module_lookup` dictionary and `__all__` list.
  - In `libs/community/langchain_community/vectorstores/__init__.py`, remove the import statement for `Weaviate`, and remove `Weaviate` from the `_module_lookup` dictionary and `__all__` list.
  - In `libs/langchain/tests/unit_tests/vectorstores/test_public_api.py`, remove mention of `Weaviate`.
Copy link

vercel bot commented Feb 12, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
langchain ⬜️ Ignored (Inspect) Visit Preview Feb 12, 2025 9:14am

@dosubot dosubot bot added size:XXL This PR changes 1000+ lines, ignoring generated files. community Related to langchain-community Ɑ: retriever Related to retriever module Ɑ: vector store Related to vector store module labels Feb 12, 2025
@hsm207 hsm207 closed this Feb 12, 2025
@hsm207 hsm207 deleted the remove-weaviate-references branch February 12, 2025 09:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
community Related to langchain-community Ɑ: retriever Related to retriever module size:XXL This PR changes 1000+ lines, ignoring generated files. Ɑ: vector store Related to vector store module
Projects
Status: Closed
Development

Successfully merging this pull request may close these issues.

1 participant