106 Commits

Author SHA1 Message Date
Sean Yang
9fa27b5e96 Fix typo with semicolon 2023-11-09 17:08:44 -05:00
Sean Yang
f4f9022725 Improve autofill prompt to handle commands 2023-11-09 17:08:44 -05:00
Sean Yang
9192a574ec Finally fix autofill's debouncing 2023-11-09 17:08:44 -05:00
Sean Yang
eecb3731b6 TEMP: disable autofill 2023-11-09 17:08:44 -05:00
Sean Yang
578deb0161 TEMP: try to fix autofill 2023-11-09 17:08:44 -05:00
Sean Yang
5ce43ffa76 Fix bug in error handling 2023-11-09 17:08:44 -05:00
Sean Yang
962626146f Limit output to n in decode() 2023-11-09 17:08:44 -05:00
Sean Yang
77deaa2fff Change 'pattern' to 'generate a list of' and fix a bug where i forgot to specify unordered markdown list 2023-11-09 17:08:44 -05:00
Sean Yang
b35a977fb3 Remove 'suggestions loading' message 2023-11-09 17:08:44 -05:00
Sean Yang
3d6d61e00d Improve prompt prompt 2023-11-09 17:08:44 -05:00
Sean Yang
58445fe50e Add error handling to AI system 2023-11-09 17:08:33 -05:00
Sean Yang
d53960ac61 Change to markdown 2023-11-09 17:08:33 -05:00
Sean Yang
1c6cef8ead Add a clarifying sentence to the prompt when the user asks for a prompt 2023-11-09 17:08:01 -05:00
Sean Yang
14c6400619 Cosmetic changes 2023-11-09 17:08:01 -05:00
Sean Yang
969a40aa58 Use sparkle icon 2023-11-09 17:08:01 -05:00
Sean Yang
90a1029499 Cosmetic changes 2023-11-09 17:08:01 -05:00
Sean Yang
0eb4820bfd Add loading states 2023-11-09 17:08:01 -05:00
Sean Yang
a41c122e2f Fix generate and replace 2023-11-09 17:08:01 -05:00
Sean Yang
146ef26e29 Change creative to unconventional in generate and replace system 2023-11-09 17:08:01 -05:00
Sean Yang
b559b78410 Call backend for generate and replace 2023-11-09 17:08:01 -05:00
Sean Yang
bdb6839383 Generate and replace UI 2023-11-09 17:08:01 -05:00
Sean Yang
3d8736e24d Add 'creative' toggle to generateAndReplace 2023-11-09 17:08:01 -05:00
Sean Yang
16839522c5 Move command fill UI to purple button popover 2023-11-09 17:08:01 -05:00
Sean Yang
ab01a34e31 Cosmetic changes to AI popover 2023-11-09 17:08:01 -05:00
Sean Yang
960769aeb4 Add tabs to ai popover 2023-11-09 17:08:01 -05:00
Sean Yang
624f222b6c Add ai popover 2023-11-09 17:08:01 -05:00
Sean Yang
e0e62735e9 Add purple AI button 2023-11-09 17:08:01 -05:00
Sean Yang
418308041a Implement generate and replace backend function 2023-11-09 17:08:01 -05:00
Sean Yang
410d452552 Rename autofill.ts to ai.ts 2023-11-09 17:08:01 -05:00
Sean Yang
aef1e7723a Rename local variable in autofill system 2023-11-09 17:08:00 -05:00
Sean Yang
4090e96738 Add minimum rows requirement for autofilling 2023-11-09 17:08:00 -05:00
Sean Yang
1e6f17fc38 Merge autofill-ui into autofill 2023-11-09 17:08:00 -05:00
Sean Yang
ed6681aa82 Move popover to the right 2023-11-09 17:07:19 -05:00
Sean Yang
982b77b9f8 Add command fill 2023-11-09 17:07:19 -05:00
Sean Yang
372c406129 Add argument to getUID to force recalculation of UID's on every call 2023-11-09 17:07:19 -05:00
Sean Yang
bed08d39bd Add autofill to ui 2023-11-09 17:06:41 -05:00
Sean Yang
d114967faa Implement autofill backend 2023-11-09 17:06:41 -05: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
Ian Arawjo
12efba247c Bug fix empty responses from GPT3.5 2023-09-03 18:12:00 -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
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
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
Ian Arawjo
4730009a1c Add # special fill variables to prompt templating. 2023-08-01 11:34:51 -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
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
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
Ian Arawjo
69f52e7df9 Fix getUniqueLLMMetavarKey bug + remove unnecessary deps 2023-07-20 15:40:15 -04:00
Ian Arawjo
5826c822ee Rebuild react and update package version 2023-07-20 11:23:52 -04:00