You need to sign in or sign up before continuing.
Self-hosted models: create documentation index locally
What does this MR do and why?
Changes the script to create the documentation index:
- Makes uploading to package registry optional
- Makes downloading the documentation optional, defaulting to generating it locally
MR acceptance checklist
Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
Screenshots or screen recordings
Screenshots are required for UI changes, and strongly recommended for all other merge requests.
Before | After |
---|---|
How to set up and validate locally
-
Install requirements:
pip install requests langchain langchain_text_splitter
-
Run the script generating from local branch:
python3 scripts/custom_models/create_index.py -o ~/docs.db sqlite3 ~/docs.db "PRAGMA user_version;" # 1
-
Run the script generating from local branch:
python3 scripts/custom_models/create_index.py --version_tag="v17.0.0-ee" -d -o ~/docs.db sqlite3 ~/docs.db "PRAGMA user_version;" # 1
-
Run the script that downloads a version and uploads to a repository:
GLAB_TOKEN=<api_token> python3 scripts/custom_models/create_index.py --base_url="http://localhost:3000" --project_id="19" --version_tag="v17.0.0-ee" -d -u
Edited by Eduardo Bonet