From 4608ddbae0e5e50ccd984b2585349b25d14460cd Mon Sep 17 00:00:00 2001 From: smathot Date: Wed, 24 Jul 2024 16:55:53 +0200 Subject: [PATCH] Print db_cache source for debugging --- sigmund/documentation.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sigmund/documentation.py b/sigmund/documentation.py index 32ed19d..fd4b7f0 100644 --- a/sigmund/documentation.py +++ b/sigmund/documentation.py @@ -125,8 +125,8 @@ def __init__(self, sigmund): self._embeddings_model = OpenAIEmbeddings( openai_api_key=config.openai_api_key, model=config.search_embedding_model) - logger.info('reading FAISS documentation cache') db_cache = config.db_cache_sources[config.db_cache] + logger.info(f'reading FAISS documentation cache from {db_cache}') self._db = FAISS.load_local(Path(db_cache), self._embeddings_model, allow_dangerous_deserialization=True) if config.search_docs_distance_metric == 'cosine':