khoj-ai / khoj

Your AI second brain. Get answers to your questions, whether they be online or in your own notes. Use online AI models (e.g gpt4) or private, local LLMs (e.g llama3). Self-host locally or use our cloud instance. Access from Obsidian, Emacs, Desktop app, Web or Whatsapp.
https://khoj.dev
GNU Affero General Public License v3.0
12.64k stars 640 forks source link

Update all of the test_text_search tests to read from the DB for assertions #519

Closed sabaimran closed 5 months ago

sabaimran commented 11 months ago

Right now, I'm using a hacky mechanism to determine whether the correct embeddings were generated using loglines. Update this so that it uses checks directly against the DB for more completeness.