Skip to content

Commit

Permalink
Re-enable full context search, remove dummy contexts
Browse files Browse the repository at this point in the history
  • Loading branch information
KastanDay committed Jun 21, 2024
1 parent 1f633ea commit b38200a
Showing 1 changed file with 26 additions and 25 deletions.
51 changes: 26 additions & 25 deletions src/pages/api/getContexts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,31 +18,32 @@ export const fetchContexts = async (
doc_groups: doc_groups,
}

const dummyContexts: ContextWithMetadata[] = [
{
id: 1,
text: 'This is a dummy context',
readable_filename: 'dummy_filename_1.pdf',
course_name: 'dummy course 1',
'course_name ': 'dummy course 1',
s3_path: 'dummy_s3_path_1',
pagenumber: '1',
url: 'dummy_url_1',
base_url: 'dummy_base_url_1',
},
{
id: 2,
text: 'This is another dummy context',
readable_filename: 'dummy_filename_2.pdf',
course_name: 'dummy course 2',
'course_name ': 'dummy course 2',
s3_path: 'dummy_s3_path_2',
pagenumber: '2',
url: 'dummy_url_2',
base_url: 'dummy_base_url_2',
},
]
return dummyContexts
// UESFUL FOR TESTING -- SHORTEN CONTEXTS
// const dummyContexts: ContextWithMetadata[] = [
// {
// id: 1,
// text: 'This is a dummy context',
// readable_filename: 'dummy_filename_1.pdf',
// course_name: 'dummy course 1',
// 'course_name ': 'dummy course 1',
// s3_path: 'dummy_s3_path_1',
// pagenumber: '1',
// url: 'dummy_url_1',
// base_url: 'dummy_base_url_1',
// },
// {
// id: 2,
// text: 'This is another dummy context',
// readable_filename: 'dummy_filename_2.pdf',
// course_name: 'dummy course 2',
// 'course_name ': 'dummy course 2',
// s3_path: 'dummy_s3_path_2',
// pagenumber: '2',
// url: 'dummy_url_2',
// base_url: 'dummy_base_url_2',
// },
// ]
// return dummyContexts

const url = `https://flask-production-751b.up.railway.app/getTopContexts`

Expand Down

0 comments on commit b38200a

Please sign in to comment.