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

Redesign of Manual Evaluations #134

Merged
merged 52 commits into from
Jun 7, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
52 commits
Select commit Hold shift + click to select a range
b178105
Pagination bug
karthikscale3 Apr 4, 2024
af47e53
Merge branch 'development' of github.com:Scale3-Labs/langtrace into d…
karthikscale3 Apr 4, 2024
cc6ab77
Merge branch 'development' of github.com:Scale3-Labs/langtrace into d…
karthikscale3 Apr 4, 2024
677b1aa
Merge branch 'development' of github.com:Scale3-Labs/langtrace into d…
karthikscale3 Apr 4, 2024
f996899
Merge branch 'development' of github.com:Scale3-Labs/langtrace into d…
karthikscale3 Apr 4, 2024
0e963e2
Bug fix
karthikscale3 Apr 5, 2024
f3a8a23
Merge branch 'development' of github.com:Scale3-Labs/langtrace into d…
karthikscale3 Apr 5, 2024
3c353a5
Merge branch 'development' of github.com:Scale3-Labs/langtrace into d…
karthikscale3 Apr 5, 2024
94f0fb1
Merge branch 'development' of github.com:Scale3-Labs/langtrace into d…
karthikscale3 Apr 7, 2024
f22f397
Merge branch 'development' of github.com:Scale3-Labs/langtrace into d…
karthikscale3 Apr 8, 2024
5023d1f
Merge branch 'development' of github.com:Scale3-Labs/langtrace into d…
karthikscale3 Apr 9, 2024
4178d5c
Merge branch 'development' of github.com:Scale3-Labs/langtrace into d…
karthikscale3 Apr 11, 2024
4fe4108
Merge branch 'development' of github.com:Scale3-Labs/langtrace into d…
karthikscale3 Apr 13, 2024
784f09c
Merge branch 'development' of github.com:Scale3-Labs/langtrace into d…
karthikscale3 Apr 14, 2024
42f1128
Merge branch 'development' of github.com:Scale3-Labs/langtrace into d…
karthikscale3 Apr 19, 2024
0c8e92b
Merge branch 'development' of github.com:Scale3-Labs/langtrace into d…
karthikscale3 Apr 24, 2024
28227d9
Merge branch 'development' of github.com:Scale3-Labs/langtrace into d…
karthikscale3 Apr 28, 2024
0cec8be
Merge branch 'development' of github.com:Scale3-Labs/langtrace into d…
karthikscale3 Apr 28, 2024
eae354d
Merge branch 'development' of github.com:Scale3-Labs/langtrace into d…
karthikscale3 May 7, 2024
7723147
Merge branch 'development' of github.com:Scale3-Labs/langtrace into d…
karthikscale3 May 7, 2024
31bfd5f
Merge branch 'development' of github.com:Scale3-Labs/langtrace into d…
karthikscale3 May 7, 2024
1b9c986
Merge branch 'development' of github.com:Scale3-Labs/langtrace into d…
karthikscale3 May 9, 2024
31f50e6
Merge branch 'development' of github.com:Scale3-Labs/langtrace into d…
karthikscale3 May 9, 2024
4e30354
Merge branch 'development' of github.com:Scale3-Labs/langtrace into d…
karthikscale3 May 9, 2024
9cbb929
Merge branch 'development' of github.com:Scale3-Labs/langtrace into d…
karthikscale3 May 9, 2024
bee3df8
Merge branch 'development' of github.com:Scale3-Labs/langtrace into d…
karthikscale3 May 9, 2024
186f82b
Merge branch 'development' of github.com:Scale3-Labs/langtrace into d…
karthikscale3 May 13, 2024
2099f1d
Merge branch 'development' of github.com:Scale3-Labs/langtrace into d…
karthikscale3 May 13, 2024
047f9b6
Merge branch 'development' of github.com:Scale3-Labs/langtrace into d…
karthikscale3 May 13, 2024
194c65e
Merge branch 'development' of github.com:Scale3-Labs/langtrace into d…
karthikscale3 May 17, 2024
63eb067
Merge branch 'development' of github.com:Scale3-Labs/langtrace into d…
karthikscale3 May 20, 2024
3a44486
Merge branch 'development' of github.com:Scale3-Labs/langtrace into d…
karthikscale3 May 21, 2024
9ad8c44
Merge branch 'development' of github.com:Scale3-Labs/langtrace into d…
karthikscale3 May 21, 2024
5605411
Merge branch 'development' of github.com:Scale3-Labs/langtrace into d…
karthikscale3 May 21, 2024
eb53696
Merge branch 'development' of github.com:Scale3-Labs/langtrace into d…
karthikscale3 May 21, 2024
1d29604
Merge branch 'development' of github.com:Scale3-Labs/langtrace into d…
karthikscale3 May 22, 2024
020a3a9
Merge branch 'development' of github.com:Scale3-Labs/langtrace into d…
karthikscale3 May 22, 2024
b9b73db
Merge branch 'development' of github.com:Scale3-Labs/langtrace into d…
karthikscale3 May 22, 2024
040b283
Schema changes for evals
karthikscale3 May 24, 2024
9c15a82
Merge branch 'development' of github.com:Scale3-Labs/langtrace into k…
karthikscale3 May 24, 2024
5779e11
Fix APIs for evals
karthikscale3 May 24, 2024
b1dff70
Minor bugfixes
karthikscale3 May 24, 2024
a601f71
Bugfix
karthikscale3 May 24, 2024
c2d2882
Evaluation changes
karthikscale3 Jun 3, 2024
af8c818
Fix merge conflict
karthikscale3 Jun 3, 2024
f7016a7
Manual eval simplification
karthikscale3 Jun 6, 2024
b7429f7
Minor fix
karthikscale3 Jun 6, 2024
6441328
Manual evaluations UX changes
karthikscale3 Jun 6, 2024
f131bb8
Chart title fix
karthikscale3 Jun 6, 2024
8f44d50
Merge branch 'development' of github.com:Scale3-Labs/langtrace into k…
karthikscale3 Jun 6, 2024
c6bf50b
Disable experiments
karthikscale3 Jun 6, 2024
3f9689f
fix
karthikscale3 Jun 7, 2024
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
Next Next commit
Pagination bug
  • Loading branch information
