mirror of
https://github.com/hwchase17/langchain.git
synced 2025-08-12 22:28:03 +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
|
||||
|
||||
def _get_relevant_documents(
|
||||
self, query: str, *, run_manager: CallbackManagerForRetrieverRun
|
||||
self, query: str, *, run_manager: CallbackManagerForRetrieverRun, **kwargs: Any
|
||||
) -> List[Document]:
|
||||
from pinecone_text.hybrid import hybrid_convex_scale
|
||||
|
||||
@ -169,6 +169,7 @@ class PineconeHybridSearchRetriever(BaseRetriever):
|
||||
top_k=self.top_k,
|
||||
include_metadata=True,
|
||||
namespace=self.namespace,
|
||||
**kwargs,
|
||||
)
|
||||
final_result = []
|
||||
for res in result["matches"]:
|
||||
|
Loading…
Reference in New Issue
Block a user