GRAPH_FIELD_SEP = "" COMMON_PROMPTS = {} # --- Delimiters & Constants --- COMMON_PROMPTS["DEFAULT_LANGUAGE"] = "English" COMMON_PROMPTS["DEFAULT_TUPLE_DELIMITER"] = "<|>" COMMON_PROMPTS["DEFAULT_RECORD_DELIMITER"] = "##" COMMON_PROMPTS["DEFAULT_COMPLETION_DELIMITER"] = "<|COMPLETE|>" COMMON_PROMPTS["process_tickers"] = ["⠋", "⠙", "⠹", "⠸", "⠼", "⠴", "⠦", "⠧", "⠇", "⠏"] # --- Shared Prompts --- COMMON_PROMPTS["fail_response"] = "Sorry, I'm not able to provide an answer to that question." COMMON_PROMPTS[ "summarize_entity_descriptions" ] = """You are a helpful assistant responsible for generating a comprehensive summary of the data provided below. Given one or two entities, and a list of descriptions, all related to the same entity or group of entities. Please concatenate all of these into a single, comprehensive description. Make sure to include information collected from all the descriptions. If the provided descriptions are contradictory, please resolve the contradictions and provide a single, coherent summary. Make sure it is written in third person, and include the entity names so we the have full context. Use {language} as output language. ####### -Data- Entities: {entity_name} Description List: {description_list} ####### Output: """ COMMON_PROMPTS[ "entiti_continue_extraction" ] = """MANY entities were missed in the last extraction. Add them below using the same format: """ COMMON_PROMPTS[ "entiti_if_loop_extraction" ] = """It appears some entities may have still been missed. Answer YES | NO if there are still entities that need to be added. """ COMMON_PROMPTS[ "similarity_check" ] = """Please analyze the similarity between these two questions: Question 1: {original_prompt} Question 2: {cached_prompt} Please evaluate the following two points and provide a similarity score between 0 and 1 directly: 1. Whether these two questions are semantically similar 2. Whether the answer to Question 2 can be used to answer Question 1 Similarity score criteria: 0: Completely unrelated or answer cannot be reused, including but not limited to: - The questions have different topics - The locations mentioned in the questions are different - The times mentioned in the questions are different - The specific individuals mentioned in the questions are different - The specific events mentioned in the questions are different - The background information in the questions is different - The key conditions in the questions are different 1: Identical and answer can be directly reused 0.5: Partially related and answer needs modification to be used Return only a number between 0-1, without any additional content. """