karthikscale3 committed Apr 4, 2024
commit b1781058a587ea8f74a047308cbe67b6cc5117de
4 changes: 2 additions & 2 deletions components/project/eval/eval.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,9 @@ export default function Eval({ email }: { email: string }) {
}
if (result) {
if (data) {
setData((prevData: any) => [...prevData, ...result.prompts.result]);
setData((prevData: any) => [...prevData, ...result?.prompts?.result || []]);
} else {
setData(result.prompts.result);
setData(result?.prompts?.result || []);
}
}
setPage((currentPage) => currentPage + 1);
Expand Down
4 changes: 2 additions & 2 deletions components/project/eval/prompts.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,9 @@ export default function Prompts({ email }: { email: string }) {
}
if (result) {
if (data) {
setData((prevData: any) => [...prevData, ...result.prompts.result]);
setData((prevData: any) => [...prevData, ...result?.prompts?.result || []]);
} else {
setData(result.prompts.result);
setData(result?.prompts?.result || []);
}
}
setPage((currentPage) => currentPage + 1);
Expand Down
4 changes: 2 additions & 2 deletions lib/services/trace_service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ export class TraceService implements ITraceService {

const md = { page, page_size: pageSize, total_pages: totalPages };
if (page! > totalPages) {
throw Error("Page number is greater than total pages");
page = totalPages;
}
const query = sql.select(
`* FROM ${project_id} WHERE attributes LIKE '%${attribute}%' ORDER BY 'start_time' DESC LIMIT ${pageSize} OFFSET ${
Expand Down Expand Up @@ -325,7 +325,7 @@ export class TraceService implements ITraceService {

const md = { page, page_size: pageSize, total_pages: totalPages };
if (page! > totalPages) {
throw Error("Page number is greater than total pages");
page = totalPages;
}
const query = sql.select(
`* FROM ${project_id} ORDER BY 'createdAt' DESC LIMIT ${pageSize} OFFSET ${
Expand Down