Skip to content

Commit

Permalink
evals config updates
Browse files Browse the repository at this point in the history
  • Loading branch information
morganmcg1 committed Jan 13, 2025
1 parent 8160686 commit 700efa0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 14 deletions.
3 changes: 2 additions & 1 deletion src/wandbot/api/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,8 @@ async def configs():
return {
"chat_config": safe_chat_config,
"vector_store_config": safe_vs_config,
"git_info": git_info
"git_info": git_info,
"app_config": app_config
}

except Exception as e:
Expand Down
13 changes: 0 additions & 13 deletions src/wandbot/evaluation/weave_eval/eval.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,19 +47,6 @@ def get_wandbot_configs():
return None


# @weave.op
# async def get_answer(question: str, application: str = "api-eval", language: str = "en") -> str:
# url = "http://0.0.0.0:8000/chat/query"
# payload = {"question": question, "application": application, "language": language}
# try:
# async with httpx.AsyncClient(timeout=900.0) as client:
# response = await client.post(url, json=payload)
# response.raise_for_status()
# return json.dumps(response.json())
# except Exception as e:
# logger.error(f"Error getting answer: {str(e)}")
# return json.dumps({})

@weave.op
async def get_answer(question: str, application: str = "api-eval", language: str = "en") -> str:
@retry(
Expand Down

0 comments on commit 700efa0

Please sign in to comment.