375 Commits

Author SHA1 Message Date
Ian Arawjo
bacf61be18 Increase max Num Responses per Prompt to 999 2023-12-11 15:37:04 -05:00
Ian Arawjo
2e0ff1d317 Merge branch 'main' of https://github.com/ianarawjo/ChainForge 2023-12-06 21:41:03 -05:00
ianarawjo
ec8fbde392
Add Inspect Drawer (to Prompt and Eval Nodes) (#189)
* Show metavars in Table View

* Remove showing metavar col when var is col-plotted

* Add collapseable drawer to prompt node

* Add inspect drawer to eval nodes

* Rebuild app and package version

* Revise CSS so text in inspect drawer is selectable
2023-12-06 21:40:34 -05:00
Ian Arawjo
118a3db3d1 Remove showing metavar col when var is col-plotted 2023-12-06 15:34:05 -05:00
Ian Arawjo
e2c4636711 Show metavars in Table View 2023-12-06 15:33:48 -05:00
ianarawjo
1f5e0207c9
Disable delete key, use relative paths in FLASK_BASE_URL, rename CSVNode to ItemsNode (#185)
* Disable delete key deleting a node in RF

* Change FLASK_BASE_URL to use relative path except in dev mode

* Rename CSVNode to ItemsNode and replace its icon.

* Update package version and rebuild react

* Add new Claude models
2023-12-04 18:53:57 -05:00
Ian Arawjo
821950d959 Rebuild react and update version 2023-11-27 20:18:32 -05:00
Ian Arawjo
622509188f Update cache for join and split nodes.
Use StorageCache in App.js as safe interface to localStorage.
2023-11-27 20:14:34 -05:00
Ian Arawjo
fddc63338f Fix bug with LLM objs in response inspectors 2023-11-27 19:51:40 -05:00
ianarawjo
7223735b7f
Add Code Processor nodes (#180)
* Add Code Processor nodes.

* Renamed EvaluatorNode to CodeEvaluatorNode.

* Changed the way evaluator nodes pull responses (from grabResponses to pullInputData).

* Fix SimpleEvalNode to be consistent with CodeEvaluatorNode

* Fix Vis Node where no eval resps are connected, but resps are connected.

* Rebuilt react and update package version
2023-11-27 13:57:27 -05:00
Ian Arawjo
a861695c87 Make response reordering more efficient 2023-11-26 21:48:36 -05:00
Ian Arawjo
eb6c39947b Remove log 2023-11-26 21:25:56 -05:00
ianarawjo
a9e1ad691c
Fix numeric table imports and make LLM response order consistent w vars order (#178)
* Convert table values to strings upon export

* Make ordering of LLM responses consistent w vars dict ordering

* Rebuild react and package version

* Make sure ordering considers vars as objects
2023-11-26 21:23:21 -05:00
ianarawjo
1eae5edf89
Add "Continue w prior LLMs" toggle to the base Prompt Node (#168)
* Add support for "continue w prior LLM" toggle on base Prompt Node

* Fix anthropic chat bug

* Detect immediate prompt chaining, and show cont LLM toggle in that case

* Update react build and package
2023-11-19 18:49:52 -05:00
ianarawjo
f7be853554
Add a Split Node (#167)
* Add a split node

* Repair damage to model settings schema

* cleanup

* Fix bug w warning msg in Split node

* Bug fix removing LLM meta key

* Rebuild react and package

* Add markdown parser package dependency
2023-11-19 10:59:37 -05:00
Ian Arawjo
5319f8b5a1 Lock OpenAI package to 3.3.0 2023-11-17 08:56:18 -05:00
Ian Arawjo
4ba0a9f998 Fix bug with new OpenAI models 2023-11-17 08:54:17 -05:00
ianarawjo
0b32792d07
Add newest GPT-4 models (#153) 2023-11-15 13:51:36 -05:00
Ian Arawjo
c5088527bb Remove custom provider MIME type check 2023-11-12 15:45:25 -05:00
ianarawjo
e456ce6f1c
Right-click to Duplicate (v0.2.6.7) (#150)
* Auto-change shortname upon model settings edit

* Adding context menu to nodes on right-click

* Add BaseNode and subclass all CF nodes with BaseNode component

* Add BaseNode to CSVNode

* Move HF and Aleph up in LLM list.

* Rebuild react
2023-11-08 19:11:01 -05:00
ianarawjo
136fe70458
Merge PRs adding two new default HF models and Zoom add node fix (#148)
* Add more recent hf models (#147)

* support zoom (#146)

* Update package version and rebuild react

---------

Co-authored-by: Victor Muštar <victor.mustar@gmail.com>
Co-authored-by: zhaoolee <zhaoolee@gmail.com>
2023-11-06 08:44:38 -05:00
Ian Arawjo
2be5a0a5e5 Add build/ folder back to git repo v0.2.6.5 2023-10-23 16:51:54 -04:00
Ian Arawjo
c1ae6e5319 Escape braces in join node output 2023-10-23 16:43:21 -04:00
Ian Arawjo
e58526f569 Merge branch 'join-node' 2023-10-23 15:13:37 -04:00
ianarawjo
b448e300c5
Add Join node (#144)
* Add Join node

* Bug fix chat histories with undefined content in messages

* Slightly decrease TF width
2023-10-23 15:12:13 -04:00
Ian Arawjo
087ee7578d Rebuild react and update package version 2023-10-23 15:08:11 -04:00
Ian Arawjo
f20ff5534c revert tf width 2023-10-23 14:58:36 -04:00
Ian Arawjo
978214c697 minor tweaks join node 2023-10-23 14:54:54 -04:00
Ian Arawjo
469cfd1604 Add numbered list item 2023-10-22 10:51:14 -04:00
Ian Arawjo
30a099bf20 Reorganize join node logic 2023-10-19 12:37:50 -04:00
Ian Arawjo
9c7b36fa7e Bug fix chat histories with undefined content in messages 2023-10-18 14:30:44 -04:00
Ian Arawjo
061f467e82 more wip 2023-10-16 21:59:31 -04:00
Ian Arawjo
6675189424 edge cases 2023-10-16 14:29:05 -04:00
Ian Arawjo
095d77a71b join node wip 2023-10-16 11:54:51 -04:00
Ian Arawjo
d8e734d778 wip join node UI 2023-10-13 13:13:51 -04:00
ianarawjo
beeffd0ebb
Better edges, ReactFlow v11, AlephAlpha integration, better .gitignores (#139)
* add aleph alpha to installg guide description

* add aleph alpha to settings to add key

* add settings for alephalpha

* add aleph alpha to models

* add aleph alpha api key to keymap

* no visible changes, removed console.log

* current working copy

* added settings for aleph alpha, added test, working api request

* removed console log

* added static build with Aleph Alpha integration

* added static build with Aleph Alpha integration

* Corrected from ALEPH_ALPHA_KEY to ALEPH_ALPHA_API_KEY

* add additional settings requested

* merge conflicts

* add build to gitignore, best practice, reduces conflicts

* remove empty lines

* Delete chainforge/react-server/build directory

build directory should not be in remote

* remove unnecessary changes

* Update backend.ts

* ...

* fixed import

* add aleph alpha to store, remove available llms from modelsettings, remove double palm key input from globalsettings

* Update to ReactFlow v11

* Add remove button to edge on hover

* Quality of life improvements (#133)

* Quality of life improvements for node and python

* Pinned minor version for mantine modules

* Updated package-lock.json

* Added .gitignore to react-server

* Updated .gitignore to python module

---------

Co-authored-by: ianarawjo <fatso784@gmail.com>

* update gitignore

* Minor fixes to AlephAlpha integration code

* Tested npm i and rebuilt react

* Force commit the react build

* Update package version

---------

Co-authored-by: Denise Wagenführ <denise.wagenfuehr@capgemini.com>
Co-authored-by: fguderia <falko.guderian@capgemini.com>
Co-authored-by: denise710 <53524926+denise710@users.noreply.github.com>
Co-authored-by: wday-cs <119377799+wday-cs@users.noreply.github.com>
2023-09-25 09:44:18 -04: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
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