Skip to main content
Version: 1.0

Functions

make_local_vector_db_config​

Create a local vector db configuration for testing.

Parameters

  • path (Optional[str]) - The path to the local vector db, defaults to None (system temp directory / test.db). Default: None

  • remove_if_exists (bool) - Whether to remove the existing db file, defaults to True. Default: true

Returns

Any: The local vector db configuration

make_debug_logger​

Create a logger for debugging.

Parameters

  • filter (Any) - The filter functionto apply to the logger, defaults to None (no filter). Default: None

Returns

Logger: The logger

Example

from tecton_gen_ai.testing.utils import make_debug_logger
logger = make_debug_logger(filter=lambda record: "invoking" in record.getMessage())

set_dev_mode​

Set the dev mode for testing and local development. In dev mode, you don't need to connect to tecton.

create_testing_vector_db_config​

Parameters

  • path (str) -

  • remove_if_exists (bool) -

Returns

Any
Print markdown text in a rich format if rich is installed, otherwise use IPython.

Parameters

  • text (str) - The markdown text to print

Returns

None

Was this page helpful?

🧠 Hi! Ask me anything about Tecton!

Floating button icon