Commit Graph

729 Commits

Author SHA1 Message Date
cpacker
07f422da74 added comments about tool fields 2024-01-04 11:53:06 -08:00
Sarah Wooders
ee5ece6866 Only create single table with create_all, not all 2024-01-04 11:38:31 -08:00
cpacker
e175c204b2 try another patch to recreate declarative base 2024-01-04 11:33:44 -08:00
cpacker
b525597c6a fix black 2024-01-04 11:28:31 -08:00
cpacker
e5be806247 Merge branch 'cherry-pick-storage-refactor' of github.com:cpacker/MemGPT into cherry-pick-storage-refactor 2024-01-04 11:26:41 -08:00
cpacker
5b4875834f Add extra code for wiping sqlalchemy globals 2024-01-04 11:26:35 -08:00
Sarah Wooders
2bc53ad66b Add assert for postgres storage connector column type 2024-01-04 11:20:03 -08:00
Sarah Wooders
f11f098067 Remove deprecation warnings for sqlalchemy 2024-01-04 11:03:06 -08:00
Sarah Wooders
b117cce693 Upgrade pytest version 2024-01-04 10:42:11 -08:00
Sarah Wooders
722b50f818 All tests passing locally 2024-01-04 10:34:38 -08:00
Charles Packer
9f0c796305 patch SAWarning (#782) 2024-01-04 09:54:52 -08:00
Sarah Wooders
a9853e9077 Remove incorrect dialect db model loading from sqlite 2024-01-04 09:50:51 -08:00
Sarah Wooders
6511dcaa7d Temporarily add prints 2024-01-04 09:43:19 -08:00
Sarah Wooders
5b850c937f Cleanup code for converting dialect into vector storage type 2024-01-04 09:29:24 -08:00
Sarah Wooders
ed101934da Avoid usage of Vector type for when not using postgres 2024-01-04 09:23:04 -08:00
Sarah Wooders
8b5fe4f383 Avoid usage of Vector type for when not using postgres 2024-01-04 09:11:23 -08:00
Sarah Wooders
45e6d5793d Modify tests to use openai quickstart 2024-01-03 19:01:27 -08:00
Sarah Wooders
5de2557738 Fix bug with supporting paginated search for recall memory 2024-01-03 18:32:13 -08:00
Sarah Wooders
17506b7e90 Change Message data type to use tool format and create tool_call_id field 2024-01-03 18:03:11 -08:00
cpacker
d0ef339a4a use --all-extras in poetry install for tests 2024-01-02 22:18:17 -08:00
cpacker
439efe4bc6 add pexpect to dev dependencies 2024-01-02 22:08:15 -08:00
cpacker
1f6af59e9d added a new test that makes sure the base functions are working 2024-01-02 18:20:54 -08:00
Sarah Wooders
571323c44a Update test workflow to timeout in 15 instead of 10 minutes 2024-01-02 18:06:06 -08:00
Sarah Wooders
9bd524d70a Move test_cli.py to use quickstart client 2024-01-02 17:13:25 -08:00
Sarah Wooders
e93dae02e7 Update CLI tests to use OpenAI pre-configured config 2024-01-02 16:14:22 -08:00
Sarah Wooders
ad3822b8c4 Remove sqlalchemy constraint for Message object text to be non-null 2024-01-02 15:57:19 -08:00
Sarah Wooders
6aa26086ba Deprecate list_loaded_data for listing sources, and use metadata DB instead 2024-01-02 14:04:21 -08:00
cpacker
c236ba5bdb added success and fail messages to memgpt source delete 2024-01-02 13:39:26 -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
cpacker
3de3fb8315 don't allow bad endpoint addresses during memgpt configure 2024-01-02 13:27:19 -08:00
cpacker
3fa417dcc7 added commands back 2024-01-02 13:00:59 -08:00
cpacker
b022b6e172 Merge branch 'main' into cherry-pick-storage-refactor 2024-01-02 12:21:56 -08:00
Charles Packer
323a542b8f Update local_llm_settings.md (#765) 2024-01-02 10:50:15 -08:00
Jim Lloyd
9c06056443 fix string & ws rules in json_func_calls...gbnf (#754) 2024-01-02 10:33:09 -08:00
Owen Easter
796c33f1a6 docs: linting, syntax, formatting & spelling fixes for all files (#761)
* Update README.md

* fix: 'ollama run' should be 'ollama pull'

* fix: linting, syntax, spelling corrections for all docs

* fix: markdown linting rules and missed fixes

* fix: readded space to block

* fix: changed sh blocks to text

* docs: added exception for bare urls in markdown

* docs: added exception for in-line html (MD033/no-inline-html)

* docs: made python indentation level consistent (4 space tabs) even though I prefer 2.

---------

Co-authored-by: Charles Packer <packercharles@gmail.com>
2024-01-02 10:31:50 -08:00
SaneGaming
7ea94cd058 docs: Improve Local LLM information and add WSL Troubleshooting (#752)
* Include steps for Local LLMs

Added install instructions if running LLMs locally.

* Add Windows warning

* Update installation warning for Local LLMs

Remove exact install instructions to keep page clean for QuickStart and not duplicating knowledge.

* Update local_llm_faq.md

Added WSL troubleshooting section.

* Update local_llm.md

Update FAQ Link wording

* Update local_llm_faq.md

Improve punctuation and add link to WSL Issue thread
2024-01-02 10:26:51 -08:00
Owen Easter
2e6c68215b Update README.md (#760) 2024-01-01 19:07:29 -08:00
SaneGaming
761ef19b0c Include steps for Local LLMs (#749)
Added install instructions if running LLMs locally.
2023-12-31 22:52:18 -08:00
Jim Lloyd
7ffb3c0149 feat: enum choices for list command argument (issue #732) (#746)
* enum choices for list command argument

* fixup! enum choices for list command argument
2023-12-31 13:27:10 -08:00
Charles Packer
b487366f21 Merge branch 'main' into cherry-pick-storage-refactor 2023-12-30 21:38:58 -08:00
BabellDev
b2e9a24671 feat: Add MemGPT "Python Client" (#713)
* First commit of memgpt client and some messy test code

* rolled back unnecessary changes to abstract interface; switched client to always use Queueing Interface

* Added missing interface clear() in run_command;  added convenience method for checking if an agent exists, used that in create_agent

* Formatting fixes

* Fixed incorrect naming of get_agent_memory in rest server

* Removed erroneous clear from client save method;  Replaced print statements with appropriate logger calls in server

* Updated readme with client usage instructions

* added tests for Client

* make printing to terminal togglable on queininginterface (should probably refactor this to a logger)

* turn off printing to stdout via interface by default

* allow importing the python client in a similar fashion to openai-python (see https://github.com/openai/openai-python)

* Allowed quickstart on init of client;  updated readme and test_client accordingly

* oops, fixed name of openai_api_key config key

* Fixed small typo

* Fixed broken test by adding memgpt hosted model details to agent config

* silence llamaindex 'LLM is explicitly disabled. Using MockLLM.' on server

* default to openai if user's memgpt directory is empty (first time)

* correct type hint

* updated section on client in readme

* added comment about how MemGPT config != Agent config

* patch unrelated test

* update wording on readme

* patch another unrelated test

* added python client to readme docs

* Changed 'user' to 'human' in example;  Defaulted AgentConfig.model to 'None';  Fixed issue in create_agent (accounting for dict config);  matched test code to example

* Fixed advanced example

* patch test

* patch

---------

Co-authored-by: cpacker <packercharles@gmail.com>
2023-12-30 12:43:46 -08:00
Charles Packer
0b9fdcf46c fix: added new json test case + added fix for it (also refactored clean json func) (#739) 2023-12-28 23:01:45 -08:00
Charles Packer
653693c398 feat: chatml-noforce-roles wrapper + cli fix (#738)
* added new wrapper option to turn system style messages into system role messages

* added multirole wrapper

* unrelated issue with cli print due to previous PR (not showing core memory edits)
2023-12-28 22:12:52 -08:00
Charles Packer
53500d4688 add cleanup code (#726) 2023-12-28 22:00:24 -08:00
Charles Packer
415a39cb19 docs: synced reference docs to git (#737) 2023-12-28 20:51:45 -08:00
Charles Packer
723da684b1 don't insert request heartbeat into pause heartbeat (#727) 2023-12-28 12:11:31 -08:00
Vlad Cuciureanu
5358c839ee fix: Typo in info log message and docs (#730) 2023-12-28 12:11:09 -08:00
Charles Packer
e2e2a5c78c updated CLI interface to properly print searches on archival memory + recall memory (#731) 2023-12-28 12:06:20 -08:00
Charles Packer
b5fd0d5a17 patch bug on TEI embedding lookup (#724) 2023-12-27 22:10:15 -08:00
Charles Packer
02a8a42cb0 fix: patch TEI error in load (#725)
* patch TEI error in load (now get different error)

* more hiding of MOCKLLM

* fix embedding dim

* refactored bandaid patches into custom embedding class return object patch
2023-12-27 22:09:29 -08:00