Chandan Routray
bc875a9df1
Fixed multi input prompt for MapReduceChain ( #4979 )
...
# Fixed multi input prompt for MapReduceChain
Added `kwargs` support for inner chains of `MapReduceChain` via
`from_params` method
Currently the `from_method` method of intialising `MapReduceChain` chain
doesn't work if prompt has multiple inputs. It happens because it uses
`StuffDocumentsChain` and `MapReduceDocumentsChain` underneath, both of
them require specifying `document_variable_name` if `prompt` of their
`llm_chain` has more than one `input`.
With this PR, I have added support for passing their respective `kwargs`
via the `from_params` method.
## Fixes https://github.com/hwchase17/langchain/issues/4752
## Who can review?
@dev2049 @hwchase17 @agola11
---------
Co-authored-by: imeckr <chandanroutray2012@gmail.com>
2023-06-03 14:41:03 -07:00
Harrison Chase
c4b502a470
Harrison/condense q llm ( #5438 )
2023-05-30 07:15:37 -07:00
David Peterson
d5d4c0a172
Update summarize.ipynb ( #4529 )
...
# Update order in which tasks are stated (logically correct)
Fixes the order in which steps are placed under titles.
@vowelparrot
2023-05-16 18:14:00 -07:00
Ankush Gola
d3ec00b566
Callbacks Refactor [base] ( #3256 )
...
Co-authored-by: Nuno Campos <nuno@boringbits.io>
Co-authored-by: Davis Chase <130488702+dev2049@users.noreply.github.com>
Co-authored-by: Zander Chase <130414180+vowelparrot@users.noreply.github.com>
Co-authored-by: Harrison Chase <hw.chase.17@gmail.com>
2023-04-30 11:14:09 -07:00
erwanlc
72c5c15f7f
Fix: Updated links for in depth explanation of chain types in the Question Answering notebooks ( #3714 )
...
In the notebook question_answering.ipynb
([link](https://github.com/hwchase17/langchain/blob/master/docs/modules/chains/index_examples/question_answering.ipynb )),
and the notebook qa_with_sources.ipynb
([link](https://github.com/hwchase17/langchain/blob/master/docs/modules/chains/index_examples/qa_with_sources.ipynb )),
the first paragraph contains a dead link:
> This notebook walks through how to use LangChain for question
answering over a list of documents. It covers four different types of
chains: stuff, map_reduce, refine, map_rerank. For a more in depth
explanation of what these chain types are, see
[here](32793f94fd/docs/modules/chains/combine_docs.md
).
The file combine_docs.md doesn't exist anymore and thus provide 404 -
Page not found.
I updated the links so it redirect to
https://docs.langchain.com/docs/components/chains/index_related_chains
as in the summarize notebook
([link](https://github.com/hwchase17/langchain/blob/master/docs/modules/chains/index_examples/summarize.ipynb ))
present in the same folder.
2023-04-28 15:06:46 -07:00
Harrison Chase
bee59b4689
Updated missing refactor in docs "return_map_steps" ( #2956 ) ( #3469 )
...
Minor rename in the documentation that was overlooked when refactoring.
---------
Co-authored-by: Ehmad Zubair <ehmad@cogentlabs.co>
2023-04-24 22:28:47 -07:00
Harrison Chase
675d86aa11
show how to use memory in convo chain ( #3463 )
2023-04-24 13:29:51 -07:00
Ankush Gola
b82cbd1be0
Use run
and arun
in place of combine_docs
and acombine_docs
( #2635 )
...
`combine_docs` does not go through the standard chain call path which
means that chain callbacks won't be triggered, meaning QA chains won't
be traced properly, this fixes that.
Also fix several errors in the chat_vector_db notebook
2023-04-09 18:47:59 -07:00
Ankush Gola
61f7bd7a3a
fix question answering nb ( #2637 )
...
Was throwing exception bc `VectorIndexWrapper` did not have
`similarity_search` -- changed to just use retriever
2023-04-09 17:56:49 -07:00
Roy Xue
f5afb60116
doc: change comment with correct name ( #2580 )
...
In this comment, it should be **ConversationalRetrievalChain** instead
of **ChatVectorDBChain**
2023-04-08 08:31:33 -07:00
Harrison Chase
27f80784d0
fix link ( #2123 )
2023-03-28 22:51:36 -07:00
Krulknul
5e91928607
Added .as_retriever()
to from_llm()
calls ( #2051 )
2023-03-27 15:04:03 -07:00
Harrison Chase
705431aecc
big docs refactor ( #1978 )
...
Co-authored-by: Ankush Gola <ankush.gola@gmail.com>
2023-03-26 19:49:46 -07:00