Skip to content

Commit

Permalink
add id and author to fetch
Browse files Browse the repository at this point in the history
  • Loading branch information
bramses committed Oct 11, 2023
1 parent f1c0a30 commit 43c8287
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion similarity-search.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,9 @@ export const similaritySearch = async (query) => {
res.push({
text: highlights[0].text,
title: books[0].title,
similarity: document.similarity
similarity: document.similarity,
id: highlights[0].id,
author: books[0].author,
})
}

Expand Down

0 comments on commit 43c8287

Please sign in to comment.