Fixes #8310 Fix maximum recursion depth exceeded error (#8313)

ElasticsearchVectorStore.as_retriever() method is returning 
`RecursionError: maximum recursion depth exceeded` 
because of incorrect field reference in
 `embeddings()` method

  - Description: Fix RecursionError because of a typo
  - Issue: the issue #8310 
  - Dependencies: None,
  - Tag maintainer: @eyurtsev
  - Twitter handle: bpatel
This commit is contained in:
Bharat 2023-07-26 12:15:37 -07:00 committed by GitHub
parent b9db3dd09b
commit 04a4d3e312
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -155,7 +155,7 @@ class ElasticVectorSearch(VectorStore, ABC):
@property
def embeddings(self) -> Embeddings:
return self.embeddings
return self.embedding
def add_texts(
self,