Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions src/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
DOCS_SYSTEM_PROMPT,
WELCOME_MESSAGE,
CONTEXT_HEADER,
SEARCH_INSTRUCTION,
JIRA_FORMATTING_SYNTAX,
)

Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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),
Expand Down
2 changes: 0 additions & 2 deletions src/constants.py
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
Loading