This repository has been archived by the owner on Sep 12, 2024. It is now read-only.
Allow Override of Configuration Parameters in AutoQueryEngine.from_config()
#175
Pinned
SeeknnDestroy
started this conversation in
Feature Requests
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
a feature enhancement for the
AutoQueryEngine.from_config()
method. The goal is to introduce the ability to override specific configuration parameters programmatically, even when primarily using a YAML configuration file.Current Behavior:
Currently,
AutoQueryEngine.from_config()
initializes an engine entirely based on the settings defined in a YAML file. This is a user-friendly approach but can be limiting in scenarios where dynamic adjustments to the configuration are needed.Proposed Enhancement:
Modify
AutoQueryEngine.from_config()
to accept an additional optional dictionary parameter namedoverrides
. This dictionary will contain key-value pairs corresponding to the settings that need to be overridden in the YAML configuration.Example Method Signature:
Benefits:
overrides
are provided, the method functions as it currently does.Use Case:
This feature will be particularly useful in scenarios where the majority of the configuration remains constant, but certain parameters (like
embed_model
orllm_model
) need to be adjusted dynamically based on specific conditions or inputs.Beta Was this translation helpful? Give feedback.
All reactions