DocsGPT
DocsGPT copied to clipboard
Select Source Documentation
Select Source Documentation popup on frontend.
Ubunto Console:
AttributeError: 'str' object has no attribute 'reverse'
docsgpt-backend-1 | Traceback (most recent call last):
docsgpt-backend-1 | File "/app/app.py", line 335, in api_answer
docsgpt-backend-1 | history.reverse()
docsgpt-backend-1 | AttributeError: 'str' object has no attribute 'reverse'
docsgpt-redis-1 | 1:M 15 Aug 2023 12:36:09.116 * DB saved on disk
docsgpt-redis-1 | 1:M 15 Aug 2023 12:36:10.243 * DB saved on disk
docsgpt-redis-1 | 1:M 15 Aug 2023 12:36:12.774 # Failed opening the RDB file root (in server root dir /var/spool/cron) for saving: Permission denied
docsgpt-redis-1 | 1:M 15 Aug 2023 12:36:13.314 # Failed opening the RDB file root (in server root dir /etc/crontabs) for saving: Permission denied
docsgpt-redis-1 | 1:M 15 Aug 2023 12:36:13.662 # Failed opening the RDB file root (in server root dir /etc/crontabs) for saving: Permission denied
I'm having the same problem ..
I found error message in Docker canot convert SELF_HOSTED_MODEL to boolean
then i try to fix by adding SELF_HOSTED_MODEL=false
into .env file and restart docker compose
it's worked.
Thanks, @panapol-p
it works
@AonBalouch i try to add SELF_HOSTED_MODEL=false into .env file and restart docker compose, that error message disappear, but i still can't Select Source Documentation popup on frontend.
env as follow: LLM_NAME=llama.cpp VITE_API_STREAMING=true EMBEDDINGS_NAME=huggingface_sentence-transformers/all-mpnet-base-v2 SELF_HOSTED_MODEL=false
but when i docker logs -f docgpt_redis_1, i got this warning message:
WARNING Memory overcommit must be enabled! Without it, a background save or replication may fail under low memory condition. Being disabled, it can can also cause failures without low memory condition, see https://github.com/jemalloc/jemalloc/issues/1328. To fix this issue add 'vm.overcommit_memory = 1' to /etc/sysctl.conf and then reboot or run the command 'sysctl vm.overcommit_memory=1' for this to take effect.
@finalxcode this issue happens when the frontend cannot reach the backend. See #248
@bck01215 you are right, now i fixed this issue, but the sources don't display as same as demo site, i don't know how to change these sources
We removed select source doc widget. Now you will get an error if your backend is not connected properly.