mirror of
https://github.com/hwchase17/langchain.git
synced 2025-08-13 14:50:00 +00:00
community(patch):Fix PineconeHynridSearchRetriever not having search_kwargs (#21577)
- close #21521
This commit is contained in:
parent
4bb3d5c488
commit
3c42bf8d97
@ -152,7 +152,7 @@ class PineconeHybridSearchRetriever(BaseRetriever):
|
|||||||
return values
|
return values
|
||||||
|
|
||||||
def _get_relevant_documents(
|
def _get_relevant_documents(
|
||||||
self, query: str, *, run_manager: CallbackManagerForRetrieverRun
|
self, query: str, *, run_manager: CallbackManagerForRetrieverRun, **kwargs: Any
|
||||||
) -> List[Document]:
|
) -> List[Document]:
|
||||||
from pinecone_text.hybrid import hybrid_convex_scale
|
from pinecone_text.hybrid import hybrid_convex_scale
|
||||||
|
|
||||||
@ -169,6 +169,7 @@ class PineconeHybridSearchRetriever(BaseRetriever):
|
|||||||
top_k=self.top_k,
|
top_k=self.top_k,
|
||||||
include_metadata=True,
|
include_metadata=True,
|
||||||
namespace=self.namespace,
|
namespace=self.namespace,
|
||||||
|
**kwargs,
|
||||||
)
|
)
|
||||||
final_result = []
|
final_result = []
|
||||||
for res in result["matches"]:
|
for res in result["matches"]:
|
||||||
|
Loading…
Reference in New Issue
Block a user