Commit Graph

6949 Commits

Author SHA1 Message Date
Sarah Wooders
313dc471c8 Run formatting checks with poetry (#537)
* update black version

* add workflow dispatch
2023-11-30 13:30:58 -08:00
Charles Packer
0b5d921843 Update contributing.md (typo) (#538) 2023-11-30 13:29:28 -08:00
Charles Packer
5e7676e133 Remove openai package and migrate to requests (#534) 2023-11-30 13:00:13 -08:00
Ayush Chaurasia
4a2a28981b LanceDB integration bug fixes and improvements (#528)
* fixes

* update

* lint
2023-11-30 10:32:29 -08:00
Charles Packer
8bd29c90ba Update bug_report.md 2023-11-29 13:32:20 -08:00
Charles Packer
0621fc6934 Update bug_report.md (#532) 2023-11-29 13:29:41 -08:00
Charles Packer
a367ee4072 patched a bug where outputs of a regex extraction weren't getting cast back to string, causing an issue when the dict was then passed to json.dumps() (#533) 2023-11-29 12:57:05 -08:00
Sarah Wooders
b05b09439f Add user field for vLLM endpoint (#531) 2023-11-29 12:30:42 -08:00
Sarah Wooders
eca26be7ea add autogen extra (#530) 2023-11-29 11:30:27 -08:00
Claudio Cambra
2ec6c512c4 Fix class names used in persistence manager logging (#503)
* Fix class names used in persistence manager logging

Signed-off-by: Claudio Cambra <developer@claudiocambra.com>

* Use self.__class__.__name__ for logging in different persistence managers

Signed-off-by: Claudio Cambra <developer@claudiocambra.com>

---------

Signed-off-by: Claudio Cambra <developer@claudiocambra.com>
2023-11-28 23:11:11 -08:00
Charles Packer
f4a1455c24 Clean memory error messages (#523)
* Raise a custom keyerror instead of basic keyerror to clarify issue to LLM processor

* remove self value from error message passed to LLM processor

* simplify error message propogated to llm processor
2023-11-27 16:41:42 -08:00
Charles Packer
c5d04ede82 Update mkdocs.yml (#525) 2023-11-27 16:35:20 -08:00
Charles Packer
89013567fa Update mkdocs theme, small fixes for mkdocs.yml (#522) 2023-11-27 16:30:41 -08:00
Sarah Wooders
ed356dd82c Add support for HuggingFace Text Embedding Inference endpoint for embeddings (#524) 2023-11-27 16:28:49 -08:00
Charles Packer
3bc20291b4 Update contributing.md (#520) 2023-11-27 13:51:30 -08:00
Charles Packer
1a490b8aef Update contributing.md (#518) 2023-11-27 13:05:30 -08:00
Sarah Wooders
bd4eeb3ccd Update contributing guidelines (#516)
* update contributing

* Update CONTRIBUTING.md

* Update CONTRIBUTING.md

* Update CONTRIBUTING.md

* Update CONTRIBUTING.md

* Update CONTRIBUTING.md
2023-11-27 13:01:47 -08:00
Paul Asquin
20fe8ddc92 fix autogem to autogen (#512) 2023-11-27 13:00:33 -08:00
Sarah Wooders
fe6be5c3bd Add warning if no data sources loaded on /attach command (#513)
* minor fix

* add warn instead of error for no data sources
2023-11-27 13:00:23 -08:00
Charles Packer
04e6d548c3 extra arg being passed causing a runtime error (#517) 2023-11-27 11:36:26 -08:00
Charles Packer
188236b457 add core memory char limits to text shown in core memory (#508)
* add core memory char limits to text shown in core memory

* include char limit in xml tag

* add flag to allow reverting to old version
2023-11-26 20:00:01 -08:00
Charles Packer
f92d8dfc8b add a longer prefix that to the default wrapper (#510)
* add a longer prefix that to the default wrapper (not just opening brace, but up to 'function: ' part since that is always present)

* drop print
2023-11-26 19:59:49 -08:00
Charles Packer
2121130a88 add new manual json parser meant to catch send_message calls with trailing bad extra chars (#509)
* add new manual json parser meant to catch send_message calls with stray trailing chars, patch json error passing

* typo
2023-11-25 16:30:12 -08:00
Sarah Wooders
58bdb1ebd0 update version (#497) 2023-11-22 08:58:24 -08:00
Charles Packer
7712a06ffd Fixes bugs with AutoGen implementation and exampes (#498)
* patched bugs in autogen agent example, updated autogen agent creation to follow agentconfig paradigm

* more fixes

* black

* fix bug in autoreply

* black

* pass default autoreply through to the memgpt autogen conversibleagent subclass so that it doesn't leave empty messages which can trigger errors in local llm backends like lmstudio
2023-11-21 19:15:28 -08:00
Charles Packer
823a3e1694 Add error handling during linking imports (#495)
* Add error handling during linking imports

* correct typo + make error message even more explicit

* deadcode
2023-11-21 15:16:16 -08:00
Charles Packer
de0ccea181 vLLM support (#492)
* init vllm (not tested), uses POST API not openai wrapper

* add to cli config list

* working vllm endpoint

* add model configuration for vllm

---------

Co-authored-by: Sarah Wooders <sarahwooders@gmail.com>
2023-11-21 15:16:03 -08:00
Max Blackmer, CSM
d72edb6a99 ANNA, an acronym for Adaptive Neural Network Assistant. Which acts as your personal research assistant really good with archival documents and research. (#494) 2023-11-20 11:43:08 -08:00
Charles Packer
8a7a64c7f9 patch web UI (#484)
* patch web UI

* set truncation_length
2023-11-19 14:56:10 -08:00
Charles Packer
9989fd9a52 Fix #487 (summarize call uses OpenAI even with local LLM config) (#488)
* use new chatcompletion function that takes agent config inside of summarize

* patch issue with model now missing
2023-11-19 14:54:12 -08:00
Charles Packer
4ba4c02fa1 Remove .DS_Store from agents list (#485) 2023-11-19 14:35:51 -08:00
sahusiddharth
351f8094b5 Docs: Fix typos (#477) 2023-11-17 15:12:14 -08:00
Prashant Dixit
11e11bfac4 Lancedb storage integration (#455) 2023-11-17 11:36:30 -08:00
Charles Packer
86ac4ff4de updated websocket protocol and server (#473) 2023-11-16 22:50:00 -08:00
Charles Packer
576795ffdb move webui to new openai completions endpoint, but also provide existing functionality via webui-legacy backend (#468) 2023-11-15 23:08:30 -08:00
Charles Packer
398287d1ca Add d20 function example to readthedocs (#464)
* Update functions.md

* Update functions.md
2023-11-15 16:12:16 -08:00
Charles Packer
b592328a71 bugfix for linking functions from ~/.memgpt/functions (#463) 2023-11-15 15:56:42 -08:00
Charles Packer
40ecc8e7e7 Update functions.md (#461) 2023-11-15 15:51:08 -08:00
Sarah Wooders
f781d4426a Set service context for llama index in local.py (#462)
* 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

* remove asserts

* bump version

* set global context for llama index
2023-11-15 15:39:35 -08:00
Sarah Wooders
2bd7773f25 [version] bump version to 0.2.3 (#457) 2023-11-15 10:21:10 -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
Oliver Smith
a9b5a3d806 When default_mode_endpoint has a value, it needs to become model_endpoint. (#452)
Co-authored-by: Oliver Smith <oliver.smith@superevilmegacorp.com>
2023-11-15 01:18:23 -08:00
cpacker
6275a78222 missing .md file 2023-11-15 01:11:10 -08:00
Charles Packer
f63419c78b Update documentation [local LLMs, presets] (#453)
* updated local llm documentation

* updated cli flags to be consistent with documentation

* added preset documentation

* update test to use new arg

* update test to use new arg
2023-11-15 01:02:57 -08:00
Wes
2597ff2eb8 Add load and load_and_attach functions to memgpt autogen agent. (#430)
* Add load and load_and_attach functions to memgpt autogen agent.

* Only recompute files if dataset does not exist.
2023-11-14 22:51:21 -08:00
Sarah Wooders
a23ba80ac8 Update config to include memgpt_version and re-run configuration for old versions on memgpt run (#450)
* 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

* remove asserts

* store config versions and force update in some cases
2023-11-14 22:50:24 -08:00
cpacker
d705271aff patch websocket server after presets refactor 2023-11-14 16:09:31 -08:00
cpacker
88cc33244a patch bad merge 2023-11-14 16:09:13 -08:00
Sarah Wooders
ec2bda4966 Refactor config + determine LLM via config.model_endpoint_type (#422)
* mark depricated API section

* 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

* update config fields

* cleanup config loading

* commit

* remove asserts

* refactor configure

* put into different functions

* add embedding default

* pass in config

* fixes

* allow overriding openai embedding endpoint

* black

* trying to patch tests (some circular import errors)

* update flags and docs

* patched support for local llms using endpoint and endpoint type passed via configs, not env vars

* missing files

* fix naming

* fix import

* fix two runtime errors

* patch ollama typo, move ollama model question pre-wrapper, modify question phrasing to include link to readthedocs, also have a default ollama model that has a tag included

* disable debug messages

* made error message for failed load more informative

* don't print dynamic linking function warning unless --debug

* updated tests to work with new cli workflow (disabled openai config test for now)

* added skips for tests when vars are missing

* update bad arg

* revise test to soft pass on empty string too

* don't run configure twice

* extend timeout (try to pass against nltk download)

* update defaults

* typo with endpoint type default

* patch runtime errors for when model is None

* catching another case of 'x in model' when model is None (preemptively)

* allow overrides to local llm related config params

* made model wrapper selection from a list vs raw input

* update test for select instead of input

* Fixed bug in endpoint when using local->openai selection, also added validation loop to manual endpoint entry

* updated error messages to be more informative with links to readthedocs

* add back gpt3.5-turbo

---------

Co-authored-by: cpacker <packercharles@gmail.com>
2023-11-14 15:58:19 -08:00
Charles Packer
442a0ca8bf always cast config.context_window to int before use (#444)
* always cast config.context_window to int before use

* extra code to be super safe if self.config.context_window is somehow None
2023-11-14 15:12:00 -08:00