Closed rchan26 closed 8 months ago
converting to draft as a few things to fix regarding the types of the default arguments. trying to fix this now
Looks good - I changed the instances of os.getenv
to get_env_var
which means it prints the "getting SLACK_APP_TOKEN " bit twice (since it does actually get it twice) but I think that is okay?
For #143:
reginald_create_index
CLI to create an indexreginald_create_index
LlamaIndex
to make aDataIndexCreator
classsetup_service_context
helper function which gets called in both setting up LlamaIndex model and when creating the index on its ownget_env_var
helper function which just logs when it's trying to read a environment variable and says if it's able to find it. If not able to, default arguments are usedget_args
loops through the arguments and calls the arguments and calls any lambda functions to get the default argumentsk
,chunk_size
,chunk_overlap_ratio
,num_output
are now able to be passed as CLI arguments inreginald_run
,reginald_run_api_llm
andreginald_create_index