Remove OpenAI: replace vector search with full-text search#107
Draft
Remove OpenAI: replace vector search with full-text search#107
Conversation
…, use direct HTTP for LLM - Replace chromem-go vector search with in-memory full-text search - Replace go-openai SDK with direct HTTP calls for LLM (Fanar/Ollama) - Remove OpenAI as LLM fallback (keep Fanar and Ollama only) - Remove pre-built vector index (search/data/reminder.idx.gob.gz) - Remove seeker.go (chromem-go helper no longer needed) - Remove --index/--export/--import CLI flags (no longer needed) - Remove checkpoint indexing logic (full-text indexing is fast) - Remove sashabaranov/go-openai and philippgille/chromem-go dependencies - Update README to reflect new search approach Co-authored-by: asim <17530+asim@users.noreply.github.com> Agent-Logs-Url: https://github.com/asim/reminder/sessions/d60a35d0-678a-4159-b9d2-6837a46eeffe
Co-authored-by: asim <17530+asim@users.noreply.github.com> Agent-Logs-Url: https://github.com/asim/reminder/sessions/d60a35d0-678a-4159-b9d2-6837a46eeffe
Copilot
AI
changed the title
[WIP] Remove OpenAI embeddings for improved search functionality
Remove OpenAI: replace vector search with full-text search
Mar 25, 2026
Co-authored-by: asim <17530+asim@users.noreply.github.com> Agent-Logs-Url: https://github.com/asim/reminder/sessions/37447491-ecc1-4bbb-a1a0-0c3f725dc085
Co-authored-by: asim <17530+asim@users.noreply.github.com> Agent-Logs-Url: https://github.com/asim/reminder/sessions/37447491-ecc1-4bbb-a1a0-0c3f725dc085
- search.New() accepts optional file path; reuses existing DB on restart - Add synonym map for ~40 common Islamic terms (mercy/forgiveness/pardon, prayer/salah, etc.) - Query() auto-expands search terms with synonyms before FTS5 MATCH - Add Built() method so callers can skip re-indexing when DB already exists - main.go uses search.db file, skips indexing on restart - Add search.db to .gitignore - 4 new tests: synonym expansion, dedup, persistence, in-memory flag Co-authored-by: asim <17530+asim@users.noreply.github.com> Agent-Logs-Url: https://github.com/asim/reminder/sessions/3b7ced44-15db-4bd9-9d63-69626d012379
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
search.New("search.db")writes to a file. On restart, if the DB already exists and has data,Built()returns true and indexing is skipped entirely. First startup still builds normally.expandSynonyms()automatically broadens FTS5 queries so conceptually related terms match without needing embeddings or LLM.TestSynonymExpansion,TestExpandSynonymsDedup,TestPersistentIndex,TestInMemoryNotBuilt. All 14 tests pass.Original prompt
⚡ Quickly spin up Copilot coding agent tasks from anywhere on your macOS or Windows machine with Raycast.