Comments (3)
retriever = MultiQueryRetriever(
retriever = myPineconeHybridSearchRetriever ,
llm_chain = llm_chain,
parser_key = "lines",
include_original = True,
)
like this
retriever = MultiQueryRetriever(
retriever = myPineconeHybridSearchRetriever ,
llm_chain = llm_chain,
parser_key = "lines",
include_original = True,
sparse_vector=sparse_vec,
top_k=self.top_k,
)
from langchain.
Let me see
from langchain.
The solution for me was to modify the PineconeHybridSearch class adding the search_kwargs:
search_kwargs: dict = Field(default_factory=lambda: dict(k=100))
"""Keyword arguments to pass to the vectorstore hybrid search."""
and then adding on the function _get_relevant_documents
result = self.index.query(
vector=dense_vec,
sparse_vector=sparse_vec,
top_k=self.top_k,
include_metadata=True,
**(self.search_kwargs if self.search_kwargs is not None else {}),
)
You can also have a custom class but I prefer modify this as temp solution
from langchain.
Related Issues (20)
- Getting langsmith module not found error whenever running langchain Runnable invoke / batch()
- SharepointLoader not working as intended despite latest merge 'propagation of document metadata from O365BaseLoader' HOT 1
- PromptTemplate.input_types is ignored on validation
- AttributeError: 'AzureOpenAI' object has no attribute 'bind_tools' HOT 1
- Langchain YouTube audio loader duplicating transcripts
- ChatDatabricks can't stream response: "KeyError: 'content'" HOT 1
- unable to install langchain-google-genai in python 3.9.0
- `AzureAIDocumentIntelligenceLoader` throws 404 Resource not found error
- DOC: NameError due to Incorrect Variable Name in PDF QA Tutorial Documentation HOT 2
- Python 3.12.4 is incompatible with pydantic.v1 as of pydantic==2.7.3 HOT 9
- Higgs Domino APK Unduh Gratis Versi Terbaru Untuk Android 2024
- ValidationError: 2 validation errors for LLMChain
- Error in LangChainTracer.on_tool_end callback HOT 4
- Partners: Issues with `Streaming` and MistralAI `ainvoke` and `Callbacks` Not Working
- Bug: `AgentExecutor` doesn't use its local callbacks during planning HOT 1
- Rohit HOT 14
- Scheduled GitHub Actions Running on Forked Repositories HOT 1
- Initializing a LLM using HuggingFacePipeline.from_model_id crashes Google Colab HOT 5
- Error while running graph.query(movies_query) with Python v3.12.4 HOT 4
- Fix stop list of string in VLLM generate HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from langchain.