Commit Graph

600 Commits

Author SHA1 Message Date
Charles Packer
2ed31fa2ad Update LICENSE 2023-12-13 21:53:03 -08:00
Charles Packer
e70a59dcd4 added autogen as an extra (#616)
* added autogen as an extra

* updated docs

Co-authored-by: hemanthsavasere <hemanth.savasere@gmail.com>
2023-12-13 21:36:03 -08:00
Charles Packer
8cc1ed0f59 updated local APIs to return usage info (#585)
* updated APIs to return usage info

* tested all endpoints
2023-12-13 21:11:20 -08:00
Charles Packer
2048ba179b added memgpt server command (#611)
* added memgpt server command

* added the option to specify a port (rest default 8283, ws default 8282)

* fixed import in test

* added agent saving on shutdown

* added basic locking mechanism (assumes only one server.py is running at the same time)

* remove 'STOP' from buffer when converting to list for the non-streaming POST resposne

* removed duplicate on_event (redundant to lifespan)

* added GET agents/memory route

* added GET agent config

* added GET server config

* added PUT route for modifying agent core memory

* refactored to put server loop in separate function called via main
2023-12-13 00:41:40 -08:00
Charles Packer
b3f1f50a6c Update LICENSE 2023-12-12 17:21:54 -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
033d9d61f4 Bump version 0.2.7 (#607) 2023-12-10 22:36:19 -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
Charles Packer
0d8b95e2a7 AutoGen misc fixes (#603)
* don't add anything except for assistant messages to the global autogen message historoy

* properly format autogen messages when using local llms (allow naming to get passed through to the prompt formatter)

* add extra handling of autogen's name field in step()

* comments
2023-12-10 20:52:21 -08:00
Charles Packer
b2e88da277 Patch azure embeddings + handle azure deployments properly (#594)
* Fix bug where embeddings endpoint was getting set to deployment, upgraded pinned llama-index to use new version that has azure endpoint

* updated documentation

* added memgpt example for openai

* change wording to match configure
2023-12-08 16:31:43 -08:00
Charles Packer
52d4befdba fix runtime error (#586) 2023-12-05 23:01:37 -08:00
Sarah Wooders
dcceb8671f Remove broken tests from chroma merge (#584) 2023-12-05 22:09:44 -08:00
Sarah Wooders
ff54e2f04a Fix pyproject.toml chroma version (#582)
* 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

* add initial postgres implementation

* working chroma loading

* add postgres tests

* working initial load into postgres and chroma

* add load index command

* semi working load index

* disgusting import code thanks to llama index's nasty APIs

* add postgres connector

* working postgres integration

* working local storage (changed saving)

* implement /attach

* remove old code

* split up storage conenctors into multiple files

* remove unused code

* cleanup

* implement vector db loading

* cleanup state savign

* add chroma

* minor fix

* fix up chroma integration

* fix list error

* update dependencies

* update docs

* format

* cleanup

* forgot to add embedding file

* upgrade llama index

* fix data source naming bug

* remove legacy

* os import

* upgrade chroma version

* fix chroma package
2023-12-05 18:40:20 -08:00
Sarah Wooders
6a155dfc90 Chroma storage integration (#285) 2023-12-05 17:49:00 -08:00
Charles Packer
1d915cce86 allow passing skip_verify to autogen constructors (#581)
* allow passing skip_verify to autogen constructors

* added flag to examples with a NOTE, also added to docs
2023-12-05 13:28:33 -08:00
Charles Packer
2fd5a14d4a Update cli_faq.md 2023-12-05 12:46:34 -08:00
Charles Packer
05df435550 Update cli_faq.md 2023-12-05 12:40:59 -08:00
Charles Packer
9e947aaf28 Update cli_faq.md 2023-12-05 12:33:50 -08:00
Sarah Wooders
03dee5bf0c Bump version to 0.2.6 (#573) 2023-12-04 23:04:33 -08:00
Charles Packer
b65980e2b3 add back dotdict for backcompat (#572) 2023-12-04 23:02:22 -08:00
Charles Packer
dc18fd530a Add pyyaml package to pyproject.toml (#557) 2023-12-04 18:48:12 -08:00
Charles Packer
3fb8e62135 Add safety check to pop (#575)
* Add safety check to pop

* typo
2023-12-04 14:18:36 -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
Claudio Cambra
14fbfa1406 Fix crash from bad key access into response_message without function_call (#437)
Signed-off-by: Claudio Cambra <developer@claudiocambra.com>
2023-12-04 13:58:36 -08:00
Charles Packer
408ccec317 Update autogen.md (#571)
Update example config to match `pyautogen==0.2.0`
2023-12-04 13:02:49 -08:00
Charles Packer
2f0e87454f Update autogen.md 2023-12-04 12:52:25 -08:00
Charles Packer
4b8ce55280 Update autogen.md to include Azure config example + patch for pyautogen>=0.2.0 (#555)
* Update autogen.md

* in groupchat example add an azure elif

* fixed missing azure mappings + corrected the gpt-4-turbo one

* Updated MemGPT AutoGen agent to take credentials and store them in the config (allows users to use memgpt+autogen without running memgpt configure), also patched api_base kwarg for autogen >=v0.2

* add note about 0.2 testing

* added overview to autogen integration page

* default examples to openai, sync config header between the two main examples, change speaker mode to round-robin in 2-way chat to supress warning

* sync config header on last example (not used in docs)

* refactor to make sure we use existing config when writing out extra credentials

* fixed bug in local LLM where we need to comment out api_type (for pyautogen>=0.2.0)
2023-12-04 12:49:08 -08:00
Charles Packer
df999de4c1 use a consistent warning prefix across codebase (#569) 2023-12-04 11:38:51 -08:00
Alex Perez
49e8308fe7 Update storage.md (#564)
fix typo
2023-12-03 23:01:32 -08:00
Charles Packer
fd148132c5 Update README.md 2023-12-02 13:17:22 -08:00
Charles Packer
74e7826100 fix cannot import name 'EmptyIndex' from 'llama_index' (#558) 2023-12-01 18:09:29 -08:00
Sarah Wooders
4bee883bf5 Upgrade to llama_index=0.9.10 (#556)
* minor fix

* forgot to add embedding file

* upgrade llama index
2023-12-01 17:45:25 -08:00
Sarah Wooders
2004af555f Add docs file for customizing embedding mode (#554)
* minor fix

* forgot to add embedding file
2023-12-01 16:31:27 -08:00
Sarah Wooders
9f9660bbf7 bump version (#551) 2023-12-01 16:10:58 -08:00
Charles Packer
a80568ed3d Update README.md 2023-12-01 14:45:14 -08:00
Sarah Wooders
cedf8778af Add documentation for using Hugging Face models for embeddings (#549) 2023-12-01 14:36:07 -08:00
Sarah Wooders
f7b4213ef8 Fix vLLM endpoint to have correct suffix (#548)
* minor fix

* fix vllm endpoint

* fix docs
2023-12-01 14:11:05 -08:00
Charles Packer
9fc4dedd7b Update autogen.md 2023-12-01 11:36:01 -08:00
Charles Packer
69668d275b Update ollama.md 2023-12-01 11:33:18 -08:00
Charles Packer
152f78d3d8 Update ollama.md 2023-12-01 11:32:22 -08:00
Charles Packer
d24f294f2b Update ollama.md 2023-12-01 11:31:19 -08:00
Charles Packer
a344732ce1 Update vllm.md 2023-12-01 11:29:00 -08:00
Charles Packer
5d3f2f1a12 added vLLM doc page since we support it (#545)
* added vLLM doc page since we support it

* capitalization

* updated documentation
2023-12-01 11:27:24 -08:00
Charles Packer
a2bf5a2b58 update docs (#547)
* update admonitions

* Update local_llm.md

* Update webui.md

* Update autogen.md

* Update storage.md

* Update example_chat.md

* Update example_data.md

* Update example_chat.md

* Update example_data.md
2023-12-01 11:23:43 -08:00
Charles Packer
b80b816856 Update autogen.md (#544) 2023-11-30 18:12:15 -08:00
Charles Packer
8323fb6ec3 clean docs (#543) 2023-11-30 18:09:14 -08:00
Charles Packer
fe7193eea3 Documentation update (#541)
* Update autogen.md

* Update autogen.md
2023-11-30 17:52:47 -08:00
Charles Packer
e9010068a9 Update local_llm.md (#542) 2023-11-30 17:52:32 -08:00
Charles Packer
b741b601fb Update AutoGen documentation and notebook example (#540)
* Update AutoGen documentation

* Update webui.md

* Update webui.md

* Update lmstudio.md

* Update lmstudio.md

* Update mkdocs.yml

* Update README.md

* Update README.md

* Update README.md

* Update autogen.md

* Update local_llm.md

* Update local_llm.md

* Update autogen.md

* Update autogen.md

* Update autogen.md

* refreshed the autogen examples + notebook (notebook is untested)

* unrelated patch of typo I noticed

* poetry remove pyautogen, then manually removed autogen extra in .toml

* add pdf dependency

---------

Co-authored-by: Sarah Wooders <sarahwooders@gmail.com>
2023-11-30 17:45:04 -08:00
Sarah Wooders
2857ae1c81 Remove usage of BACKEND_TYPE (#539) 2023-11-30 14:18:25 -08:00