Comments (6)
If they are existing users, you can add them to their auth.json entries and/or they can push the sync button in the UI.
For new users, one would pass additional things, e.g.
--langchain_modes="['UserData','UserData2','LLM','MyData']" --langchain_mode_paths="{'UserData': 'user_path', 'UserData2': 'user_path2'}" --langchain_mode_types="{'UserData': 'shared', 'UserData2': 'shared'}"
i.e.
(h2ogpt) jon@pseudotensor:~/h2ogpt$ python generate.py --langchain_modes="['UserData','UserData2','LLM','MyData']" --langchain_mode_paths="{'UserData': 'user_path', 'UserData2': 'user_path2'}" --langchain_mode_types="{'UserData': 'shared', 'UserData2': 'shared'}"
gives in UI for random new user:
FYI, if you do it this way, you don't need to pass --user_path
separately.
from h2ogpt.
Closing, if issues, let me know and I'll still respond.
from h2ogpt.
@pseudotensor Still Not working. Suppose h2ogpt with multiple collections is hosted on the server, now i want all the users/clients must have access those Collections.
HF_DATASETS_OFFLINE=1 TRANSFORMERS_OFFLINE=1 python generate.py --inference_server="vllm:127.0.0.1:5000" --base_model='/home/xyz/.cache/huggingface/hub/models--meta-llama--Llama-2-13b-chat-hf/snapshots/c2f3ec81aac798ae26dcc57799a994dfbf521496' --score_model=None --langchain_modes="['UserData','UserData2','LLM','MyData']" --langchain_mode_paths="{'UserData': 'user_path', 'UserData2': 'user_path2'}" --langchain_mode_types="{'UserData': 'shared', 'UserData2': 'shared'}" --use_auth_token=True --max_seq_len=4096 --max_max_new_tokens=2048 --max_new_tokens=2048 --min_new_tokens=128 --concurrency_count=64 --batch_size=16 --prompt_type=llama2 --enable_stt=False --enable_tts=False --auth_filename=$auth_filename --auth_access=open --guest_name=abc --auth="[(admin, admin)]"
One thing I noticed when i just remove the --auth="[(admin, admin)]"
then it works perfectly and all the users have access to those Collections.
from h2ogpt.
Hi, I'm still not seeing any issues.
I ran like this:
(h2ogpt) jon@pseudotensor:~/h2ogpt$ python generate.py --langchain_modes="['UserData','UserData2','LLM','MyData']" --langchain_mode_paths="{'UserData': 'user_path', 'UserData2': 'user_path2'}" --langchain_mode_types="{'UserData': 'shared', 'UserData2': 'shared'}" --auth="[(admin, admin)]" --auth_filename=auth_test.json --auth_access=open --guest_name=guest
Note that if you use an auth file, the --auth="[(admin, admin)]"
is ignored and only used to indicate a non-empty --auth parameter that (as opposed to --auth=''
will enable auth.
Since access is open, I can use any new user. I used 'jon' and see this:
Note that any existing user won't see newly added collections. E.g. if I add another collection:
(h2ogpt) jon@pseudotensor:~/h2ogpt$ python generate.py --langchain_modes="['UserData','UserData2','UserData3','LLM','MyData']" --langchain_mode_paths="{'UserData': 'user_path', 'UserData2': 'user_path2', 'UserData3': 'user_path3'}" --langchain_mode_types="{'UserData': 'shared', 'UserData2': 'shared', 'UserData3': 'shared'}" --auth="[(admin, admin)]" --auth_filename=auth_test.json --auth_access=open --guest_name=guest
And go into jon
I only see the original 2 because that was what is in the auth json file.
But a new user jon2
will see all:
I think maybe that is what you meant to describe, that existing users don't see new shared collections when you add new collections to the CLI?
from h2ogpt.
Yes, the existing users and also the new user don't see newly created shared collections
from h2ogpt.
Should be fixed now. Wasn’t bug just feature request.
from h2ogpt.
Related Issues (20)
- Windows Installation - Application doesn'r run - TesseractOCR issue(?) HOT 3
- Dropdown of h2ogpt is not working when served through Nginx with security headers HOT 3
- Error: I/O operation on closed file HOT 1
- how do we give access to different collections to different users HOT 1
- How should I solve it HOT 2
- langchain modes available in auth.json is not shwoing in ui HOT 7
- If upload image as url, not handled as image and link in doc view is off HOT 2
- sources not visible in shared folders collections HOT 5
- "configure_parser" issue at install HOT 3
- Add JSON et al. for output, e.g. guided_json if vllm, openai way, mistralai for models supported, etc.
- Does this tool guarantee that all data is private? HOT 2
- Can you add langsmith/wandb for tracing and ragas for evaluation metrics? HOT 1
- Mac OS manual Installation runs error HOT 2
- Mac OS automatic installation runs errors HOT 2
- about Add Doc to Chat HOT 1
- One Click Installers for MacOS not working on MacMini M2
- Attention sink error with h2oai/h2ogpt-4096-llama2-13b-chat HOT 1
- ImportError: libcudnn.so.8: cannot open shared object file: No such file or directory HOT 6
- Size of Tensor A must match size of Tensor B HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from h2ogpt.