langchain/tests
Luis 562d9891ea
Add regex dict: (#1616)
This class enables us to send a dictionary containing an output key and
the expected format, which in turn allows us to retrieve the result of
the matching formats and extract specific information from it.

To exclude irrelevant information from our return dictionary, we can
prompt the LLM to use a specific command that notifies us when it
doesn't know the answer. We refer to this variable as the
"no_update_value".

Regarding the updated regular expression pattern
(r"{}:\s?([^.'\n']*).?"), it enables us to retrieve a format as 'Output
Key':'value'.

We have improved the regex by adding an optional space between ':' and
'value' with "s?", and by excluding points and line jumps from the
matches using "[^.'\n']*".
2023-03-13 23:05:39 -07:00
..
integration_tests Add support for intermediate steps to SQLDatabaseSequentialChain (#1583) (#1601) 2023-03-11 15:44:41 -08:00
unit_tests Add regex dict: (#1616) 2023-03-13 23:05:39 -07:00
__init__.py initial commit 2022-10-24 14:51:15 -07:00