Commit Graph

58 Commits

Author SHA1 Message Date
Sarah Wooders
7c80e800c3 feat: create docker-image.yml (#1181) 2024-03-21 15:58:37 -07:00
Charles Packer
e7f42d1420 fix: patch AutoGen integration for 0.3.5 + add AutoGen integration tests (#1081) 2024-03-02 13:45:12 -08:00
tombedor
1097eee7ab fix: configure black (#1072) 2024-02-29 15:19:08 -08:00
Sarah Wooders
3b99151711 feat: Create RESTClient and Admin client for interacting with server from python (#1033) 2024-02-22 11:16:01 -08:00
Charles Packer
dca193b01c ci: Update rdme-openapi.yml (#1027) 2024-02-18 15:07:46 -08:00
Charles Packer
63dfd5c545 docs: cleanup API page (#1026) 2024-02-18 14:58:07 -08:00
Charles Packer
01ab77f23f ci: run quickstart before memgpt server (#1021) 2024-02-17 16:41:32 -08:00
Sarah Wooders
bf252b90f0 feat: Partial support for OpenAI-compatible assistant API (#838) 2024-02-13 16:09:20 -08:00
Sarah Wooders
da7ecbf103 fix: Remove document truncation and replace DB inserts with upserts (#973) 2024-02-08 20:46:21 -08:00
Charles Packer
dc4fdb1c5c ci: disable workflows on external (#934) 2024-01-27 16:45:54 -08:00
Sarah Wooders
7f94c705b5 chore: Update nightly publish workflow token (#930) 2024-01-25 12:20:59 -08:00
RT
597ba3f253 build: Add a filter to only allow the Pypi publish Actions to be run from the primary repo (#924) 2024-01-24 13:05:43 -08:00
Charles Packer
e8e376cd9c ci: allow pyright to fail for the time being as a warning (#874) 2024-01-20 16:34:27 -08:00
Charles Packer
3f877af66f fix: patch typo, ci: disable pyright on main (#872) 2024-01-20 16:22:19 -08:00
RT
114782a360 build: Add a warn-only pyright Github action (#861) 2024-01-20 16:03:20 -08:00
RT
ccc14e2f76 build: Rename Github actions to improve clarity (#862) 2024-01-19 15:32:11 -08:00
RT
61897921fd build: Update all actions to use cached poetry builds (#846) 2024-01-18 10:31:12 -08:00
RT
8120d56e67 build: Upgrade all github actions to use checkout@v4 (#844) 2024-01-17 22:30:33 -08:00
RT
2d7c5a0487 build: Update the pytest script to cache poetry artifacts, so tests finish faster (#843) 2024-01-17 17:31:14 -08:00
Charles Packer
d9ead2084e Update rdme-openapi.yml (#828) 2024-01-15 23:04:40 -08:00
Charles Packer
0b66bb4848 docs: add openapi sync to workflow actions (#827) 2024-01-15 23:01:10 -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
d0ef339a4a use --all-extras in poetry install for tests 2024-01-02 22:18:17 -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
5f554d305b Increase workflow test timeout time + add test prints 2023-12-27 15:42:11 +04:00
Sarah Wooders
ba8efb03e8 Add sqlalchemy package 2023-12-27 14:58:57 +04:00
Sarah Wooders
545fc6cf79 ci: Run tests using postgres docker container (#715)
* use postgres docker for tests

* checkout repo

* add checkout

* remove secrets
2023-12-27 13:44:33 +04:00
Charles Packer
f8b99b562f feat: Migrate docs (#646)
* updated docs for readme

* Update index.md

* Update index.md

* added header

* broken link

* sync heading sizes

* fix various broken rel links

* Update index.md

* added webp

* Update index.md

* strip mkdocs/rtk files

* replaced readthedocs references with readme
2023-12-18 20:29:24 -08:00
Charles Packer
10a59ed4b6 added semantic pr github action https://github.com/amannn/action-semantic-pull-request (#634) 2023-12-16 13:44:12 -08:00
Charles Packer
b7427e2de7 API server refactor + REST API (#593)
* init server refactor

* refactored websockets server/client code to use internal server API

* added intentional fail on test

* update workflow to try and get test to pass remotely

* refactor to put websocket code in a separate subdirectory

* added fastapi rest server

* add error handling

* modified interface return style

* disabled certain tests on remote

* added SSE response option for user_message

* fix ws interface test

* fallback for oai key

* add soft fail for test when localhost is borked

* add step_yield for all server related interfaces

* extra catch

* update toml + lock with server add-ons (add uvicorn+fastapi, move websockets to server extra)

* regen lock file

* added pytest-asyncio as an extra in dev

* add pydantic to deps

* renamed CreateConfig to CreateAgentConfig

* fixed POST request for creating agent + tested it
2023-12-11 15:08:42 -08:00
Sarah Wooders
aecc4c1deb Add lancedb and chroma into default package dependencies (#605)
* add lancedb and chroma info default dependencies

* Update tests.yml

---------

Co-authored-by: Charles Packer <packercharles@gmail.com>
2023-12-10 21:20:33 -08:00
Sarah Wooders
6a155dfc90 Chroma storage integration (#285) 2023-12-05 17:49:00 -08:00
Sarah Wooders
2d23370930 Removing dead code + legacy commands (#536) 2023-11-30 13:37:11 -08:00
Sarah Wooders
313dc471c8 Run formatting checks with poetry (#537)
* update black version

* add workflow dispatch
2023-11-30 13:30:58 -08:00
Sarah Wooders
d117557b6a Upgrade workflows to Python 3.11 (#441)
* use python 3.11

* change format
2023-11-15 10:11:59 -08:00
Vivian Fang
f5ab162852 Fix main.yml to not rely on requirements.txt (#411) 2023-11-10 09:24:40 -08:00
Charles Packer
354bd520e0 softpass test when keys are missing (#369)
* softpass test when keys are missing

* update to use local model

* both openai and local

* typo

* fix

* Specify model inference and embedding endpoint separately  (#286)

* Fix config tests (#343)

Co-authored-by: Vivian Fang <hi@vivi.sh>

* Avoid throwing error for older `~/.memgpt/config` files due to missing section `archival_storage` (#344)

* avoid error if has old config type

* Dependency management  (#337)

* Divides dependencies into `pip install pymemgpt[legacy,local,postgres,dev]`. 
* Update docs

* Relax verify_first_message_correctness to accept any function call (#340)

* Relax verify_first_message_correctness to accept any function call

* Also allow missing internal monologue if request_heartbeat

* Cleanup

* get instead of raw dict access

* Update `poetry.lock` (#346)

* 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

* remove print

* make errors for cli flags more clear

* format

* fix imports

* fix imports

* add prints

* update lock

* Add autogen example that lets you chat with docs (#342)

* Relax verify_first_message_correctness to accept any function call

* Also allow missing internal monologue if request_heartbeat

* Cleanup

* get instead of raw dict access

* Support attach in memgpt autogen agent

* Add docs example

* Add documentation, cleanup

* add gpt-4-turbo (#349)

* add gpt-4-turbo

* add in another place

* change to 3.5 16k

* Revert relaxing verify_first_message_correctness, still add archival_memory_search as an exception (#350)

* Revert "Relax verify_first_message_correctness to accept any function call (#340)"

This reverts commit 30e911057d755f5946d7bc2ba54619b5f2e08dc3.

* add archival_memory_search as an exception for verify

* Bump version to 0.1.18 (#351)

* Remove `requirements.txt` and `requirements_local.txt` (#358)

* update requirements to match poetry

* update with extras

* remove requirements

* disable pretty exceptions (#367)

* Updated documentation for users (#365)


---------

Co-authored-by: Vivian Fang <hi@vivi.sh>

* Create pull_request_template.md (#368)

* Create pull_request_template.md

* Add pymemgpt-nightly workflow (#373)

* Add pymemgpt-nightly workflow

* change token name

* Update lmstudio.md (#382)

* Update lmstudio.md

* Update lmstudio.md

* Update lmstudio.md to show the Prompt Formatting Option (#384)

* Update lmstudio.md to show the Prompt Formatting Option

* Update lmstudio.md Update the screenshot

* Swap asset location from #384 (#385)

* Update poetry with `pg8000` and include `pgvector` in docs  (#390)

* Allow overriding config location with `MEMGPT_CONFIG_PATH` (#383)

* Always default to local embeddings if not OpenAI or Azure  (#387)

* Add support for larger archival memory stores (#359)

* Replace `memgpt run` flags error with warning + remove custom embedding endpoint option + add agent create time (#364)

* Update webui.md (#397)

turn emoji warning into markdown warning

* Update webui.md (#398)

* dont hard code embeddings

* formatting

* black

* add full deps

* remove changes

* update poetry

---------

Co-authored-by: Sarah Wooders <sarahwooders@gmail.com>
Co-authored-by: Vivian Fang <hi@vivi.sh>
Co-authored-by: MSZ-MGS <65172063+MSZ-MGS@users.noreply.github.com>
2023-11-09 12:11:19 -08:00
Vivian Fang
1378e5ed5e Add pymemgpt-nightly workflow (#373)
* Add pymemgpt-nightly workflow

* change token name
2023-11-07 23:09:59 -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
Sarah Wooders
e07a7ac1ef Fix config tests (#343)
Co-authored-by: Vivian Fang <hi@vivi.sh>
2023-11-06 18:43:23 -08:00
Charles Packer
94893b4bd5 try to patch hanging test (#295)
* try to patch hanging test

* add a timeout on the test
2023-11-03 19:11:29 -07:00
Sarah Wooders
b9ce763fda VectorDB support (pgvector) for archival memory (#226) 2023-11-03 16:19:15 -07:00
Charles Packer
77fd987f2a Add basic tests that are run on PR/main (#228)
* make tests dummy to make sure github workflow is fine

* black test

* strip circular import

* further dummy-fy the test

* use pexpect

* need y

* Update tests.yml

* Update tests.yml

* added prints

* sleep before decode print

* updated test to match legacy flow

* revising test where it fails

* comment out enter your message check for now, pexpect seems to be stuck on only setting the bootup message

* weird now it's not showing Bootup sequence complete?

* added debug

* handle none

* allow more time

* loosen string check

* add enter after commands

* modify saved compontent snippet

* add try again check

* more sendlines

* more excepts

* test passing locally

* Update tests.yml

* dont clearline

* add EOF catch that seems to only happen on github actiosn (ubuntu) but not macos

* more eof

* try flushing

* add strip_ui flag

* fix archival_memory_search and memory print output

* Don't use questionary for input if strip_ui

* Run black

* Always strip UI if TEST is set

* Add another flush

* expect Enter your message

* more debug prints

* one more shot at printing debug info

* stray fore color in stripped ui

* tests pass locally

* cleanup

---------

Co-authored-by: Vivian Fang <hi@vivi.sh>
2023-11-01 17:01:45 -07:00
Vivian Fang
d7d6fbc42a Run tests on PRs to main 2023-11-01 13:57:21 -07:00
Vivian Fang
a42d4341a2 Run tests on basic-tests branch 2023-11-01 13:52:55 -07:00
Charles Packer
8e6b0d6f6f Update tests.yml
temporarily disable broken test
2023-11-01 00:14:16 -07:00
Charles Packer
351dc4ef22 Update tests.yml 2023-10-31 15:31:56 -07:00
Charles Packer
6f8db9b7f3 Create tests.yml 2023-10-31 15:14:37 -07:00
Charles Packer
4fc88f95f1 Update black_format.yml 2023-10-31 13:47:41 -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