Reformatting, fixing tests, adding basic RAG pipeline implementation

This commit is contained in:
Alex Selimov 2025-07-05 15:16:18 -04:00
parent a6cdbf1761
commit 24bfef99a2
12 changed files with 721 additions and 131 deletions

View file

@ -6,8 +6,12 @@ from typing import List, Optional
from reviewllama.git_diff import analyze_git_repository
from .configs import ReviewConfig, create_config_from_vars
from .logger import (log_git_analysis_result, log_git_analysis_start,
log_paths, log_review_start)
from .logger import (
log_git_analysis_result,
log_git_analysis_start,
log_paths,
log_review_start,
)
def normalize_server_url(url: str) -> str:
@ -75,7 +79,7 @@ def transform_namespace_to_config(namespace: argparse.Namespace) -> ReviewConfig
model=namespace.model,
server_url=normalize_server_url(namespace.server_url),
# TODO: Update this system prompt. Either allow the user to provide it or engineer our own for this.
"You are a helpful AI assistant",
system_prompt="You are a helpful AI assistant",
base_branch=namespace.base_branch,
)