CustomAppConfig.py 831 B

12345678910111213141516171819
  1. from .BaseAppConfig import BaseAppConfig
  2. class CustomAppConfig(BaseAppConfig):
  3. """
  4. Config to initialize an embedchain custom `App` instance, with extra config options.
  5. """
  6. def __init__(self, log_level=None, ef=None, db=None, host=None, port=None, id=None):
  7. """
  8. :param log_level: Optional. (String) Debug level
  9. ['DEBUG', 'INFO', 'WARNING', 'ERROR', 'CRITICAL'].
  10. :param ef: Optional. Embedding function to use.
  11. :param db: Optional. (Vector) database to use for embeddings.
  12. :param id: Optional. ID of the app. Document metadata will have this id.
  13. :param host: Optional. Hostname for the database server.
  14. :param port: Optional. Port for the database server.
  15. """
  16. super().__init__(log_level=log_level, db=db, host=host, port=port, id=id)