Commit Graph

43 Commits

Author SHA1 Message Date
Charles Packer
bccd990ab6
fix: increase the func return char limit (#714)
* increase the funct return limit

* disable truncation for base search functions

* added stdout suppression to remove MockLLM warning
2023-12-27 01:33:30 -08:00
Charles Packer
10840fc5f4
Added length checking to the persona/human loader functions, also updated the CLI error dump to look prettier (eg on over length errors) (#695) 2023-12-24 23:05:13 -08:00
Charles Packer
19c48912ac
feat: improve CLI appearance (#687)
* prettified standard cli output

* also suppress stdout for agent loading

* better spacing

* added emoji to existing agent load
2023-12-23 11:39:51 -08:00
Charles Packer
0e69058331
feat: Add new wrapper defaults (#656) 2023-12-21 17:05:38 +04:00
Charles Packer
6a964123a0
feat: added memgpt folder command (#632)
* added memgpt folder command

* comments
2023-12-17 10:54:17 -08:00
Charles Packer
071043c91a
Patch bug with loading of old agents (#629)
* initial patch that seems to work with example old agent save

* cleanup

* remove unneeded import
2023-12-16 10:04:23 -08:00
Charles Packer
8f178e18ca
Add safeguard on tokens returned by functions (#576)
* swapping out hardcoded str for prefix (forgot to include in #569)

* add extra failout when the summarizer tries to run on a single message

* added function response validation code, currently will truncate responses based on character count

* added return type hints (functions/tools should either return strings or None)

* discuss function output length in custom function section

* made the truncation more informative
2023-12-13 21:57:50 -08:00
Charles Packer
9580dd5174
sort agents by directory-last-modified time (#574)
* sort agents by directory-last-modified time

* only save agent config when agent is saved

---------

Co-authored-by: Sarah Wooders <sarahwooders@gmail.com>
2023-12-04 14:16:03 -08:00
Sarah Wooders
dd5a110be4
Removing dead code + legacy commands (#536) 2023-11-30 13:37:11 -08:00
Charles Packer
437f2ea9a1
Remove .DS_Store from agents list (#485) 2023-11-19 14:35:51 -08:00
Charles Packer
b789549d02
Configurable presets to support easy extension of MemGPT's function set (#420)
* partial

* working schema builder, tested that it matches the hand-written schemas

* correct another schema diff

* refactor

* basic working test

* refactored preset creation to use yaml files

* added docstring-parser

* add code for dynamic function linking in agent loading

* pretty schema diff printer

* support pulling from ~/.memgpt/functions/*.py

* clean

* allow looking for system prompts in ~/.memgpt/system_prompts

* create ~/.memgpt/system_prompts if it doesn't exist

* pull presets from ~/.memgpt/presets in addition to examples folder

* add support for loading agent configs that have additional keys

---------

Co-authored-by: Sarah Wooders <sarahwooders@gmail.com>
2023-11-13 10:43:28 -08:00
Vivian Fang
e5c0e1276b
Remove AsyncAgent and async from cli (#400)
* Remove AsyncAgent and async from cli

Refactor agent.py memory.py

Refactor interface.py

Refactor main.py

Refactor openai_tools.py

Refactor cli/cli.py

stray asyncs

save

make legacy embeddings not use async

Refactor presets

Remove deleted function from import

* remove stray prints

* typo

* another stray print

* patch test

---------

Co-authored-by: cpacker <packercharles@gmail.com>
2023-11-09 14:51:12 -08:00
Sarah Wooders
b1c5566168
Dependency management (#337)
* Divides dependencies into `pip install pymemgpt[legacy,local,postgres,dev]`. 
* Update docs
2023-11-06 19:45:44 -08:00
Charles Packer
ed0c935af9
make timezone local by default (#298)
Co-authored-by: orderwat <github@oderwat.de>
2023-11-03 21:15:15 -07:00
Sarah Wooders
2492db6b59
VectorDB support (pgvector) for archival memory (#226) 2023-11-03 16:19:15 -07:00
Charles Packer
4c80222e0c
strip '/' and use osp.join (Windows support) (#283)
* strip '/' and use osp.join

* grepped for MEMGPT_DIR, found more places to replace '/'

* typo

* grep pass over filesep

---------

Co-authored-by: Vivian Fang <hi@vivi.sh>
2023-11-03 13:54:29 -07:00
Vivian Fang
a5d297ab97
Support for MemGPT + Autogen + Local LLM (#231)
* various fixes to get autogen working again

* MemGPT+Autogen+Local LLM example working

Co-Authored-By: nmx0 <nmx0@users.noreply.github.com>

* propagate model to other memgpt_agent constructor

* fix agent_groupchat

* tested on lm studio

---------

Co-authored-by: nmx0 <nmx0@users.noreply.github.com>
Co-authored-by: cpacker <packercharles@gmail.com>
2023-11-01 00:14:40 -07:00
Sarah Wooders
de6f6e857f
Cli bug fixes (loading human/persona text, azure setup, local setup) (#222)
* mark depricated API section

* add readme

* add readme

* add readme

* add readme

* add readme

* add readme

* add readme

* add readme

* add readme

* CLI bug fixes for azure

* check azure before running

* Update README.md

* Update README.md

* bug fix with persona loading

* revert readme

* remove print
2023-10-31 13:51:20 -07:00
sk
e66b6bdee7
Added db load ability (#106)
* Added db load ability, updated README

* Fixed spacing on multiplication

* Fixed double quotes

* Added double quotes to .db

* After reading the code, realized we can return here for .db extension, and let main handle loading the .db into archival memory.
Issue is that the final else was treating the db as a file and reading it in raw, causing issues.

* Removed .csv reference, not currently working.
2023-10-31 12:18:12 -07:00
Sarah Wooders
b7f9560bef
Refactoring CLI to use config file, connect to Llama Index data sources, and allow for multiple agents (#154)
* Migrate to `memgpt run` and `memgpt configure` 
* Add Llama index data sources via `memgpt load` 
* Save config files for defaults and agents
2023-10-30 16:47:54 -07:00
Wes
619198cc1a
Allow recursive blobs (#186)
* Allow recursive blobs in file utils.

* Make recursive blobs default behavior.
2023-10-29 21:01:57 -07:00
Sarah Wooders
0f251af761 reformat 2023-10-26 16:08:25 -07:00
Sarah Wooders
61269a2f4e add llama index querying 2023-10-26 14:25:35 -07:00
Sarah Wooders
b2405e3983 add db connector 2023-10-26 12:02:29 -07:00
Sarah Wooders
5dbc11f835 initial llama index data loading implementation 2023-10-26 11:44:47 -07:00
Vivian Fang
f48c81d9a0 Revert "Revert "cleanup""
This reverts commit 6cd2a0049b.
2023-10-25 12:42:35 -07:00
Vivian Fang
6cd2a0049b Revert "cleanup"
This reverts commit 85d9fba811, reversing
changes made to a7e06d0acc.
2023-10-25 01:02:43 -07:00
Vivian Fang
30ced8d5c8 fix memgpt_dir circular import 2023-10-24 13:28:17 -07:00
Sarah Wooders
7098090208 fix typo 2023-10-23 15:58:11 -07:00
Sarah Wooders
08b0003ff9 ensure all temporary directories are created in .memgpt folder 2023-10-23 15:07:39 -07:00
Vivian Fang
8e68cf7abd up default concurrency level 2023-10-21 17:06:58 -07:00
Vivian Fang
729495f16f first stab at running embedding generation concurrently 2023-10-21 17:06:58 -07:00
Vivian Fang
f8a619fd86 Revert "Revert "Merge pull request #71 from cpacker/pdf-support""
This reverts commit 0d4faa1357.
2023-10-21 14:21:02 -07:00
Charles Packer
0d4faa1357 Revert "Merge pull request #71 from cpacker/pdf-support"
This reverts commit 1d56625864, reversing
changes made to b30c7836f0.
2023-10-21 14:18:43 -07:00
Vivian Fang
ab172f142f add pdf support 2023-10-21 01:35:07 -07:00
Vivian Fang
1509166b51 add csv support for preloading files into archival memory 2023-10-19 16:11:55 -07:00
Vivian Fang
cf927b4e86 support generating embeddings on the fly 2023-10-18 19:32:46 -07:00
Vivian Fang
e0ed9ca931 move test.db to examples folder, move main_db.py into main.py 2023-10-17 01:17:06 -07:00
Vivian Fang
9f7b73c5ac add flag for preloading files 2023-10-16 16:55:25 -07:00
Vivian Fang
2a7e943186 fix summarizer 2023-10-15 21:07:45 -07:00
Vivian Fang
fab22cb5dc fix paging bug, implement llamaindex api search on top of memgpt 2023-10-15 16:45:41 -07:00
Vivian Fang
2fb1a1edbc add debug flag 2023-10-13 00:40:02 -07:00
Charles Packer
5ed4b8eb92 init commit 2023-10-12 18:48:58 -07:00