Skip to content

Improvements to the index creation script

Eduardo Bonet requested to merge custom_models/improved_create_index_script into master

What does this MR do and why?

Refactors the script to create the documentation index to facilitate local usage

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

  1. Install requirements:

    pip install requests langchain langchain_text_splitter
  2. Run the script:

    GLAB_TOKEN=<api_token> python3 scripts/create_index.py --base_url="http://localhost:3000" --project_id="19" --version_tag="v17.0.0-ee"
  3. Navigate to the project package repository, a new package has been added: image

Merge request reports