72 Commits

Author SHA1 Message Date
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
83c49ffe0b Update readme to point to docs 2024-01-08 18:43:27 -05:00
ianarawjo
ce583a216c
AI for ChainForge BETA: TextFields, Items (#191)
* Implement autofill backend

* Add autofill to ui

* Add argument to getUID to force recalculation of UID's on every call

* Add command fill

* Move popover to the right

* Merge autofill-ui into autofill

* Add minimum rows requirement for autofilling

* Rename local variable in autofill system

* Rename autofill.ts to ai.ts

* Implement generate and replace backend function

* Add purple AI button

* Add ai popover

* Add tabs to ai popover

* Cosmetic changes to AI popover

* Move command fill UI to purple button popover

* Add 'creative' toggle to generateAndReplace

* Generate and replace UI

* Call backend for generate and replace

* Change creative to unconventional in generate and replace system

* Fix generate and replace

* Add loading states

* Cosmetic changes

* Use sparkle icon

* Cosmetic changes

* Add a clarifying sentence to the prompt when the user asks for a prompt

* Change to markdown

* Add error handling to AI system

* Improve prompt prompt

* Remove 'suggestions loading' message

* Change 'pattern' to 'generate a list of' and fix a bug where i forgot to specify unordered markdown list

* Limit output to n in decode()

* Fix bug in error handling

* TEMP: try to fix autofill

* TEMP: disable autofill

* Finally fix autofill's debouncing

* Improve autofill prompt to handle commands

* Fix typo with semicolon

* Implement autofill backend

* Add autofill to ui

* Add argument to getUID to force recalculation of UID's on every call

* Add command fill

* Move popover to the right

* Merge autofill-ui into autofill

* Add minimum rows requirement for autofilling

* Rename local variable in autofill system

* Rename autofill.ts to ai.ts

* Implement generate and replace backend function

* Add purple AI button

* Add ai popover

* Add tabs to ai popover

* Cosmetic changes to AI popover

* Move command fill UI to purple button popover

* Add 'creative' toggle to generateAndReplace

* Generate and replace UI

* Call backend for generate and replace

* Change creative to unconventional in generate and replace system

* Fix generate and replace

* Add loading states

* Cosmetic changes

* Use sparkle icon

* Cosmetic changes

* Add a clarifying sentence to the prompt when the user asks for a prompt

* Change to markdown

* Add error handling to AI system

* Improve prompt prompt

* Remove 'suggestions loading' message

* Change 'pattern' to 'generate a list of' and fix a bug where i forgot to specify unordered markdown list

* Limit output to n in decode()

* Fix bug in error handling

* TEMP: try to fix autofill

* TEMP: disable autofill

* Finally fix autofill's debouncing

* Improve autofill prompt to handle commands

* Fix typo with semicolon

* Refactor the AI Popover into a new component

* Refactor the AI Popover into a new component

* Refactor the autofill functionality into two backend files

* Minor refactoring and styling fixes

* Parse markdown using markdown library

* Add no_cache flag support in backend to ignore cache for AI popover

* trim quotation marks and escape braces in AI autofill

* Add AI Support Tab in Global Settings pane.

* Convert Jinja braces

* Fix typo in AiPopover import

* Handle template variables with Extend and Autocomplete + Check template variable correctness in outputs

* Escape the braces of generate and replace prompts

* Update prompts to strengthen AI support for multiple template variables

* Log the system message

* Reduce minimum rows required to 1 for autocomplete to begin generating

* Reduce min rows to extend to 1 and add warning below 2

* Create a defaultdict utility

* Consider null values as nonexistant in defaultdict

* Make placeholders stick to their assigned text field without using defaultdict

* Make placeholder logic more readable

* Cache rendering of text fields to avoid expensive computation

* Calculate whether to refresh suggestions based on expected suggestions instead of previous suggestions

* Fix bug where LLM was returning templates in generate and replace where none was requested

* Force re-render of text fields on Extend

* Add Sean Yang to README

* Add GenAI support to Items Node

* Pass front-end API keys to AI support features

* Escape braces on Items Node outputs

* Update package to 0.2.8

* Disable autosaving if it takes 1 second or longer to save to localStorage

* Skip autosave when browser tab is inactive

* Fetch environment API keys only once upon load

* Check for OpenAI API key in AIPopover. If not present, display Alert.

---------

Co-authored-by: Sean Yang <53060248+shawseanyang@users.noreply.github.com>
2023-12-13 11:58:07 -05:00
ianarawjo
41bfef557a
Update README.md - add new BibTeX to arXiv 2023-09-19 09:01:18 -04:00
ianarawjo
dd23163def
Update README.md w grant ID 2023-09-07 15:39:44 -04:00
ianarawjo
8c5bbb86e8
Update README.md to add second NSF grant 2023-08-31 15:04:22 -04:00
ianarawjo
07fb40d1e1
Add interview note to top of README.md 2023-08-16 10:04:43 -04:00
ianarawjo
0ed8188217
Update README.md to add link to Documentation 2023-08-05 11:29:33 -04:00
Ian Arawjo
ce897b55f2 Add Edge and Brave support 2023-08-03 02:25:27 -04:00
ianarawjo
ece74e696e
Update README.md - Add chat turns 2023-07-26 15:15:17 -04:00
ianarawjo
f7fab1d76d
Update 0.2.5: Add Chat Turns, LLM Scorers (#109)
* Add LLM scorer node (#107)

* Modularize the LLM list container, extracting it from prompt node

* Working LLM scorer node

* Bug and minor fixes

* Change modals to use perc left. 

* Add inspect response footer to LLMEvalNode.

* Make Play buttons light green

* Fix React errors w keys in JSX arrays

* Add Chat Turn node and support for chat history (#108)

* Adds chat_history across backend's cache and querying mechanisms.

* Adds Chat Turn nodes, which allow for continuing a conversation.

* Adds automatic conversions of ChatHistory (in OpenAI format) to Anthropic and Google PaLM's chat formats. Converts chat history to appropriate format and passes it as context in the API call.

* Bug fix and error popup when missing past convo in Chat Turn

* Bug squashing to progress in chat turn node

* bug squashing

* Color false scores bright red in eval inspector

* fix tooltip when cont chat present

* Rebuild react

* bug fix llm eval node

* Add HF chat model support.

* Show multiple response objs in table inspector view

* Fix LLM item deletion bug

* Rebuild react and update package version

* Fix obscure bug when LLM outputs have no 'llm' property (due to prior CF version)

* Fix isLooselyEqual bug

* Update examples so that their cached 'fields' include llm nicknames

* rebuild react

* Add Chelse to readme
2023-07-26 12:06:09 -04:00
ianarawjo
ee1dc09954
Update README.md 2023-07-21 14:50:35 -04:00
ianarawjo
de48255a8b
Update README.md 2023-07-21 12:02:27 -04:00
ianarawjo
e46bf5c7cc
Add Share Button, add hosted version link to README.md (#83)
* Share button implementation and testing

* Bug fix for Azure OpenAI (missing `bind` call)

* Change `call_anthropic` to go through server proxy when not running locally

* Cleanup of unused imports

* Fixed bug in Azure OpenAI call

* Update README.md with Share, Play link, etc

* Update package version to 0.2.0.2
2023-07-04 10:18:55 -04:00
ianarawjo
3e8acf3fe9
Update README.md 2023-07-01 10:26:22 -04:00
ianarawjo
0e18742165
Update README.md 2023-07-01 10:25:00 -04:00
ianarawjo
ade8a8ece4
Update README.md 2023-07-01 10:24:22 -04:00
ianarawjo
7fc0947d03
Update README.md 2023-06-19 20:39:01 -04:00
ianarawjo
70cba7aa3a
Update README.md 2023-06-16 12:33:17 -04:00
ianarawjo
947ca4b410
Update README.md 2023-06-11 13:02:59 -04:00
ianarawjo
30625bc527
Add tabular data example to README.md 2023-06-11 11:54:20 -04:00
ianarawjo
000b61200c
0.1.4: Failure Progress on Prompt Nodes, and others (#62)
* Lint Python code with ruff (#60)

* Failure progress on Prompt Nodes

* Change PromptNode preview container color

* Ensure LLM colors are unique and the same across nodes

* Reset LLM colors upon flow load

* Add LLM colors to 3D scatterplot

* Extract inspector internals into separate component. 

* Added inspect modal.

* Lower rate of failure for dummy LLM responses

* Fix useEffect bug in LLMResponseInspector

* Fix export to excel bug

* Remove dependence on browser support for regex negative lookbehind

* Use monospace font in textareas in Safari

* Fix settings modal bug in FireFox

* Change version

* Update README.md
2023-06-07 20:36:55 -04:00
Elena Glassman
01851f98de
Update README.md
the Harvard HCI website is terribly out of date (by multiple years) and my personal page on our lab website is not very informative, so I removed the Harvard HCI website and pointed to the glassmanlab main page, where all our publications are.
2023-05-24 11:02:10 -04:00
ianarawjo
a3d5d48826
Add note about NSF funding in README.md 2023-05-24 08:56:27 -04:00
ianarawjo
5f98e72368
Add Python version requirement to README.md 2023-05-23 16:06:25 -04:00
ianarawjo
35fab14e48
Fix images in README.md 2023-05-22 13:43:44 -04:00
ianarawjo
6450a06d90
Add user guide link to README.md 2023-05-22 13:15:39 -04:00
ianarawjo
20f5d0be45
Update README.md 2023-05-22 11:38:22 -04:00
ianarawjo
f08c0a15f4
Update README.md 2023-05-22 11:33:56 -04:00
ianarawjo
6d0caa47b2
Update README.md 2023-05-22 11:30:03 -04:00
ianarawjo
7bf301caa6
Update README.md 2023-05-22 11:20:23 -04:00
ianarawjo
43d24f6a4c
Update README.md 2023-05-22 11:14:52 -04:00
ianarawjo
b15871651a
Change front pic in README.md 2023-05-22 11:10:05 -04:00
ianarawjo
39755360f3
Update README.md 2023-05-21 23:15:37 -04:00
ianarawjo
a01f3b6b6c
Added PaLM support to README.md 2023-05-19 22:25:15 -04:00
ianarawjo
0093fdf0be
Reorganize and package chainforge for pip installation (#50)
* Rename main folders

* Preparing for package deployment

* Use absolute paths and imports

* Move react-server into chainforge dir

* Add MANIFEST.in to copy react-server build over to package

* Add include_package_data

* Add manifest.json and icons to /static.

* Update README.md

* Update GUIDE.md
2023-05-18 00:17:35 -04:00
ianarawjo
dbd2884d49
Update README.md 2023-05-17 16:11:31 -04:00
ianarawjo
1f5297939f
Update README.md 2023-05-17 15:58:58 -04:00
ianarawjo
eb4ca88757
Update README.md 2023-05-17 15:30:09 -04:00
ianarawjo
cd912b8c1c
Update README.md 2023-05-17 15:23:09 -04:00
ianarawjo
699edb4c21
Update README.md 2023-05-17 15:22:46 -04:00
ianarawjo
a20fea7ac2
Update README.md 2023-05-17 15:12:22 -04:00
ianarawjo
7572675385
Update README.md 2023-05-17 14:57:19 -04:00
ianarawjo
9f228a5789
Update README.md 2023-05-08 11:43:03 -04:00
ianarawjo
8e237ed159
Update README.md 2023-05-03 17:31:50 -04:00
ianarawjo
3c08581921
Update README.md 2023-05-02 22:33:10 -04:00
ianarawjo
8439f00874
Update README.md 2023-05-02 10:36:39 -04:00
ianarawjo
54838c3073
Update README.md 2023-05-01 19:00:05 -04:00
ianarawjo
b7e67eafd9
Update README.md 2023-05-01 08:29:18 -04:00
ianarawjo
6fe434740a
Update README.md 2023-04-30 21:23:51 -04:00