Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UI/metrics chart + comment/log cleanup #47

Merged
merged 6 commits into from
Aug 15, 2024
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
2 changes: 1 addition & 1 deletion evals/eval_pg_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def insert_dict_in(dict, table=''):
conn.commit()
cursor.close()
conn.close()
print(f"JSONB data stored in '{table}' successfully.")
log.info(f"JSONB data stored in '{table}' successfully.")

def get_data_from(table=''):
log.info(f"retrieving data from {table}")
Expand Down
10 changes: 5 additions & 5 deletions server.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,11 +66,11 @@ async def upload_file(id: str, file: UploadFile=File(...)):
@app.post('/api/query')
async def post_query(body: pq.QueryBody):
response = pq.post_query(body)
# evals.store_running_eval_data(
# body.chatbot_id,
# body.query,
# response
# )
evals.store_running_eval_data(
body.chatbot_id,
body.query,
response
)
return response

@app.get('/api/history')
Expand Down
4 changes: 2 additions & 2 deletions ui/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<link rel="icon" type="image/x-icon" href="/favicon.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Vite + React + TS</title>
<title>Paisley</title>
</head>
<body>
<div id="root"></div>
Expand Down
Loading
Loading