get_ai_search_chunks.py
Source: src/sunholo/discovery_engine/get_ai_search_chunks.py
Functions
async_get_all_chunks(question: str, config: sunholo.utils.config_class.ConfigManager, filter_str=None)
Look through a config memory key and find all Vertex AI Search retrievers, call them and return a joined string of chunks
args: question - question to search similarity for config: A ConfigManager object filter_str: A filter that will restrict ai search via its metadata. See https://cloud.google.com/generative-ai-app-builder/docs/filter-search-metadata
returns: a big string of chunks
get_all_chunks(question: str, config: sunholo.utils.config_class.ConfigManager, filter_str=None)
Look through a config memory key and find all Vertex AI Search retrievers, call them and return a joined string of chunks
args: question - question to search similarity for config: A ConfigManager object filter_str: A filter that will restrict ai search via its metadata. See https://cloud.google.com/generative-ai-app-builder/docs/filter-search-metadata
returns: a big string of chunks
async_get_chunks(question, vector_name, num_chunks, filter_str, project_id=None)
No docstring available.
get_chunks(question, vector_name, num_chunks, filter_str=None, project_id=None, serving_config=None)
No docstring available.