fix(pinecone): pass namespace to similarity_search - #13854
Conversation
|
Important Review skippedAuto incremental reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
WalkthroughPineconeVectorStoreComponent.search_documents() now passes its namespace to similarity_search(). A new regression test module checks forwarded namespaces for both populated and empty-string values. ChangesPinecone namespace forwarding
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related issues
🚥 Pre-merge checks | ✅ 8 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (8 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
d257848 to
e3fdf16
Compare
jashwanth-reddy-g
left a comment
There was a problem hiding this comment.
This looks great. Passing the namespace to similarity_search fixes the bug where searches would incorrectly default to the empty namespace regardless of component configuration. The accompanying regression test is clear and ensures this won't regress. LGTM!
search_documents() was calling similarity_search() without forwarding the namespace parameter, so searches always hit the default namespace regardless of the value configured by the user. Fixes langflow-ai#9188 Signed-off-by: Radhakrishnan Pachyappan <gingeekrishna@gmail.com>
2fcf971 to
596181d
Compare
Summary
search_documents()was callingsimilarity_search()without forwarding thenamespaceparameternamespace=self.namespaceto thesimilarity_search()callFixes #9188
Test plan
test_pinecone_vector_store_component.pywith two regression tests:similarity_searchis called withnamespace=self.namespacefor a named namespaceSummary by CodeRabbit