Skip to content
This repository has been archived by the owner on Apr 3, 2024. It is now read-only.

PineconeHybridSearchRetriever having problem #35

Open
ccccherrie opened this issue Apr 17, 2023 · 0 comments
Open

PineconeHybridSearchRetriever having problem #35

ccccherrie opened this issue Apr 17, 2023 · 0 comments

Comments

@ccccherrie
Copy link

retriever = PineconeHybridSearchRetriever(embeddings=embeddings, index=index, tokenizer=CharacterTextSplitter)
result = retriever.get_relevant_documents(given_str)
gives TypeError: init() got an unexpected keyword argument 'padding'
with bm25_encoder
retriever = PineconeHybridSearchRetriever(embeddings=embeddings, index=index, tokenizer=CharacterTextSplitter , sparse_encoder=bm25_encoder)
it gives
ValidationError: 1 validation error for PineconeHybridSearchRetriever
sparse_encoder
extra fields not permitted (type=value_error.extra)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant