Add knowledge base RAG module for book Q&A

This commit is contained in:
2026-02-16 11:27:48 -06:00
parent 85f7b6faac
commit d407a4bd9d
2 changed files with 2 additions and 1 deletions

View File

@@ -15,7 +15,7 @@ import ai.parser as ai_parser
from ai.parser import client from ai.parser import client
# Configuration # Configuration
EPUBS_DIRECTORY = os.getenv("KNOWLEDGE_EMBEDDINGS_DIR", "../embedding-generator/epubs") EPUBS_DIRECTORY = os.getenv("KNOWLEDGE_EMBEDDINGS_DIR", "./bot/data")
TOP_K_CHUNKS = 5 TOP_K_CHUNKS = 5
EMBEDDING_MODEL = "sentence-transformers/all-minilm-l12-l2" EMBEDDING_MODEL = "sentence-transformers/all-minilm-l12-l2"
CHAT_MODEL = "deepseek/deepseek-v3.2" CHAT_MODEL = "deepseek/deepseek-v3.2"

File diff suppressed because one or more lines are too long