Leonid Ganeline
2f2b77602e
docs: modules descriptions ( #17844 )
...
Several `core` modules do not have descriptions, like the
[agent](https://api.python.langchain.com/en/latest/core_api_reference.html#module-langchain_core.agents )
module.
- Added missed module descriptions. The descriptions are mostly copied
from the `langchain` or `community` package modules.
2024-02-21 15:58:21 -08:00
Bagatur
e510cfaa23
core[patch]: passthrough BaseRetriever.invoke(**kwargs) ( #16551 )
...
Fix for #16547
2024-01-25 08:58:39 -08:00
Nuno Campos
eb5e250188
Propagate context vars in all classes/methods
...
- Any direct usage of ThreadPoolExecutor or asyncio.run_in_executor needs manual handling of context vars
2023-12-29 12:34:03 -08:00
Nuno Campos
f36ef0739d
Add create_conv_retrieval_chain func ( #15084 )
...
```
+----------+
| MapInput |
**+----------+****
**** ****
**** ***
** ****
+------------------------------------+ **
| Lambda(itemgetter('chat_history')) | *
+------------------------------------+ *
* *
* *
* *
+---------------------------+ +--------------------------------+
| Lambda(_get_chat_history) | | Lambda(itemgetter('question')) |
+---------------------------+ +--------------------------------+
* *
* *
* *
+----------------------------+ +------------------------+
| ContextSet('chat_history') | | ContextSet('question') |
+----------------------------+ +------------------------+
**** ****
**** ****
** **
+-----------+
| MapOutput |
+-----------+
*
*
*
+----------------+
| PromptTemplate |
+----------------+
*
*
*
+-------------+
| FakeListLLM |
+-------------+
*
*
*
+-----------------+
| StrOutputParser |
+-----------------+
*
*
*
+----------------------------+
| ContextSet('new_question') |
+----------------------------+
*
*
*
+---------------------+
| SequentialRetriever |
+---------------------+
*
*
*
+------------------------------------+
| Lambda(_reduce_tokens_below_limit) |
+------------------------------------+
*
*
*
+-------------------------------+
| ContextSet('input_documents') |
+-------------------------------+
*
*
*
+----------+
***| MapInput |****
******* +----------+ ********
******** * *******
******* * ********
**** * ****
+-------------------------------+ +----------------------------+ +----------------------------+
| ContextGet('input_documents') | | ContextGet('chat_history') | | ContextGet('new_question') |
+-------------------------------+**** +----------------------------+ +----------------------------+
********* * *******
******** * ******
***** * ****
+-----------+
| MapOutput |
+-----------+
*
*
*
+-------------+
| FakeListLLM |
+-------------+
*
*
*
+----------+
***| MapInput |***
******** +----------+ ******
******* * *****
******** * ******
**** * ***
+-------------------------------+ +----------------------------+ +-------------+
| ContextGet('input_documents') | | ContextGet('new_question') | **| Passthrough |
+-------------------------------+ +----------------------------+ ******* +-------------+
******* * ******
****** * *******
**** * ****
+-----------+
| MapOutput |
+-----------+
```
---------
Co-authored-by: Harrison Chase <hw.chase.17@gmail.com>
2023-12-26 17:28:10 -08:00
Bagatur
d32e511826
REFACTOR: Refactor langchain_core ( #13627 )
...
Changes:
- remove langchain_core/schema since no clear distinction b/n schema and
non-schema modules
- make every module that doesn't end in -y plural
- where easy have 1-2 classes per file
- no more than one level of nesting in directories
- only import from top level core modules in langchain
2023-11-21 08:35:29 -08:00