From 46e8948d81e55ada4910c4721d51b9739c22f879 Mon Sep 17 00:00:00 2001 From: Marc Green Date: Mon, 30 Oct 2023 02:49:00 +0100 Subject: [PATCH] Update FAQ with workaround for Issue #251 (#405) * Update FAQ with workaround for Issue #251 * Update website/docs/FAQ.md * Update website/docs/FAQ.md --------- Co-authored-by: Chi Wang --- website/docs/FAQ.md | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/website/docs/FAQ.md b/website/docs/FAQ.md index fb86919ad..6c87cac03 100644 --- a/website/docs/FAQ.md +++ b/website/docs/FAQ.md @@ -88,7 +88,6 @@ Otherwise, reply CONTINUE, or the reason why the task is not solved yet.""" If you have problems with agents running `pip install` or get errors similar to `Error while fetching server API version: ('Connection aborted.', FileNotFoundError(2, 'No such file or directory')`, you can choose **'python:3'** as image as shown in the code example above and that should solve the problem. - ### Agents keep thanking each other when using `gpt-3.5-turbo` When using `gpt-3.5-turbo` you may often encounter agents going into a "gratitude loop", meaning when they complete a task they will begin congratulating and thanking eachother in a continuous loop. This is a limitation in the performance of `gpt-3.5-turbo`, in contrast to `gpt-4` which has no problem remembering instructions. This can hinder the experimentation experience when trying to test out your own use case with cheaper models. @@ -108,3 +107,24 @@ prompt += termination_notice ``` **Note**: This workaround gets the job done around 90% of the time, but there are occurences where the LLM still forgets to terminate the conversation. + +## ChromaDB fails in codespaces because of old version of sqlite3 + +(from [issue #251](https://github.com/microsoft/autogen/issues/251)) + +Code examples that use chromadb (like retrieval) fail in codespaces due to a sqlite3 requirement. +``` +>>> import chromadb +Traceback (most recent call last): + File "", line 1, in + File "/home/vscode/.local/lib/python3.10/site-packages/chromadb/__init__.py", line 69, in + raise RuntimeError( +RuntimeError: Your system has an unsupported version of sqlite3. Chroma requires sqlite3 >= 3.35.0. +Please visit https://docs.trychroma.com/troubleshooting#sqlite to learn how to upgrade. +``` + +Workaround: +1. `pip install pysqlite3-binary` +2. `mkdir /home/vscode/.local/lib/python3.10/site-packages/google/colab` + +Explanation: Per [this gist](https://gist.github.com/defulmere/8b9695e415a44271061cc8e272f3c300?permalink_comment_id=4711478#gistcomment-4711478), linked from the official [chromadb docs](https://docs.trychroma.com/troubleshooting#sqlite), adding this folder triggers chromadb to use pysqlite3 instead of the default.