SYMBOL INDEX (135 symbols across 33 files) FILE: app/app.py function prepare_environment (line 20) | def prepare_environment(): function initialize_session_state (line 46) | def initialize_session_state(): function initialize_chat_data (line 55) | def initialize_chat_data(): FILE: app/backend/callbacks/arxiv_callbacks.py class LLMThoughtWithKnowledgeBase (line 11) | class LLMThoughtWithKnowledgeBase(LLMThought): method on_tool_end (line 12) | def on_tool_end( class ChatDataAgentCallBackHandler (line 34) | class ChatDataAgentCallBackHandler(StreamlitCallbackHandler): method on_llm_start (line 35) | def on_llm_start( FILE: app/backend/callbacks/llm_thought_with_table.py class ChatDataSelfQueryCallBack (line 8) | class ChatDataSelfQueryCallBack(StreamlitCallbackHandler): method __init__ (line 9) | def __init__(self): method on_llm_start (line 14) | def on_llm_start( method on_chain_end (line 20) | def on_chain_end(self, outputs, **kwargs) -> None: method on_chain_start (line 24) | def on_chain_start(self, serialized, inputs, **kwargs) -> None: method on_llm_end (line 28) | def on_llm_end(self, response: LLMResult, **kwargs: Any) -> None: FILE: app/backend/callbacks/self_query_callbacks.py class CustomSelfQueryRetrieverCallBackHandler (line 10) | class CustomSelfQueryRetrieverCallBackHandler(StreamlitCallbackHandler): method __init__ (line 11) | def __init__(self): method on_llm_start (line 16) | def on_llm_start( method on_chain_end (line 22) | def on_chain_end(self, outputs, **kwargs) -> None: method on_llm_end (line 27) | def on_llm_end(self, response: LLMResult, **kwargs: Any) -> None: class ChatDataSelfAskCallBackHandler (line 36) | class ChatDataSelfAskCallBackHandler(StreamlitCallbackHandler): method __init__ (line 37) | def __init__(self) -> None: method on_llm_start (line 41) | def on_llm_start(self, serialized, prompts, **kwargs) -> None: method on_llm_end (line 44) | def on_llm_end(self, response: LLMResult, **kwargs: Any) -> None: method on_chain_start (line 54) | def on_chain_start(self, serialized, inputs, **kwargs) -> None: FILE: app/backend/callbacks/vector_sql_callbacks.py class VectorSQLSearchDBCallBackHandler (line 9) | class VectorSQLSearchDBCallBackHandler(StreamlitCallbackHandler): method __init__ (line 10) | def __init__(self) -> None: method on_llm_start (line 16) | def on_llm_start(self, serialized, prompts, **kwargs) -> None: method on_llm_end (line 19) | def on_llm_end( method on_chain_start (line 34) | def on_chain_start(self, serialized, inputs, **kwargs) -> None: method on_chain_end (line 41) | def on_chain_end(self, outputs, **kwargs) -> None: class VectorSQLSearchLLMCallBackHandler (line 45) | class VectorSQLSearchLLMCallBackHandler(VectorSQLSearchDBCallBackHandler): method __init__ (line 46) | def __init__(self, table: str) -> None: FILE: app/backend/chains/retrieval_qa_with_sources.py class CustomRetrievalQAWithSourcesChain (line 14) | class CustomRetrievalQAWithSourcesChain(RetrievalQAWithSourcesChain): method _call (line 21) | def _call( method _acall (line 61) | async def _acall( method _chain_type (line 69) | def _chain_type(self) -> str: FILE: app/backend/chains/stuff_documents.py class CustomStuffDocumentChain (line 9) | class CustomStuffDocumentChain(StuffDocumentsChain): method _get_inputs (line 12) | def _get_inputs(self, docs: List[Document], **kwargs: Any) -> dict: method combine_docs (line 44) | def combine_docs( method _chain_type (line 64) | def _chain_type(self) -> str: FILE: app/backend/chat_bot/chat.py function on_chat_submit (line 29) | def on_chat_submit(): function clear_history (line 44) | def clear_history(): function back_to_main (line 49) | def back_to_main(): function refresh_sessions (line 62) | def refresh_sessions(): function on_session_change_submit (line 101) | def on_session_change_submit(): function create_private_knowledge_base_as_tool (line 139) | def create_private_knowledge_base_as_tool(): function remove_private_knowledge_bases (line 164) | def remove_private_knowledge_bases(): function refresh_agent (line 181) | def refresh_agent(): function add_file (line 205) | def add_file(): function clear_files (line 223) | def clear_files(): FILE: app/backend/chat_bot/json_decoder.py class CustomJSONEncoder (line 5) | class CustomJSONEncoder(json.JSONEncoder): method default (line 6) | def default(self, obj): class CustomJSONDecoder (line 12) | class CustomJSONDecoder(json.JSONDecoder): method __init__ (line 13) | def __init__(self, *args, **kwargs): method object_hook (line 17) | def object_hook(self, source): FILE: app/backend/chat_bot/message_converter.py function _message_from_dict (line 14) | def _message_from_dict(message: dict) -> BaseMessage: class DefaultClickhouseMessageConverter (line 35) | class DefaultClickhouseMessageConverter(DefaultMessageConverter): method __init__ (line 38) | def __init__(self, table_name: str): method to_sql_model (line 42) | def to_sql_model(self, message: BaseMessage, session_id: str) -> Any: method from_sql_model (line 60) | def from_sql_model(self, sql_message: Any) -> BaseMessage: method get_sql_model_class (line 66) | def get_sql_model_class(self) -> Any: FILE: app/backend/chat_bot/private_knowledge_base.py class ChatBotKnowledgeTable (line 16) | class ChatBotKnowledgeTable: method __init__ (line 17) | def __init__(self, host, port, username, password, method list_files (line 72) | def list_files(self, user_id: str): method add_by_file (line 82) | def add_by_file(self, user_id, files: List[UploadedFile]): method clear (line 92) | def clear(self, user_id: str): method create_private_knowledge_base (line 101) | def create_private_knowledge_base( method list_private_knowledge_bases (line 124) | def list_private_knowledge_bases(self, user_id: str, private_knowledge... method remove_private_knowledge_bases (line 133) | def remove_private_knowledge_bases(self, user_id: str, private_knowled... method as_retrieval_tools (line 140) | def as_retrieval_tools(self, user_id, tool_name=None): FILE: app/backend/chat_bot/session_manager.py function get_sessions (line 15) | def get_sessions(engine, model_class, user_id): class SessionManager (line 27) | class SessionManager: method __init__ (line 28) | def __init__( method list_sessions (line 52) | def list_sessions(self, user_id: str): method modify_system_prompt (line 70) | def modify_system_prompt(self, session_id, sys_prompt): method add_session (line 81) | def add_session(self, user_id: str, session_id: str, system_prompt: st... method remove_session (line 91) | def remove_session(self, session_id: str): FILE: app/backend/chat_bot/tools.py function parse_files (line 13) | def parse_files(api_key, user_id, files: List[UploadedFile]): function extract_embedding (line 53) | def extract_embedding(embeddings: Embeddings, texts): function create_message_history_table (line 63) | def create_message_history_table(table_name: str, base_class): function create_session_table (line 85) | def create_session_table(table_name: str, DynamicBase): FILE: app/backend/constants/myscale_tables.py function hint_arxiv (line 10) | def hint_arxiv(): function hint_sql_arxiv (line 22) | def hint_sql_arxiv(): function hint_wiki (line 41) | def hint_wiki(): function hint_sql_wiki (line 51) | def hint_sql_wiki(): FILE: app/backend/constants/variables.py class RetrieverButtons (line 35) | class RetrieverButtons: function update_global_config (line 45) | def update_global_config(new_config: GlobalConfig): FILE: app/backend/construct/build_agents.py function create_agent_executor (line 27) | def create_agent_executor( function build_agents (line 58) | def build_agents( FILE: app/backend/construct/build_all.py function load_embedding_model_for_table (line 18) | def load_embedding_model_for_table(table_name: str) -> \ function load_embedding_models (line 26) | def load_embedding_models() -> Dict[str, Union[HuggingFaceEmbeddings, Hu... function update_retriever_tools (line 34) | def update_retriever_tools(): function build_chains_retriever_for_table (line 53) | def build_chains_retriever_for_table(table_name: str) -> ChainsAndRetrie... function build_chains_and_retrievers (line 90) | def build_chains_and_retrievers() -> Dict[str, Dict[str, Any]]: FILE: app/backend/construct/build_chains.py function build_retrieval_qa_with_sources_chain (line 14) | def build_retrieval_qa_with_sources_chain( FILE: app/backend/construct/build_chat_bot.py function build_chat_knowledge_table (line 10) | def build_chat_knowledge_table(): function initialize_session_manager (line 23) | def initialize_session_manager(): FILE: app/backend/construct/build_retriever_tool.py class RetrieverInput (line 11) | class RetrieverInput(BaseModel): function create_retriever_tool (line 15) | def create_retriever_tool( FILE: app/backend/construct/build_retrievers.py function build_self_query_retriever (line 21) | def build_self_query_retriever(table_name: str) -> SelfQueryRetriever: function build_vector_sql_db_chain_retriever (line 65) | def build_vector_sql_db_chain_retriever(table_name: str) -> VectorSQLDat... FILE: app/backend/retrievers/self_query.py function process_self_query (line 17) | def process_self_query(selected_table, query_type): FILE: app/backend/retrievers/vector_sql_output_parser.py class VectorSQLRetrieveOutputParser (line 6) | class VectorSQLRetrieveOutputParser(VectorSQLOutputParser): method _type (line 13) | def _type(self) -> str: method parse (line 16) | def parse(self, text: str) -> Dict[str, Any]: FILE: app/backend/retrievers/vector_sql_query.py function process_sql_query (line 16) | def process_sql_query(selected_table: str, query_type: str): FILE: app/backend/types/chains_and_retrievers.py class MetadataColumn (line 11) | class MetadataColumn: class ChainsAndRetrievers (line 18) | class ChainsAndRetrievers: method to_dict (line 25) | def to_dict(self) -> Dict[str, Any]: FILE: app/backend/types/global_config.py class GlobalConfig (line 6) | class GlobalConfig: FILE: app/backend/types/table_config.py class TableConfig (line 9) | class TableConfig: FILE: app/backend/vector_store/myscale_without_metadata.py class MyScaleWithoutMetadataJson (line 10) | class MyScaleWithoutMetadataJson(MyScale): method __init__ (line 11) | def __init__(self, embedding: Embeddings, config: Optional[MyScaleSett... method _build_qstr (line 19) | def _build_qstr( method similarity_search_by_vector (line 38) | def similarity_search_by_vector(self, embedding: List[float], k: int =... FILE: app/logger.py function setup_logger (line 4) | def setup_logger(): FILE: app/ui/chat_page.py function render_session_manager (line 22) | def render_session_manager(): function render_session_selection (line 40) | def render_session_selection(): function render_files_manager (line 52) | def render_files_manager(): function _render_create_personal_knowledge_bases (line 70) | def _render_create_personal_knowledge_bases(div: DeltaGenerator): function _render_remove_personal_knowledge_bases (line 99) | def _render_remove_personal_knowledge_bases(div: DeltaGenerator): function render_personal_tools_build (line 116) | def render_personal_tools_build(): function render_knowledge_base_selector (line 123) | def render_knowledge_base_selector(): function chat_page (line 141) | def chat_page(): FILE: app/ui/home.py function render_home (line 19) | def render_home(): function render_home_header (line 30) | def render_home_header(): function _render_self_query_chain_content (line 70) | def _render_self_query_chain_content(): function _render_chat_bot_content (line 94) | def _render_chat_bot_content(): function render_home_content (line 126) | def render_home_content(): function render_home_footer (line 133) | def render_home_footer(): FILE: app/ui/retrievers.py function back_to_main (line 11) | def back_to_main(): function _render_table_selector (line 20) | def _render_table_selector() -> str: function render_retrievers (line 37) | def render_retrievers(): function render_tab_sql (line 53) | def render_tab_sql(selected_table: str): function render_tab_self_query (line 76) | def render_tab_self_query(selected_table): FILE: app/ui/utils.py function display (line 4) | def display(dataframe, columns_=None, index=None):