Skip to content

Commit 5a4cf51

Browse files
pjoshi30Preetam Joshi
andauthored
Fixing bug in analyze_prod decorator to set the application stage to prod (#33)
* 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 <info@aimon.ai> 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 * Fixing context parsing issue with analyze_eval decorator * Updating application to production in the analyze_prod decorator * Updating SDK to handle instructions in evaluation and continuous monitoring. * Deleting old notebook * Fixing usability issues in the chatbot. Organizing examples a bit better. * Adding analyze to the chatbot * Fixing readme and adding instruction bar at the bottom * Reverting the IA text box to be back on the top of the page * Moving the IA text box back to the top of the page. * Fixing bug in analyze_prod decorator to set the application stage to prod --------- Co-authored-by: Preetam Joshi <info@aimon.ai>
1 parent c51c472 commit 5a4cf51

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

aimon/decorators/analyze.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,9 +154,8 @@ def __init__(self, application, model, values_returned, api_key=None, config=Non
154154
:param values_returned: A list of values in the order returned by the decorated function
155155
Acceptable values are 'generated_text', 'context', 'user_query', 'instructions'
156156
"""
157-
157+
application.stage = "production"
158158
super().__init__(application, model, api_key, config)
159-
self.application.stage = "production"
160159
self.values_returned = values_returned
161160
if self.values_returned is None or len(self.values_returned) == 0:
162161
raise ValueError("Values returned by the decorated function must be specified")

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
name='aimon',
99
python_requires='>3.8.0',
1010
packages=find_packages(),
11-
version="0.7.0",
11+
version="0.7.1",
1212
install_requires=[
1313
"httpx",
1414
"distro",

0 commit comments

Comments
 (0)