Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

React coa #13

Merged
merged 117 commits into from
Oct 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
117 commits
Select commit Hold shift + click to select a range
d8c7653
convert to react
charliehuang09 Dec 28, 2023
91c84f4
rough code for react
charliehuang09 Dec 29, 2023
08b971d
rough code for react
charliehuang09 Dec 29, 2023
f8a36f9
Merge branch 'react_coa' of github.com:charliehuang09/chatfrc into re…
charliehuang09 Dec 29, 2023
f06c2d8
lint
charliehuang09 Dec 29, 2023
d0a1f60
lint#2
charliehuang09 Dec 29, 2023
5b18a06
lint#3
charliehuang09 Dec 29, 2023
cae67bf
works
charliehuang09 Dec 30, 2023
0cb8135
redo react implementation
charliehuang09 Dec 30, 2023
274e347
lint and fix errors
charliehuang09 Dec 31, 2023
522ee34
lint
charliehuang09 Dec 31, 2023
9742161
add detenv config
charliehuang09 Dec 31, 2023
2bc16ad
lint
charliehuang09 Dec 31, 2023
1b1fa66
lint and fix errors
charliehuang09 Dec 31, 2023
df20eed
Merge branch 'react_coa' of github.com:charliehuang09/chatfrc into re…
charliehuang09 Dec 31, 2023
0b3020c
using vite env to pass serpapi key into the serpapi tool
charliehuang09 Dec 31, 2023
87c54c9
convert tools into a get function
charliehuang09 Dec 31, 2023
2346501
warn instead of throw error when serapi key is undefined
charliehuang09 Dec 31, 2023
db9c9ed
put catch serapkey undefined into the getTools function
charliehuang09 Dec 31, 2023
d954889
add vector database to tools. Need to let refine searching algorithm
charliehuang09 Jan 1, 2024
5988cd0
remove log
charliehuang09 Jan 2, 2024
4c57ca4
add colors.ts to make logging with colors a lot easier
charliehuang09 Jan 2, 2024
9597201
add verbose option to chatbotcompletion
charliehuang09 Jan 3, 2024
9b1bd9e
make verbose better and delete unused class variables
charliehuang09 Jan 3, 2024
20ac9e9
lint colors
charliehuang09 Jan 3, 2024
7d6c2a3
add check.sh to make running checks before pushing easier (only has c…
charliehuang09 Jan 3, 2024
837252b
update packages
charliehuang09 Jan 3, 2024
5f70018
Merge branch 'main' into react_coa
charliehuang09 Jan 3, 2024
3d24467
fix check.sh
charliehuang09 Jan 4, 2024
9b407ec
Merge branch 'react_coa' of github.com:charliehuang09/chatfrc into re…
charliehuang09 Jan 4, 2024
e20edf6
remove example code from tools.ts dynamicstructuredtool
charliehuang09 Jan 4, 2024
25aae3b
make verbose optional and clean up code
charliehuang09 Jan 4, 2024
8c19505
pass qdrant client and embeddings model into tools so that it will no…
charliehuang09 Jan 4, 2024
d755228
add check if openai key is undefined
charliehuang09 Jan 4, 2024
364327d
remove extra line
charliehuang09 Jan 4, 2024
500b50a
add chat history
charliehuang09 Jan 4, 2024
1229700
move check.sh into root folder
charliehuang09 Jan 4, 2024
c315a35
edit prompt
charliehuang09 Jan 4, 2024
4c9f303
edit setup not called error handling
charliehuang09 Jan 4, 2024
54f573c
change error to warn when model cannot parse output
charliehuang09 Jan 4, 2024
19b0ca6
add option to include history
charliehuang09 Jan 11, 2024
d4c7513
add fine tuning pipline
charliehuang09 Jan 12, 2024
f55a814
remove serpapi tool to be replaced with tools such as wiplib search/docs
charliehuang09 Jan 13, 2024
5366420
change prompt template
charliehuang09 Jan 13, 2024
c79ce36
add train test split for generate_fine_tune_data
charliehuang09 Jan 16, 2024
ffda01f
add system message
charliehuang09 Jan 16, 2024
982c125
undo the system messages commit forgor that its only in gpt4
charliehuang09 Jan 16, 2024
bcb17f0
change file paths for data files of generated by scripts because of f…
charliehuang09 Jan 17, 2024
b7e771d
change file paths for data files of generated by scripts because of f…
charliehuang09 Jan 17, 2024
a00925e
add summarybot
charliehuang09 Jan 17, 2024
c3a61f1
add 2 seperate collections
charliehuang09 Jan 17, 2024
561b879
Finising touches
charliehuang09 Jan 18, 2024
1afe37a
have a specified folder for data. All the data were in the scripts fo…
charliehuang09 Jan 19, 2024
9d44b8d
add option to use summarybot
charliehuang09 Jan 20, 2024
8aeea36
prettier
charliehuang09 Jan 20, 2024
ebd0987
remove debuggin line from tools
charliehuang09 Jan 21, 2024
ac1da88
change write data path
charliehuang09 Jan 21, 2024
f234530
change train test split percentage from 0.8 to 0.9
charliehuang09 Jan 21, 2024
2624630
format generate_fine_tune_data
charliehuang09 Jan 22, 2024
7ef1d45
fine tuning script
charliehuang09 Jan 22, 2024
2fc1887
add model name log, on no matter what
charliehuang09 Jan 22, 2024
beea02b
edit Summary prompt
charliehuang09 Jan 22, 2024
967b980
cleanup
charliehuang09 Jan 27, 2024
43b68b5
cleanup
charliehuang09 Jan 27, 2024
84d5107
add yapf linting for python scripts
charliehuang09 Jan 27, 2024
6849331
lint python files
charliehuang09 Jan 27, 2024
fb767ca
wrap python scripts in main() function
charliehuang09 Jan 28, 2024
e31848c
warn instead of give error when logging
charliehuang09 Jan 28, 2024
9ee15af
convert intermediate_steps to snake case
charliehuang09 Jan 28, 2024
891fc82
convert qdrant_client to snake case
charliehuang09 Jan 28, 2024
5eff678
rename use_summarybot argument in ChatbotCompletion
charliehuang09 Jan 28, 2024
baaf9c2
add comment explaining what chain is
charliehuang09 Jan 28, 2024
c3e0e67
model is now initizlized in the chatbotcompletion constructer instead…
charliehuang09 Jan 28, 2024
601d59e
add documentation for promptBuilder
charliehuang09 Jan 29, 2024
dad2a8f
remove calculator tool
charliehuang09 Jan 29, 2024
3932f34
remove unused line
charliehuang09 Jan 29, 2024
a6e7e65
cleanup code
charliehuang09 Jan 31, 2024
ddc298e
cleanup code
charliehuang09 Jan 31, 2024
5e87827
Merge branch 'react_coa' of github.com:charliehuang09/chatfrc into re…
charliehuang09 Jan 31, 2024
41dd7fe
remove check.sh
charliehuang09 Jan 31, 2024
814ff10
convert promptBuilder to regular function
charliehuang09 Jan 31, 2024
c4bfdf1
refactor do_history to use_history
charliehuang09 Jan 31, 2024
e84d96e
log time
charliehuang09 Jan 31, 2024
6adcdec
change to upsert 2 collections: FRC971 and FIRSTawards
charliehuang09 Jan 31, 2024
f39836e
lint
charliehuang09 Jan 31, 2024
548094c
lint
charliehuang09 Jan 31, 2024
e0e6535
lint
charliehuang09 Jan 31, 2024
46204ef
Merge branch 'react_coa' of github.com:charliehuang09/chatfrc into re…
charliehuang09 Feb 2, 2024
9981da5
remove check.sh
charliehuang09 Jan 31, 2024
4e19b07
convert promptBuilder to regular function
charliehuang09 Jan 31, 2024
f08e323
refactor do_history to use_history
charliehuang09 Jan 31, 2024
c9a8014
log time
charliehuang09 Jan 31, 2024
1cc10d4
change to upsert 2 collections: FRC971 and FIRSTawards
charliehuang09 Jan 31, 2024
ac3b224
lint
charliehuang09 Jan 31, 2024
5ddf0cc
Merge branch 'react_coa' of github.com:charliehuang09/chatfrc into re…
charliehuang09 Feb 2, 2024
ca2709e
Merge remote-tracking branch 'origin/main' into react_coa
charliehuang09 Feb 2, 2024
fd09770
Merge branch 'main' into react_coa
charliehuang09 Feb 2, 2024
3a03e8e
Update langchain references
maxstrid Feb 9, 2024
d48eea9
update pnpm-lock.yaml
charliehuang09 Feb 17, 2024
75891bb
move tools.ts and prompt.ts to the completion folder and update the m…
charliehuang09 Feb 24, 2024
1631acf
revise prompt
charliehuang09 Mar 21, 2024
d70fc93
change embedding settings and fix bug
charliehuang09 Mar 26, 2024
2f8b644
change query script model to large
charliehuang09 Mar 26, 2024
dc3df53
change embeddings model in completion.ts from small model to large mo…
charliehuang09 Mar 26, 2024
1d0328b
make query script more convenient
charliehuang09 Mar 26, 2024
561dd2d
revise tool prompts
charliehuang09 Mar 27, 2024
d588862
add cleaing when encoding data
charliehuang09 Mar 27, 2024
5ace500
add logs to tools.ts
charliehuang09 Mar 27, 2024
0b9d3a0
change summarybot to gpt-3.5
charliehuang09 Mar 27, 2024
30e7735
lint-fix
charliehuang09 Mar 28, 2024
1a2b6a3
Add Unit Tests
charliehuang09 Mar 29, 2024
0405420
Remove duplicate test case
charliehuang09 Mar 29, 2024
38926b9
increase unit test max time from 30 to 60 seconds
charliehuang09 Mar 29, 2024
78ecf76
fix bug in history
charliehuang09 Apr 6, 2024
2d0a1f3
Merge branch 'main' into react_coa
charliehuang09 Sep 21, 2024
94a2a66
Add comma
charliehuang09 Sep 21, 2024
127ee27
Add Spinner
charliehuang09 Sep 27, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,11 @@ vite.config.ts.timestamp-*
**/data
**/data.npy
**/.venv
scripts/logs
scripts/train.jsonl
scripts/playground.ipynb
scripts/data
scripts/documents
scripts/docs
scripts/documents.npy
scripts/valid.jsonl
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
"check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",
"check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch",
"lint": "prettier --check . && eslint --debug --max-warnings 3 .",
"lint:fix": "prettier --write . && eslint --fix ."
"lint:fix": "prettier --write . && eslint --fix .",
"test": "vitest"
},
"devDependencies": {
"@sveltejs/adapter-auto": "^3.0.0",
Expand All @@ -33,6 +34,7 @@
"tslib": "^2.6.2",
"typescript": "^5.3.3",
"vite": "^5.0.12",
"vitest": "^1.4.0",
"@types/gtag.js": "^0.0.18"
},
"type": "module",
Expand Down
Loading
Loading