Spaces:
Runtime error
Runtime error
Commit History
-
updated the latestcontent of:
Roland Dingrevised the UI of the app to add dropdown for IFU added features for incorporating IFU data in prompting updated upload conditions as per latest search_term sheet. On branch main Changes to be committed: modified: __pycache__/supplier.cpython-310.pyc modified: __pycache__/utility.cpython-310.pyc modified: backend_update.ipynb modified: chains.py modified: features.py modified: ui_study.py498a219
-
updated the chains.py by llm retry number and async_generate error message
Roland Ding3a74227 -
revised the async_generate from chains.py
Roland Dingremoved the retry_decorator from async_generate. async_generate will now add the timeout error message in the output instead of retrying. On branch main Changes to be committed: modified: chains.py5cef2da
-
use llm from chains.py as universal AI agent.
Roland Ding721214f
-
11.11.27.77
Roland Dingupdated as per request 2023-11-23 + added pre_view table heading and others extension + updated the assessment categories to lower cases. + added logic to the article revision. + extended the task generation into input_variables and chat_prompt generation functions. + added reformat_instruction function to the application.py due to generalized instruction format. On branch main Changes to be committed: modified: .data/instruction_agg_performance.json modified: application.py modified: backend_update.ipynb modified: chains.py modified: features.pyc769f48
-
miscellaneous update
Roland Dingd1682ed -
11.11.27.77 major update
Roland Dingfeatures: + all features revised to align with the latest prompts and terms structure from aws cloud (search term v 14i) + added gen_task for post_process and execute_concurrent to declutter the code + optimized the async generation to generalize its functionality and remove the cluttering code. + removed gen_segment and uses async_generation for segment generation and post_process. + revised the term validation + removed unused functions like execute_prompts, run_gpt, f_replacement_term, f_summary_term, run_executor + revised the post_process to make it run async. external: + updated openai llm instance with retries and timeout to avoid the extensive wait and hitting rate limit issue. data: + added current and term in the session data to resolve the issue of consecutive prompts were called but not triggered by any terms. ui: + simplified the detailed siplay view to show only the aggregated result. On branch main Changes to be committed: modified: application.py modified: cha…8dfdf87 -
code optimizatio, remove unused function, ui object and added update for study page dropdon update after refresh.
Roland Dinge61d4b7
-
11.10.26.76
Roland Dingupdated the backend_update.ipynb for including lab content added the article.py for the article classes and instruction for the instruction classes Changes to be committed: modified: article.py modified: backend_update.ipynb modified: instruction.py38511f7 -
updated langchain to 0.0.338 for resolving vulnarbilities.
Roland Dingecc12d7 -
Major backend_update
Roland DingUI update: + Revised ui_studies to: - show all studies articles - added control for multiple files upload + Revised ui_study to: - update the article list in real time - realigned the layout to make it more compact Features: + added backend methods to upload multiple files + added post_process function to execute Futable commends + added retry_decorator for retrying failed openai inquiries + touchup for including futable results in extraction list for display + changed extraction collections to set + move the llm instance to global in chains.py + added root message for agent declaration before the first inquiry Cloud: + updated get table for handling pagination. Others: + touchup remove_symbols in utility.py for better filtering article content and characters. cleanup: + removed cloud_textract.py On branch main Changes to be committed: modified: chains.py modified: cloud_db.py deleted: cloud_textract.py modified: features.py modified: ui_studies…fdccd1a
-
minor update to fix requirements.txt langchain version conflict
Roland DingChanges to be committed: modified: requirements.txt352e336 -
7.8.19.49 incorporated the post process for Futable
Roland Dingadded post_process for Futable table. Changes to be committed: new file: .data/instruction_agg_performance.json modified: features.py01dc0c9
-
Merge branch 'OOD'
Roland Ding83e89b9 -
checkpoint
Roland Dingupdated backend_update.ipynb for getting data from dynamodb. On branch main Changes to be committed: modified: backend_update.ipynbcfc4cd1
-
updated the utility for a quick bug fix
Roland DingChanges to be committed: modified: utility.pycce5b39 -
Merge branch 'main' of hf.co:spaces/amra-ai/summary
Roland Ding1282196 -
merge conflict
Roland DingChanges to be committed: modified: backend_update.ipynb modified: requirements.txt modified: utility.py30d3ed3 -
Update the requirements to lock dependency
Roland Dingpackages versions Also a check point before the paradigm shift Changes to be committed: modified: requirements.txt0c8e742 -
7.7.18.48
Roland Dingmajor update. Introduce a new paradigm change from procedure to object oriented design. + created all the base classes and their derivatives as per object relationship remark: this is my first attempt in OOD. may discard due to the development cycle. On branch OOD Changes to be committed: modified: .gitignore new file: article.py new file: instruction.py modified: requirements.txt new file: ui.py1a75d5d
-
10.9.25.74 quick fix of features_beta import error
Roland Dingmodified: features.py modified: ui_summary.py15be848 -
10.9.25.73 updated the summary UI as per document
Roland DingAs per document: Website layout-Summary Section.pptx design and updated the summary UI with the following changes: On branch summary Changes to be committed: new file: .data/defaults.json modified: .gitignore modified: app.py modified: application.py modified: features.py modified: ui_summary.py modified: utility.py4b4f1f6
-
9.10.25.78 house keeping
Roland Ding+ Cleaning up the chains.py file + added function place holder for the reference table. (May not be necessary since originally, it was created to fix the article reference capture issue. Since now we no longer using textract at all, this may not be necessary) + added set datatype transformation in all aws data conversion functions in utility.py + added a set of new code blocks to the backend_update.ipynb file to update the backend database as per search term sheet. On branch main Changes to be committed: modified: backend_update.ipynb modified: chains.py modified: cloud_textract.py modified: utility.py5b59400
-
9.9.24.77 update the overview sequence
Roland DingOutputed overview result is not sorted and client like to have the result sorted by a certain way. This commit is to add a line of code to sort the result by section_sequence from the prompt. modified: features.py2ca7775 -
9.9.24.76 removed the table extraction feature.
Roland Dingmodified: features.py514aa06 -
9.9.24.75 update to remove old obsolete code.
Roland Dingmodified: application.py277407d
-
9.9.24.74 updated the async function terminal
Roland DingAfter the updated of async functions, the original terminal_print function is not working for async functions. This commit is to add an aterminal_print as the async version of terminal_print to wrap around async functions.da2ce27 -
9.9.24.73 updated the add_article method
Roland DingWhile running the app from huggingface hosting, since the file has a different path naming convention, the filename was not properly extracted due to linux system has a different path annotation than windows. added filename extraction logic for selecting the filename from the path string for both windows and linux systems. modified: features.pybebb801
-
check point before switch branch
Roland Dingmodified: .gitignore modified: __pycache__/supplier.cpython-310.pyc modified: app.py deleted: ui_studies.py deleted: ui_study.py new file: ui_summary.py8f97e9b
-
9.9.24.72 updated recursion for chains.py
Roland Dingupdate execute_concurrent with recursion for traverse along the prompt chain. On branch main modified: chains.pya6d0043 -
9.9.24.72 updated recursion for chains.py
Roland Dingupdate execute_concurrent with recursion for traverse along the prompt chain. On branch main modified: chains.py7564bac
-
9.9.23.71 updated llm initialization with openai api key in gen_segments and execute_concurrent.
Roland Dingd5f1fce -
9.9.23.71 updated llm initialization with openai api key in gen_segments and execute_concurrent.
Roland Ding5c94939 -
9.9.23.70 updated features.py to include openai api key for async get_segments.
Roland Dingb76f78a -
9.9.23.70 updated features.py to include openai api key for async get_segments.
Roland Ding91ee25d -
Merge branch 'main' of github.com:amra-ai/amra-studies
Roland Ding9194488 -
Merge branch 'main' of github.com:amra-ai/amra-studies
Roland Ding35d7472 -
9.9.23.69 try to fix huggingface openai api key by changing application.py os.envron.get to os.getenv.
Roland Dingprovided the api key to the chatmodel in chains.py modified: application.py modified: chains.py6d0778c -
9.9.23.69 try to fix huggingface openai api key by changing application.py os.envron.get to os.getenv.
Roland Dingprovided the api key to the chatmodel in chains.py modified: application.py modified: chains.py451cda9 -
9.9.23.69 try to fix huggingface openai api key by changing application.py os.envron.get to os.getenv.
Roland Ding8da8f90 -
9.9.23.69 try to fix huggingface openai api key by changing application.py os.envron.get to os.getenv.
Roland Ding6063c09
-
9.9.23.68 revise and correction as per email
Roland DingAs per email from 2023-10-09, after review of the cross check results, the following changes were made to the algorithm: + chains.py updated term argument detection in the dictionary for the case of keyword abscence + features.py updated term validation from any to all + features.py excluded introduction from the key_content in the article for the term search. + features.py removed all return symbol before search for any key terms to ensure the terms were picked up properly. Next step: + features.py - add the ability to stream line the prompts for processing cascading and combination prompts. modified: chains.py modified: features.py0baa835 -
9.9.23.68 revise and correction as per email
Roland DingAs per email from 2023-10-09, after review of the cross check results, the following changes were made to the algorithm: + chains.py updated term argument detection in the dictionary for the case of keyword abscence + features.py updated term validation from any to all + features.py excluded introduction from the key_content in the article for the term search. + features.py removed all return symbol before search for any key terms to ensure the terms were picked up properly. Next step: + features.py - add the ability to stream line the prompts for processing cascading and combination prompts. modified: chains.py modified: features.py364c11a
-
quick fix for a line of unused code giving error.
Roland Dingmodified: application.py1a7ec20 -
quick fix for a line of unused code giving error.
Roland Dingmodified: application.pyce1b1cd
-
stash before merge
Roland Dingba0421a -
stash before merge
Roland Ding0f376ee -
amendment commit
Roland Dingupdated backend_update.ipynb for the new version of the backend upload modified: .gitignore modified: backend_update.ipynb9ab7aa9 -
amendment commit
Roland Dingupdated backend_update.ipynb for the new version of the backend upload modified: .gitignore modified: backend_update.ipynbf164910 -
9.9.22.67 mass update of the application
Roland Ding+ Revised internally to apply usage of langchain and async call + Realigned the application to use the new terms and prompts from search term 13n + Added the new chains.py module to support the new langchain + revised the application.py to align with all the new backend data structure. modified: app.py modified: application.py new file: chains.py modified: features.py modified: requirements.txt modified: supplier.py modified: ui_studies.py modified: ui_study.py82b9d78