Skip to content

Instantly share code, notes, and snippets.

View jarkko-hautakorpi's full-sized avatar

Jarkko jarkko-hautakorpi

View GitHub Profile
REM This is to fix teams issue: MS Teams keeps randomly crashing
REM https://answers.microsoft.com/en-us/msoffice/forum/all/ms-teams-keeps-randomly-crashing/d4b3fd90-c77e-468a-82a7-8190db44f73f
taskkill /F /IM teams.exe
del /f /s /q %appdata%\Microsoft\teams\application cache\cache\*
del /f /s /q %appdata%\Microsoft\teams\blob_storage\*
del /f /s /q %appdata%\Microsoft\teams\databases\*
del /f /s /q %appdata%\Microsoft\teams\GPUcache\*
del /f /s /q %appdata%\Microsoft\teams\IndexedDB\*
del /f /s /q "%appdata%\Microsoft\teams\Local Storage\*"
git clone https://github.com/cpacker/MemGPT.git
conda create -n memgpt python=3.10
conda activate memgpt
cd memgpt
pip install -r requirements.txt
export OPENAI_API_KEY="YOUR_API_KEY"
# download .txt docs from: https://huggingface.co/datasets/MemGPT/example-sec-filings/tree/main
# place in "memgpt/personas/examples/preload_archival/*.txt"
python3 main.py --archival_storage_files_compute_embeddings="memgpt/personas/examples/preload_archival/*.txt" --persona=memgpt_doc --human=basic