From 672ef77a16c973375cce7e5dbbcc96bb580290f9 Mon Sep 17 00:00:00 2001 From: Preetam Joshi Date: Tue, 30 Jul 2024 15:03:53 -0700 Subject: [PATCH] Updated Notebook. (#25) * Initial commit Adding the Aimon Rely README, images, the postman collection, a simple client and examples. A few small changes for error handling in the client and the example application. Getting the Aimon API key from the streamlit app updating README Updating langchain example gif Updating API endpoint Adding V2 API with support for conciseness, completeness and toxicity checks (#1) * Adding V2 API with support for conciseness, completeness and toxicity checks. * Removing prints and updating config for the example application. * Updating README --------- Co-authored-by: Preetam Joshi Updating postman collection Fixed the simple aimon client's handling of batch requests. Updated postman collection. Added support for a user_query parameter in the input data dictionary. Updating readme Fixed bug in the example app Uploading client code Adding more convenience APIs Fixing bug in create_dataset Added Github actions config to publish to PyPI. Cleaned up dependencies and updated documentation. Fixing langchain example Fixing doc links Formatting changes Changes for aimon-rely * Adding instruction adherence and hallucination v0.2 to the client Updating git ignore Adding more to gitignore Removing .idea files * Fixing doc string * Updating documentation * Updating Client to use V3 API * Fixing test * Updating tests * Updating documentation in the client * Adding .streamlit dir to .gitignore * initial version of decorators for syntactic sugar * A few more changes * updating analyze and detect decorators * Adding new notebooks * Fixing bug in analyze decorator * Updating Detect decorator to make it simpler. Adding Metaflow example. Adding documentation for the chatbot. * fixing chatbot example * Fixed issue in detect decorator. Improved code organization. * fixed typo * Updated the decorators with a more cleaner interface. Added a metaflow analyze example. * Updated version * Updated Notebook --------- Co-authored-by: Preetam Joshi --- .../aimon_decorators_langchain_summarization_0_5_0.ipynb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/examples/notebooks/aimon_decorators_langchain_summarization_0_5_0.ipynb b/examples/notebooks/aimon_decorators_langchain_summarization_0_5_0.ipynb index b39859e..8e4bbff 100644 --- a/examples/notebooks/aimon_decorators_langchain_summarization_0_5_0.ipynb +++ b/examples/notebooks/aimon_decorators_langchain_summarization_0_5_0.ipynb @@ -77,8 +77,9 @@ "\n", "# The analyze_eval decorator will automatically stream through\n", "# records in the specified data collection and run it against \n", - "# this function. The eval_obj is a required parameter that will be\n", - "# popular by the analyze_eval decorator\n", + "# this function. The signature of this function should necessarily \n", + "# contain context_docs, user_query and prompt as the first 3 \n", + "# arguments.\n", "@analyze_eval\n", "def run_application_eval_mode(context_docs=None, user_query=None, prompt=None, my_arg=None):\n", " # Split the source text\n",