langchain/tests/unit_tests
Prerit Das 2747ccbcf1
Allow custom base Zapier prompt (#4213)
Currently, all Zapier tools are built using the pre-written base Zapier
prompt. These small changes (that retain default behavior) will allow a
user to create a Zapier tool using the ZapierNLARunTool while providing
their own base prompt.

Their prompt must contain input fields for zapier_description and
params, checked and enforced in the tool's root validator.

An example of when this may be useful: user has several, say 10, Zapier
tools enabled. Currently, the long generic default Zapier base prompt is
attached to every single tool, using an extreme number of tokens for no
real added benefit (repeated). User prompts LLM on how to use Zapier
tools once, then overrides the base prompt.

Or: user has a few specific Zapier tools and wants to maximize their
success rate. So, user writes prompts/descriptions for those tools
specific to their use case, and provides those to the ZapierNLARunTool.

A consideration - this is the simplest way to implement this I could
think of... though ideally custom prompting would be possible at the
Toolkit level as well. For now, this should be sufficient in solving the
concerns outlined above.
2023-05-13 21:08:18 -07:00
..
agents Load HuggingFace Tool (#4475) 2023-05-11 00:07:36 -07:00
callbacks [Breaking] Refactor Base Tracer(#4549) 2023-05-13 17:23:56 +00:00
chains Callbacks Refactor [base] (#3256) 2023-04-30 11:14:09 -07:00
chat_models Add ChatModel, LLM, and Embeddings for Google's PaLM APIs (#3575) 2023-05-01 15:23:16 -07:00
client [Breaking] Refactor Base Tracer(#4549) 2023-05-13 17:23:56 +00:00
data Prompt from file proof of concept using plain text (#127) 2022-11-13 13:15:30 -08:00
docstore Add DocstoreFn - lookup doc via arbitrary function (#3760) 2023-04-28 19:50:32 -07:00
document_loader Fix #4087 by setting the correct csv dialect (#4103) 2023-05-13 20:35:01 -07:00
evaluation Adding an in-context QA evaluation chain + chain of thought reasoning chain for improved accuracy (#2444) 2023-04-06 22:32:41 -07:00
llms Add Invocation Params (#4509) 2023-05-11 15:34:06 -07:00
memory Harrison/combined memory (#3935) 2023-05-01 20:55:56 -07:00
output_parsers Add _type for all parsers (#4189) 2023-05-11 01:27:58 -07:00
prompts Validate input_variables when using jinja2 templates (#3140) 2023-04-19 16:18:32 -07:00
retrievers Fix self query pinecone translation (#3892) 2023-05-01 10:35:48 -07:00
tools Allow custom base Zapier prompt (#4213) 2023-05-13 21:08:18 -07:00
utilities Add Tenant ID to V2 Tracer (#4135) 2023-05-04 21:35:20 -07:00
vectorstores fix #3884 (#3475) 2023-04-24 19:54:15 -07:00
__init__.py initial commit 2022-10-24 14:51:15 -07:00
conftest.py Add pytest --only-extended and --only-core options (#4494) 2023-05-12 11:35:22 -04:00
test_bash.py Skip flaky unit test (#4591) 2023-05-12 11:54:40 -07:00
test_depedencies.py Add unit-test to catch changes to required deps (#3662) 2023-04-27 13:04:17 -04:00
test_document_transformers.py Contextual compression retriever (#2915) 2023-04-20 17:01:14 -07:00
test_formatting.py initial commit 2022-10-24 14:51:15 -07:00
test_math_utils.py Contextual compression retriever (#2915) 2023-04-20 17:01:14 -07:00
test_python.py option for csv agent to not include df in prompt (#4610) 2023-05-12 21:55:22 -07:00
test_schema.py [simple][test] Added test case for schema.py (#3692) 2023-04-28 20:42:24 -07:00
test_sql_database_schema.py Suppress duckdb warning in unit tests explicitly (#3653) 2023-04-27 14:29:41 -04:00
test_sql_database.py sql: do not hard code the LIMIT clause in the table_info section (#1563) 2023-03-13 23:08:27 -07:00
test_text_splitter.py Add unit test for _merge_splits function (#3513) 2023-04-25 10:02:59 -07:00