Commit Graph

55 Commits

Author SHA1 Message Date
cpacker
e7e27fed17 fix: patch bug in validation decorator 2024-01-15 13:40:29 -08:00
cpacker
95782da8a3 fix: patch bug in type checker 2024-01-15 13:27:25 -08:00
cpacker
434a4b2f99 fix: Fixed type hints in metadata.py, added basic type-checking decorator 2024-01-15 12:55:21 -08:00
ifsheldon
dd2f4fc873 fix: Turn off all ensure_ascii of json.dumps (#800) 2024-01-11 23:54:35 -08:00
Charles Packer
f118e01ad1 feat: Migration command for importing old agents into new DB backend (#802)
Co-authored-by: Sarah Wooders <sarahwooders@gmail.com>
2024-01-11 14:57:21 -08:00
Sarah Wooders
54fa07da7a refactor!: Migrate users + agent information into storage connectors (#785)
Co-authored-by: cpacker <packercharles@gmail.com>
2024-01-08 15:59:49 -08:00
cpacker
e02a75d40c clean up the error messages stemming from a badly configured endpoint (bad url, url is none, etc) 2024-01-02 13:28:06 -08:00
Sarah Wooders
77e72d18da Merge branch 'main' into cherry-pick-storage-refactor 2023-12-27 13:47:27 +04:00
Charles Packer
42e2a301eb 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
Sarah Wooders
0c2bf05406 Bugfixes for get_all function and code cleanup to match main 2023-12-26 17:50:49 +04:00
Sarah Wooders
453a7c0c3e Refactor chroma integration 2023-12-26 17:05:41 +04:00
Sarah Wooders
223e196da8 Support recall and archival memory for postgres
working test
2023-12-26 17:05:24 +04:00
Sarah Wooders
408df89c9c Add in memory storage connector implementation for refactored storage 2023-12-26 17:05:24 +04:00
Charles Packer
6394ca73ef 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
3482a196d6 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
4f23934e04 feat: Add new wrapper defaults (#656) 2023-12-21 17:05:38 +04:00
Charles Packer
569bc7da31 feat: added memgpt folder command (#632)
* added memgpt folder command

* comments
2023-12-17 10:54:17 -08:00
Charles Packer
e012802da1 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
27eb05e7e8 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
f2a2942c66 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
2d23370930 Removing dead code + legacy commands (#536) 2023-11-30 13:37:11 -08:00
Charles Packer
4ba4c02fa1 Remove .DS_Store from agents list (#485) 2023-11-19 14:35:51 -08:00
Charles Packer
e5add4e430 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
11326ec24e 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
fb29290dd4 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
2d57564c35 make timezone local by default (#298)
Co-authored-by: orderwat <github@oderwat.de>
2023-11-03 21:15:15 -07:00
Sarah Wooders
b9ce763fda VectorDB support (pgvector) for archival memory (#226) 2023-11-03 16:19:15 -07:00
Charles Packer
25dd225d04 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
5a60e92e8d 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
c9225d329e 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
9fa75e1752 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
23f3d42fae 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
4f96810a90 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
0ab3d098d2 reformat 2023-10-26 16:08:25 -07:00
Sarah Wooders
b45b5b6a75 add llama index querying 2023-10-26 14:25:35 -07:00
Sarah Wooders
f484436c43 add db connector 2023-10-26 12:02:29 -07:00
Sarah Wooders
942666d3b5 initial llama index data loading implementation 2023-10-26 11:44:47 -07:00
Vivian Fang
bc81cdcef4 Revert "Revert "cleanup""
This reverts commit 6cd2a0049b02643ef800f7c2ddb45a1f4bd5babf.
2023-10-25 12:42:35 -07:00
Vivian Fang
8c3409cf02 Revert "cleanup"
This reverts commit 85d9fba811f237fc0c625e920d4ee5995a9308f6, reversing
changes made to a7e06d0acc1b69b311fb16e386c4867337fe76f8.
2023-10-25 01:02:43 -07:00
Vivian Fang
1cb89c4f47 fix memgpt_dir circular import 2023-10-24 13:28:17 -07:00
Sarah Wooders
9309c6bc2f fix typo 2023-10-23 15:58:11 -07:00
Sarah Wooders
62cb3eda60 ensure all temporary directories are created in .memgpt folder 2023-10-23 15:07:39 -07:00
Vivian Fang
fae8ac84af up default concurrency level 2023-10-21 17:06:58 -07:00
Vivian Fang
a557b8d58c first stab at running embedding generation concurrently 2023-10-21 17:06:58 -07:00
Vivian Fang
1ae38e4bec Revert "Revert "Merge pull request #71 from cpacker/pdf-support""
This reverts commit 0d4faa135783e152a43c370e7e8e2ed04090a661.
2023-10-21 14:21:02 -07:00
Charles Packer
e428e3666b Revert "Merge pull request #71 from cpacker/pdf-support"
This reverts commit 1d566258642268084bf5029cb76c778cf19b9281, reversing
changes made to b30c7836f011b3d2c336b5dd82c1136134ac58df.
2023-10-21 14:18:43 -07:00
Vivian Fang
a1341eb1f3 add pdf support 2023-10-21 01:35:07 -07:00
Vivian Fang
0b1c57fa43 add csv support for preloading files into archival memory 2023-10-19 16:11:55 -07:00
Vivian Fang
b2d491d5e7 support generating embeddings on the fly 2023-10-18 19:32:46 -07:00
Vivian Fang
bc9fedf782 move test.db to examples folder, move main_db.py into main.py 2023-10-17 01:17:06 -07:00