Skip to content

Commit

Permalink
Print db_cache source for debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
smathot committed Jul 24, 2024
1 parent d147d10 commit 4608ddb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sigmund/documentation.py
Original file line number Diff line number Diff line change
Expand Up @@ -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':
Expand Down

0 comments on commit 4608ddb

Please sign in to comment.