Skip to content

Commit

Permalink
Graph visualisation - frontend
Browse files Browse the repository at this point in the history
  • Loading branch information
maxluk committed Nov 8, 2024
1 parent 9551555 commit b982121
Show file tree
Hide file tree
Showing 21 changed files with 448 additions and 92 deletions.
8 changes: 6 additions & 2 deletions playground/graph_query_v2.sql
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,8 @@ rrf AS (
)
select label,score,graph_rank,semantic_rank,vector_rank,id,case_name,"date","data",refs,relevance
FROM rrf
order by score DESC;
order by semantic_rank;
--score DESC;


-- Demo dataset
Expand Down Expand Up @@ -153,7 +154,10 @@ graph AS (
$$) as graph_query(case_id TEXT, ref_id TEXT)
ON vector.id = graph_query.case_id
)
select * from graph;
select distinct ref_id from graph;
--select count(*) from cases c
--where c.id in (select id from graph)
-- or c.id in (select ref_id from graph);

-- Unoptimized final query
-- Recall: 40% -> 60% -> 70%
Expand Down
2 changes: 2 additions & 0 deletions src/backend/static/assets/fluentui-icons-1763cc1b.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Large diffs are not rendered by default.

2 changes: 0 additions & 2 deletions src/backend/static/assets/fluentui-icons-58716126.js

This file was deleted.

1 change: 0 additions & 1 deletion src/backend/static/assets/index-0320d7ff.css

This file was deleted.

Loading

0 comments on commit b982121

Please sign in to comment.