From 503ed29ffdf3b869e737832905c1f4244b11ec6e Mon Sep 17 00:00:00 2001 From: reng Date: Tue, 23 Dec 2025 12:54:29 +0800 Subject: [PATCH] update --- v2/app/src/App.jsx | 4 ++-- v2/app/src/components/graph.jsx | 7 ++++++- v2/app/src/components/point.jsx | 4 ++-- v2/app/src/utils/parsing.js | 2 +- 4 files changed, 11 insertions(+), 6 deletions(-) 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); }