388 Commits

Author SHA1 Message Date
ianarawjo
dd23163def
Update README.md w grant ID 2023-09-07 15:39:44 -04:00
Ian Arawjo
12efba247c Bug fix empty responses from GPT3.5 2023-09-03 18:12:00 -04:00
Ian Arawjo
332b075d7b Merge branch 'main' of https://github.com/ianarawjo/ChainForge 2023-09-03 12:51:02 -04:00
Ian Arawjo
ab75768587 Bug fix on Py execution 2023-09-03 12:43:14 -04:00
ianarawjo
8c5bbb86e8
Update README.md to add second NSF grant 2023-08-31 15:04:22 -04:00
ianarawjo
0134dbf59b
Custom providers (#122)
* Removed Python backend files that are no longer used (everything in `promptengine`)

* Added `providers` subdomain, with `CustomProviderProtocol`, `provider` decorator, and global singleton `ProviderRegistry`

* Added a tab for custom providers, and a dropzone, in ChainForge global settings UI

* List custom providers in the Global Settings screen once added. 

* Added ability to remove custom providers by clicking X. 

* Make custom funcs sync but call them async'ly.

* Add Cohere custom provider example in examples/

*Cache the custom provider scripts and load them upon page load

* Rebuild react and update package version

* Bug fix when custom provider is deleted and settings screen is opened on the deleted custom provider
v0.2.6
2023-08-27 15:11:42 -04:00
ianarawjo
f43861f075
Add Simple Eval Node. Other minor UI improvements. (#121)
* Add red dot in Inspect Responses footer to indicate something changed

* Abstract out inspect footer button to component

* Add tooltips to AddNode menu items.

* Simple eval wip

* Add menu sections to Add Node. Minor tweaks to simple eval.

* Save state of simple eval when editing fields

* Add 'only show scores' toggle to response inspector

* Change 2 example flows to use simple evals. Fix bg of toolbar buttons.

* Update version and rebuild react
2023-08-19 16:50:11 -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 docs 2023-08-05 11:29:33 -04:00
Ian Arawjo
ce897b55f2 Add Edge and Brave support 2023-08-03 02:25:27 -04:00
Ian Arawjo
3fbc88abb8 Make special #vars work on chat nodes 2023-08-01 14:56:19 -04:00
ianarawjo
2ab50142bb
Update GUIDE.md 2023-08-01 12:07:41 -04:00
Ian Arawjo
4730009a1c Add # special fill variables to prompt templating. 2023-08-01 11:34:51 -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
v0.2.5
2023-07-26 12:06:09 -04:00
ianarawjo
a27d092ccc
Choose plot column in table view of response inspector (#106)
* Make vars in inspect table view multiline

* Choose var to use for columns in table view of resp inspector

* Only default to prompt var as column if num vars > 1

* Rebuild react and update package version
2023-07-23 14:22:13 -04:00
ianarawjo
ee1dc09954
Update README.md 2023-07-21 14:50:35 -04:00
Ian Arawjo
16258e5588 Force height of wide handles 2023-07-21 12:47:21 -04:00
ianarawjo
666d5900b5
'Dirty' downstream nodes whenever upstream changes are made. Minor styling improvements. (#105)
* Invalidate eval node upon upstream changes.

* Chain update pings across nodes. Autoresize textfields when typing.

* Wide output handles when entire node is output

* update package version
2023-07-21 12:39:08 -04:00
ianarawjo
de48255a8b
Update README.md 2023-07-21 12:02:27 -04:00
Ian Arawjo
69f52e7df9 Fix getUniqueLLMMetavarKey bug + remove unnecessary deps 2023-07-20 15:40:15 -04:00
ianarawjo
e8dc5d3d37
Update INSTALL_GUIDE.md 2023-07-20 11:36:14 -04:00
Ian Arawjo
5826c822ee Rebuild react and update package version 2023-07-20 11:23:52 -04:00
Ian Arawjo
07150fc6ae Let users choose hostname and port 2023-07-20 11:17:58 -04:00
Ian Arawjo
31340bedc5 Add 0.0.0.0 to localhost hostnames check 2023-07-20 10:30:20 -04:00
ianarawjo
038832910f
Table view and persistent response inspector (#103)
* WIP Tabular data view in Inspect modal

* Keep response inspector mounted

* Rebuild react app and update package version
v0.2.1.2
2023-07-19 17:15:19 -04:00
Ian Arawjo
973970b8ab Escape braces in outputs of prompt nodes by default 2023-07-14 09:13:24 -04:00
ianarawjo
3657609c32
Add prompt preview tooltip, add ability to disable textfields selectively, bug fixes (#97)
* Add tooltip to prompt preview button

* Focus scrollwheel on textfields textareas

* Replace escaped { and } with their bare versions

* Escape braces in tabular data by default. Ignore empty rows.

* Add ability to disable fields on textfields

* Make sure deleting a field deletes its fields_visibility

* Add withinPortal to Tooltips on side-buttons in text fields

* Add Anthropic model Claude-2.
v0.2.1
2023-07-12 17:12:16 -04:00
ianarawjo
318f81e1df
Add prompts previews on hover and click of PromptNode (#91)
* Added Prompt Preview panes

* Update package version and react app
2023-07-07 20:35:50 -04:00
Ian Arawjo
e62be7eaf1 Rebuild react app, update package version 2023-07-07 15:36:26 -04:00
ianarawjo
f094fc937b
Collapseable response supergroups; nicer colors for headers of response groups; resizeable Prompt Node text areas (#89)
* Resizeable textfield in prompt nodes

* Popup when user clicks X to delete node

* Collapseable supergroups in response inspector

* Nicer hierarchical color scheme for response group headers in response inspectors
2023-07-07 15:30:56 -04:00
Ian Arawjo
9cf9673b27 Add allow_empty_str prop so react-json-form-schema treats empty text area as empty string, not undefined 2023-07-07 14:57:13 -04:00
Ian Arawjo
c735008d88 Fix overflow issue in root prompt box in response inspector 2023-07-07 14:56:01 -04:00
Ian Arawjo
e57cfebfc2 Fix duplicate handles bug in Prompt Node 2023-07-07 14:01:04 -04:00
Ian Arawjo
6ad88f0ad9 Update package and rebuild react 2023-07-07 11:39:20 -04:00
Ian Arawjo
66566a5901 Merge branch 'main' of https://github.com/ianarawjo/ChainForge 2023-07-07 11:12:50 -04:00
Ian Arawjo
0c3ea969dc Added HuggingFace key to load from env variable 2023-07-07 11:12:47 -04:00
ianarawjo
bfc0f2fafa
Update INSTALL_GUIDE.md 2023-07-07 11:11:38 -04:00
Ian Arawjo
9d8dfdb43f Change manifest description 2023-07-07 10:49:49 -04:00
Ian Arawjo
5691f0d65b Remove unused js in build 2023-07-04 10:22:04 -04:00
Ian Arawjo
8f88061dc8 Merge branch 'main' of https://github.com/ianarawjo/ChainForge 2023-07-04 10:19:35 -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
Ian Arawjo
90a3862669 Stringify LLM error message jic its not a string 2023-07-03 17:14:23 -04:00
Ian Arawjo
b06be34c94 Patched bug: unbound client in Azure OpenAI func 2023-07-03 08:43:59 -04:00
Ian Arawjo
68d2a9d9dd Merge branch 'main' of https://github.com/ianarawjo/ChainForge 2023-07-02 10:05:29 -04:00
Ian Arawjo
7e60c50338 Add better example flow upon load 2023-07-02 10:05:20 -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
Ian Arawjo
7cd5b6797f Update package version v0.2 2023-06-30 15:14:00 -04:00