diff --git a/src/config.py b/src/config.py index ed9df0a..5845124 100644 --- a/src/config.py +++ b/src/config.py @@ -8,7 +8,6 @@ DOCS_SYSTEM_PROMPT, WELCOME_MESSAGE, CONTEXT_HEADER, - SEARCH_INSTRUCTION, JIRA_FORMATTING_SYNTAX, ) @@ -42,7 +41,6 @@ class Config: vectordb_collection_name_documentation: str vectordb_collection_name_ci_logs: str vectordb_collection_name_solutions: str - search_instruction: str search_similarity_threshold: float search_top_n: int rerank_top_n: int @@ -115,8 +113,6 @@ def from_env(cls) -> 'Config': "VECTORDB_COLLECTION_NAME_CI_LOGS", 'rca-ci'), vectordb_collection_name_solutions=os.environ.get( "VECTORDB_COLLECTION_NAME_SOLUTIONS", 'rca-solutions'), - search_instruction=os.environ.get( - "SEARCH_INSTRUCTION", SEARCH_INSTRUCTION), search_similarity_threshold=float( os.environ.get("SEARCH_SIMILARITY_THRESHOLD", 0.8)), ci_logs_system_prompt=os.environ.get("CI_LOGS_SYSTEM_PROMPT", CI_LOGS_SYSTEM_PROMPT), diff --git a/src/constants.py b/src/constants.py index 7055345..a51a567 100644 --- a/src/constants.py +++ b/src/constants.py @@ -1,8 +1,6 @@ """Constants we don't need to expose to the user. """ -SEARCH_INSTRUCTION = "Represent this sentence for searching relevant passages: " # noqa: E501 - CI_LOGS_SYSTEM_PROMPT = """ # Purpose You are a Continuous Integration (CI) assistant who helps with CI failures.