Skip to content

Commit

Permalink
refactor: remove commented out code
Browse files Browse the repository at this point in the history
  • Loading branch information
Sverre Nystad committed Nov 27, 2024
1 parent 72f6e0d commit 80a8af8
Show file tree
Hide file tree
Showing 5 changed files with 136 additions and 182 deletions.
7 changes: 4 additions & 3 deletions backend/src/services/agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,8 @@ def fill_out_checklist_responder(state):
user_applications = state["user_application_documents"]
checklist = state["checklist"]
retrieval_state = state["retrieval_state"]
documents = retrieval_state.get("documents", []) # Retrieved laws and regulations
# Retrieved laws and regulations
documents = retrieval_state.get("documents", [])

# Combine all application documents into one string
application_text = "\n\n".join(user_applications)
Expand All @@ -233,7 +234,6 @@ def fill_out_checklist_responder(state):
logger.info(f"Checklist: {checklist}")
for idx, checkpoint in enumerate(checklist):
# Extract the checkpoint text from the tuple
# checkpoint_text = checkpoint[idx]
checkpoint: Sjekkpunkt
logger.info(f"Processing checkpoint {idx + 1}")
logger.info(f"Checkpoint: {checkpoint}")
Expand Down Expand Up @@ -368,7 +368,8 @@ def fill_out_checklist_responder(state):
)
logger.info(f"Question for retrieval: {response}")
state["retrieval_state"]["question"] = response
state["retrieval_performed"] = True # Mark that retrieval has been performed
# Mark that retrieval has been performed
state["retrieval_performed"] = True

# Clear the feedback after using it
if "revisor_feedback" in state:
Expand Down
4 changes: 2 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@ services:
- "3000:3000"
image: t3-app
environment:
- ARKIVGPT_URL=http://host.docker.internal:80/api # Overrides the URLs set in .env to use host.docker.internal instead of localhost
- ARKIVGPT_URL=http://host.docker.internal:80/api
- PLANPRAT_URL=http://host.docker.internal:8000/plan-prat/
- CADAID_URL=${CADAID_URL}
- DATABASE_URL=${DATABASE_URL}
- NEXTAUTH_URL=${NEXTAUTH_URL}
extra_hosts:
- "host.docker.internal:host-gateway" # Needed to override URLs on Linux
- "host.docker.internal:host-gateway"
api:
platform: "linux/amd64"
build:
Expand Down
Loading

0 comments on commit 80a8af8

Please sign in to comment.