Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Select Source Documentation #301

Closed
AonBalouch opened this issue Aug 15, 2023 · 7 comments
Closed

Select Source Documentation #301

AonBalouch opened this issue Aug 15, 2023 · 7 comments

Comments

@AonBalouch
Copy link

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

@Sayed-Ameer
Copy link

I'm having the same problem ..

@panapol-p
Copy link

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.

@ozbillwang
Copy link

Thanks, @panapol-p

it works

@finalxcode
Copy link

finalxcode commented Nov 29, 2023

@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 jemalloc/jemalloc#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.

@bck01215
Copy link

bck01215 commented Dec 1, 2023

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

@finalxcode
Copy link

@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

@dartpain
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants