YC (S26) | Open Computer History | Continuously record your company computer work, map your workflows, help you find work worth automating, and power your agents' context
Rust agentsagiaiai-memoryaudio-recordingcomputer-visionhermeshermes-agentllmlocal-ailocal-firstmachine-learningmcpmultimodalopenclawprivacyrewindscreen-recordingspeech-to-textycombinator
disable new search until it works + small prompt eng.
Louis Beaumont38dce67d39db
diff --git a/examples/apps/screenpipe-app-tauri/components/chat-list-openai-v2.tsx b/examples/apps/screenpipe-app-tauri/components/chat-list-openai-v2.tsxindex 0ad059fcb..20a22a538 100644--- a/examples/apps/screenpipe-app-tauri/components/chat-list-openai-v2.tsx+++ b/examples/apps/screenpipe-app-tauri/components/chat-list-openai-v2.tsx@@ -145,6 +145,7 @@ export function ChatList({- If the user ask about his morning do not use morning as query that's dumb, try to infer some keywords from the user question- Very important: your output will be given to another LLM so make sure not to return too much data (typically each row returns lot of data)- Use "all" for querying the same keyword over vision and audio+ - When the user ask "show me what i was doing at 10.11 am" do not use "q" intent is not looking for specific content but for a time range`,},// add prev messages but convert all tool role messages to assistant bcs not supported in generateTextdiff --git a/examples/apps/screenpipe-app-tauri/components/empty-screen.tsx b/examples/apps/screenpipe-app-tauri/components/empty-screen.tsxindex c2c350be3..440c82bce 100644--- a/examples/apps/screenpipe-app-tauri/components/empty-screen.tsx+++ b/examples/apps/screenpipe-app-tauri/components/empty-screen.tsx@@ -11,7 +11,7 @@ const suggestions = ["Read my coding stuff (python) and tell me how i can write better python code","Summarize my recent email activity, only use screen text","Turn my audio conversations with Lisa into a table, do use 2-3 queries",- "I don't remember the sentence I was using related to my product XXX, can you find it, and show me the mp4 videos in codeblocks",+ "show me what i was doing at 10.11 am",];export function EmptyScreen({ onSuggestionClick }: EmptyScreenProps) {diff --git a/screenpipe-server/src/db.rs b/screenpipe-server/src/db.rsindex 2f9070878..b70757f76 100644--- a/screenpipe-server/src/db.rs+++ b/screenpipe-server/src/db.rs@@ -420,32 +420,32 @@ impl DatabaseManager {let mut results = Vec::new();// Add FTS search results- let fts_results = self.search_fts(query, limit).await?;- debug!("FTS search returned {} results", fts_results.len());- results.extend(fts_results);+ // let fts_results = self.search_fts(query, limit).await?;+ // debug!("FTS search returned {} results", fts_results.len());+ // results.extend(fts_results);// If app_name is specified, only search OCR content- // if app_name.is_some() {- // let ocr_results = self- // .search_ocr(query, limit, offset, start_time, end_time, app_name)- // .await?;- // results.extend(ocr_results.into_iter().map(SearchResult::OCR));- // } else {- // // If no app_name is specified, proceed with normal search- // if content_type == ContentType::All || content_type == ContentType::OCR {- // let ocr_results = self- // .search_ocr(query, limit, offset, start_time, end_time, None)- // .await?;- // results.extend(ocr_results.into_iter().map(SearchResult::OCR));- // }-- // if content_type == ContentType::All || content_type == ContentType::Audio {- // let audio_results = self- // .search_audio(query, limit, offset, start_time, end_time)- // .await?;- // results.extend(audio_results.into_iter().map(SearchResult::Audio));- // }- // }+ if app_name.is_some() {+ let ocr_results = self+ .search_ocr(query, limit, offset, start_time, end_time, app_name)+ .await?;+ results.extend(ocr_results.into_iter().map(SearchResult::OCR));+ } else {+ // If no app_name is specified, proceed with normal search+ if content_type == ContentType::All || content_type == ContentType::OCR {+ let ocr_results = self+ .search_ocr(query, limit, offset, start_time, end_time, None)+ .await?;+ results.extend(ocr_results.into_iter().map(SearchResult::OCR));+ }++ if content_type == ContentType::All || content_type == ContentType::Audio {+ let audio_results = self+ .search_audio(query, limit, offset, start_time, end_time)+ .await?;+ results.extend(audio_results.into_iter().map(SearchResult::Audio));+ }+ }// Sort results by timestamp in descending orderresults.sort_by(|a, b| {