ChatBot langchain, установите память+retriever+map_reducePython

Программы на Python
Гость
ChatBot langchain, установите память+retriever+map_reduce

Сообщение Гость »


I am new on this topics.I'd like to get a chain that allows me to use a retriever ,a memory and to set the chain_type = 'map_reduce'.In addition to that I'd like to know if is it possible to use the map_reduce only in the case in which the number of token exceeds the limit.Thanks in advice.

I tried to use the 'ConversationalRetrievalChain.from_llm' or 'RetrievalQA.from_llm' but I'm not figuring out how to combine the different functions of the chains.


Источник: https://stackoverflow.com/questions/780 ... map-reduce

Вернуться в «Python»