mirror of
https://github.com/hwchase17/langchain
synced 2024-10-29 17:07:25 +00:00
440c98e24b
## Background fixes #2695 ## Changes The `add_text` method uses the internal embedding function if one was passes to the `Weaviate` constructor. NOTE: the latest merge on the `Weaviate` class made the specification of a `weaviate_api_key` mandatory which might not be desirable for all users and connection methods (for example weaviate also support Embedded Weaviate which I am happy to add support to here if people think it's desirable). I wrapped the fetching of the api key into a try catch in order to allow the `weaviate_api_key` to be unspecified. Do let me know if this is unsatisfactory. ## Test Plan added test for `add_texts` method. |
||
---|---|---|
.. | ||
TestWeaviate.test_max_marginal_relevance_search_by_vector.yaml | ||
TestWeaviate.test_max_marginal_relevance_search_with_filter.yaml | ||
TestWeaviate.test_max_marginal_relevance_search.yaml | ||
TestWeaviate.test_similarity_search_with_metadata_and_filter.yaml | ||
TestWeaviate.test_similarity_search_with_metadata.yaml | ||
TestWeaviate.test_similarity_search_without_metadata.yaml |