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
7 changes: 2 additions & 5 deletions evaluation/auto_evaluation/eval_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,8 @@

# List of all available retrievers
ALL_RETRIEVERS = {
"agent-retriever": "/graphs/agent-retriever",
"agent-retriever-reranker": "/graphs/agent-retriever",
"hybrid": "/graphs/hybrid",
"sim": "/graphs/sim",
"ensemble": "/graphs/ensemble",
"agent-retriever": "/conversations/agent-retriever",
"agent-retriever-reranker": "/conversations/agent-retriever",
}
RETRY_INTERVAL = 5
RETRY_TIMEOUT = 600
Expand Down
2 changes: 1 addition & 1 deletion evaluation/script_based_evaluation/utils/api_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def send_request(
try:
print("Sending request to endpoint:", endpoint)
if endpoint in agent_retriever_urls:
url = f"{agent_retriever_urls[endpoint]}/graphs/agent-retriever"
url = f"{agent_retriever_urls[endpoint]}/conversations/agent-retriever"
elif endpoint == "base-gemini-1.5-flash":
response_text, response_time = base_gemini_1_5_flash(query)
print("Response:", response_text)
Expand Down
2 changes: 1 addition & 1 deletion frontend/streamlit_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ def main():
st.title("OR Assistant")

base_url = os.getenv("CHAT_ENDPOINT", "http://localhost:8000")
selected_endpoint = "/graphs/agent-retriever"
selected_endpoint = "/conversations/agent-retriever"

if "selected_endpoint" not in st.session_state:
st.session_state.selected_endpoint = selected_endpoint
Expand Down
2 changes: 1 addition & 1 deletion frontend/utils/mock_endpoint.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def list_all_chains() -> List[str]:
return ["/chains/mock"]


@app.post("/graphs/agent-retriever", response_model=ChatResponse)
@app.post("/conversations/agent-retriever", response_model=ChatResponse)
def chat_app(request: ChatRequest) -> ChatResponse:
"""
Endpoint to handle chat requests.
Expand Down