chunker_handler.py
Source: sunholo/discovery_engine/chunker_handler.py
Functions
discovery_engine_chunker_check(message_data, metadata, vector_name: str = None, config: sunholo.utils.config_class.ConfigManager = None)
No docstring available.
check_discovery_engine_in_memory(config: sunholo.utils.config_class.ConfigManager)
No docstring available.
check_write_memories(config: sunholo.utils.config_class.ConfigManager)
No docstring available.
do_discovery_engine(message_data: str, metadata: dict, config: sunholo.utils.config_class.ConfigManager = None)
Example:
message_data = "gs://bucket_name/path_to_file.txt"
metadata = {"user": "admin"}
vector_name = "example_vector"
response = do_discovery_engine(message_data, metadata, config=config)
print(response)
# Imported file to corpus: {'status': 'success'}