DocsGPT icon indicating copy to clipboard operation
DocsGPT copied to clipboard

Select Source Documentation

Open AonBalouch opened this issue 1 year ago • 6 comments

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

image

image

AonBalouch avatar Aug 15 '23 13:08 AonBalouch

I'm having the same problem ..

Sayed-Ameer avatar Aug 16 '23 08:08 Sayed-Ameer

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.

panapol-p avatar Aug 18 '23 07:08 panapol-p

Thanks, @panapol-p

it works

ozbillwang avatar Aug 29 '23 11:08 ozbillwang

@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 avatar Nov 29 '23 12:11 finalxcode

@finalxcode this issue happens when the frontend cannot reach the backend. See #248

bck01215 avatar Dec 01 '23 00:12 bck01215

@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

finalxcode avatar Dec 05 '23 14:12 finalxcode

We removed select source doc widget. Now you will get an error if your backend is not connected properly.

dartpain avatar Sep 11 '24 11:09 dartpain