168 Commits

Author SHA1 Message Date
Ian Arawjo
508f421266 wip 2024-03-30 18:21:08 -04:00
Ian Arawjo
a6309ad444 wip 2024-03-30 18:21:08 -04:00
Ian Arawjo
67432f9853 wip 2024-03-30 18:21:08 -04:00
Ian Arawjo
cf23bf1150 rerun prettier 2024-03-30 18:21:08 -04:00
Ian Arawjo
d9559dc955 wip 2024-03-30 18:21:07 -04:00
Ian Arawjo
706d8b11ee wip 2024-03-30 18:21:06 -04:00
Ian Arawjo
712dda170a Remove console.log 2024-03-30 18:18:12 -04:00
Ian Arawjo
ce282459ca Turn AlertModal into a Provider with useContext 2024-03-30 18:18:11 -04:00
Ian Arawjo
8d24218d63 wip 2024-03-30 18:16:13 -04:00
Ian Arawjo
d43a61e1cc wip 2024-03-30 18:16:13 -04:00
Ian Arawjo
d98de2b7ca WIP. Refactor addNodes in App.tsx to be simpler. 2024-03-30 18:16:13 -04:00
Ian Arawjo
00e5d0764b wip 2024-03-30 18:15:27 -04:00
Ian Arawjo
d098d26793 wip 2024-03-30 18:14:55 -04:00
Ian Arawjo
a20d70b5f2 wip 2024-03-30 18:14:14 -04:00
Ian Arawjo
484f72c6b8 wip 2024-03-30 18:14:14 -04:00
Ian Arawjo
f45d99e3e2 wip 2024-03-30 18:14:14 -04:00
Ian Arawjo
3bf4c0d2b9 wip 2024-03-30 18:14:14 -04:00
Ian Arawjo
05eb8466a0 wip 2024-03-30 18:14:13 -04:00
Ian Arawjo
e81be86b6b wip 2024-03-30 18:12:07 -04:00
Ian Arawjo
a576eba6f8 wip prompt node 2024-03-30 18:12:07 -04:00
Ian Arawjo
6139e5aa4a run prettier and eslint 2024-03-30 18:12:07 -04:00
Ian Arawjo
9ef8183623 More typing... 2024-03-30 18:12:06 -04:00
Ian Arawjo
a26f6d068c Run prettier. Wip 2024-03-30 18:05:20 -04:00
Ian Arawjo
6f231a5f79 More typing. Modularize debounce funcs. 2024-03-30 18:05:20 -04:00
Ian Arawjo
fdef9267f9 wip 2024-03-30 18:05:20 -04:00
Ian Arawjo
44581ccbdf Typify ItemsNode and fix some strict typing errors in utils and query 2024-03-30 18:05:19 -04:00
Ian Arawjo
6620848b1a More typing 2024-03-30 18:05:19 -04:00
Ian Arawjo
f91cf7cef8 Type store.js. Change info to vars. NOTE: This breaks backwards compat. WIP. 2024-03-30 18:05:18 -04:00
Ian Arawjo
ecc3441209 Type ResponseBoxes.js 2024-03-30 18:01:10 -04:00
Ian Arawjo
b2a96bf9cc Refactor: modularize response boxes 2024-03-30 18:01:10 -04:00
Ian Arawjo
5fe3364351 Start to convert to TS 2024-03-30 18:01:08 -04:00
ianarawjo
eb51d1cee9
Add Amazon Bedrock models to main (#251)
* Adding support for Amazon Bedrock models (#247)

* Create global setting for GenAI features provider, to support Bedrock (Anthropic) models as an alternative

* Reformats dropdown in PromptNode to use Mantine ContextMenu with a nested menu, to save space. 

* Remove build folder from git

* Fix context menu to close on click-off. Refactor context menu array code.

* Ensure context menu is positioned below the Add+ button, like a proper dropdown. 

* Toggle context menu off when clicking btn again.

---------

Co-authored-by: Massimiliano Angelino <angmas@amazon.com>
2024-03-30 17:59:17 -04:00
Ian Arawjo
ad84cfdecc Add Claude Haiku 2024-03-21 21:33:16 -04:00
Ian Arawjo
b832b7ba21 Rebuild 2024-03-17 00:01:58 -04:00
Ian Arawjo
91afd61c6c Bug fix toggle visibility
The visibility toggle was screwed up due to an eslint autofix code rewrite, it appears.
2024-03-16 23:59:47 -04:00
Ian Arawjo
fac5579eee Rebuild 2024-03-15 19:59:05 -04:00
Ian Arawjo
f4e06fd00d Bug fix fill templated settings vars 2024-03-15 19:56:19 -04:00
ianarawjo
bdfeb5c26f
Add human ratings to inspectors (#244)
* Add human ratings to inspectors

* Store human labels in cache, not resp objs

* Change rating UI to pull from Zustand store

* Lazy load inspectors

* Update version and rebuild app
2024-03-14 13:02:47 -04:00
Ian Arawjo
677073ef62 Clean escaped braces before eval 2024-03-07 15:36:40 -05:00
ianarawjo
4cb97d87f7
Bug fix code on save (#241) 2024-03-07 14:31:55 -05:00
ianarawjo
0f4275bc75
Add Claude 3 and Pyodide sandboxing (#237)
Adds pyodide WebWorker to run Python scripts, thanks to idea by Shreya.

* Add sandbox option to Python eval nodes.

* Add new Anthropic models

* Disable guards for Python evals on server

* Fix bug with detecting async func in runOverResponses

---------

Co-authored-by: Shreya Shankar <ss.shankar505@gmail.com>
2024-03-05 23:15:35 -05:00
ianarawjo
0a45383b95
Generate code evaluators (#231)
* Adds a purple GenAI button to Code Evaluator Nodes, to allow easier creation of evaluation functions. (NOTE: This, like the TextFields and Items Nodes GenAI features, is experimental and requires an OpenAI API key to access.)

* Adds a drop-down to LLM evaluators

* Ensures LLM evaluators load cache'd responses on load

* Fixes a bug where right-clicking in pop-up Inspectors would bring up the node context menu.

* Internally, refactors evaluator nodes to have inner components that take care of running evaluations, in preparation for multi-eval and running evals elsewhere
2024-02-27 20:27:41 -05:00
Ian Arawjo
5d666643bd Fix TypeScript type errors 2024-02-24 14:31:36 -05:00
ianarawjo
bd35ecddb2
Add Prettier and ESLint formatting (#227)
* Add and run prettier

* Add eslint and code fixes after formatting (#223)

* chore(formatting): config files and packages

* chore(formatting): package.json

* chore(formatting): applying formatting

changes obtained by applying the previous commit and running `npx prettier -w .`

* chore(formatting): added formatting and linting to react app

* chore(formatting): fixes

* chore(eslint): apply fixes to utils.ts

* rebuild

---------

Co-authored-by: Massimiliano Angelino <angmas@amazon.com>

* Rebuild

---------

Co-authored-by: Massimiliano Angelino <angmas@amazon.com>
2024-02-24 11:32:05 -05:00
ianarawjo
d8d02424e2
Add new OpenAI models. (#225) 2024-02-17 12:35:38 -05:00
Ian Arawjo
625619c0b0 Rebuild app and update package version 2024-02-11 16:25:08 -05:00
Ian Arawjo
cff7a470bc Export metavars to excel 2024-02-11 16:22:55 -05:00
Ian Arawjo
08047d2c55 Bug fix join node 2024-01-22 12:56:34 -05:00
ianarawjo
7e1f43688f
"Small" changes (#213)
* Remove notification dots

* Add batch uids to response objects.

* Regroup responses by batch ids in inspectors. Add batch ids to resp objs. Update examples.

* Bug fix: clear RF state first before loading a flow

* Add random sample toggle to Tabular Data node

* Make sample UI loc conditional on num cols and fit nicer into whitespace

* Adds 'settings template vars' to parametrize on model settings.

* Typecast settings vars params

* Rebuild app and update version
2024-01-19 20:23:24 -05:00
Kayla Z
3d15bc9d17
Add stop button to cancel pending queries (#211)
* Add Stop button

* Replaced QueryTracker stop checks in _prompt_llm in query.ts. Modified _prompt_llm and *gen_responses to take in node id for checking purposes. Added new css class for stopping status.

* Used callback function instead of passing id to the backend, renamed QueryStopper and some of its functions, made custom error

* Added semicolons and one more UserForcedPrematureExit check

* Revise canceler to never clear id, and use unique id Date.now instead

* Make cancel go into call_llm funcs

* Cleanup console logs

* Rebuild app and update package version

---------

Co-authored-by: Kayla Zethelyn <kaylazethelyn@college.harvard.edu>
Co-authored-by: Ian Arawjo <fatso784@gmail.com>
2024-01-13 18:22:08 -05:00