From 85f7b6faacf88994df8b4f3bf396a2aa40a4f054 Mon Sep 17 00:00:00 2001 From: chelsea Date: Mon, 16 Feb 2026 11:23:57 -0600 Subject: [PATCH] Add knowledge base RAG module for book Q&A - Create knowledge.py handler with dynamic book selection - Support list/select/query actions for multiple books - Implement vector search with cosine similarity - Add knowledge detection to AI parser config - Cache embeddings per-book for performance - Add numpy dependency for vector operations --- requirements.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/requirements.txt b/requirements.txt index a41e2c9..043f37c 100644 --- a/requirements.txt +++ b/requirements.txt @@ -9,3 +9,4 @@ requests>=2.31.0 pytest>=7.0.0 pytest-asyncio>=0.21.0 pywebpush>=1.14.0 +numpy>=1.26.0