diff --git a/v2/app/src/App.jsx b/v2/app/src/App.jsx index 32ef8db..44008a5 100644 --- a/v2/app/src/App.jsx +++ b/v2/app/src/App.jsx @@ -49,7 +49,7 @@ function App() {

-
+ {/*

search by any text

-
+ */}

search by theme

setShowContent(e.target.checked)} /> + + setDrawLines(e.target.checked)} /> + @@ -74,7 +79,7 @@ export default function Graph({results}){ - {Array.isArray(lines) && lines?.map((line, index)=>( + {drawLines && Array.isArray(lines) && lines?.map((line, index)=>( { if(refText.current){ diff --git a/v2/app/src/utils/parsing.js b/v2/app/src/utils/parsing.js index e7b42d9..5e04d0e 100644 --- a/v2/app/src/utils/parsing.js +++ b/v2/app/src/utils/parsing.js @@ -137,7 +137,7 @@ async function writeToQdrant(id,embeddings, text, collection){ return data; } -export async function searchByText(text){ +export async function searchByText(query){ const queryEmbeddings=await textToEmbeddings(query); return await searchQdrant(queryEmbeddings); }