Jen Hamon a9fedf08ab fix(embeddings): use query_params in aembed_query
The async `aembed_query` was passing `self.document_params` (input_type:
"passage") to `_aembed_texts` while the sync `embed_query` correctly passes
`self.query_params` (input_type: "query"). This caused async query embeddings
to be embedded as passages, which degrades retrieval quality for async callers.

Change `parameters=self.document_params` to `parameters=self.query_params` in
`PineconeEmbeddings.aembed_query` (one line). The sparse twin
`PineconeSparseEmbeddings.aembed_query` already used `query_params` correctly.

Add three regression tests in `TestQueryParamsParity`:
- `test_embed_query_uses_query_params` — pins the sync contract
- `test_aembed_query_uses_query_params` — fails before the fix, passes after
- `test_sparse_aembed_query_uses_query_params` — pins the sparse async contract
2026-06-12 19:41:38 +00:00
2026-05-18 17:52:13 -05:00
2025-04-26 13:00:39 +04:00
2025-02-18 14:39:23 -05:00
2025-02-19 12:10:01 -05:00

🦜🔗 LangChain Pinecone

This repository contains 1 package with Pinecone integrations with LangChain:

S
Description
Build LangChain applications with Pinecone
Readme MIT 6.3 MiB
Latest
2025-11-02 14:01:07 -05:00
Languages
Python 99.1%
Makefile 0.8%
Shell 0.1%